?? cny.c
字號(hào):
//ICC-AVR application builder : 03-1-20 17:20:32
// Target : 8515
// Crystal: 8.0000Mhz
//測(cè)試探測(cè)信號(hào) 由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;
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -