⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cny.c

📁 单片机开发资料光盘-双龙-686M.zip
💻 C
字号:
//ICC-AVR application builder : 03-1-20 17:20:32
// Target : 8515
// Crystal: 8.0000Mhz
//测试探测信号  由PA口的LED指示


#include <io8515v.h>
#include <macros.h>
#include <sl3010.c>
unsigned char cny;


//call this routine to initialise all peripherals
void init_devices(void)
{
 //stop errant interrupts until set up
 CLI(); //disable all interrupts
 port_init();

 MCUCR = 0x00;
 GIMSK = 0x00;
 TIMSK = 0x00;
 SEI(); //re-enable interrupts
 //all peripherals are now initialised
}

//
void main(void)
{
 init_devices();
 while(1)
    {
	 sw_touch();
	 cny = PINC;
	 PORTA = cny;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -