includeiom128vh>includemacrosh>defineucharunsignedchardefineuintunsignedintvoidmain(void){ucha
#include
#include
#define uchar unsigned char
#define uint unsigned int
void main(void)
{
uchar i,temp;
DDRA = 0XFF;
PORTA = 0XFF;
DDRC = 0XFF;
PORTC = 0XFF;
DDRF |= 0X0E;
PORTF |= 0X0E;
PORTF &= 0xF8;
DDRB |= 0X10;
PORTB |= 0X10;
DDRD=0XFC;
PORTD=0XFF;
EIMSK|=(1<
SEI();
while(1)
{
PORTA=0x00;
}
}
#pragma interrupt_handler int0_INT:2
void int0_INT(void)
{
PORTA=0x00;
}
#pragma interrupt_handler int1_INT:3
void int1_INT(void)
{
PORTA=0xFF;
}
声明:本文内容来自网络转载或用户投稿,文章版权归原作者和原出处所有。文中观点,不代表本站立场。若有侵权请联系本站删除(kf@86ic.com)https://www.86ic.net/qiche/xinnengyuan/262317.html