📄 cny.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 + -