[an error occurred while processing this directive]
|
#include void main(int i) #pragma vector= TIMER0_COMP_vect #pragma vector=TIMER0_OVF_vect
E-mail:
info@telesys.ru
#include
#include
{
TCNT0 = 0x00;
OCR0 = 0x14;
TCCR0 |= (1<<0);//0x01;
TIMSK = 0x03;//|= (1<<0);
_SEI();
DDRA = 0xff;
while (1);
}
__interrupt void my_interrupt_routine()
{
PORTA = 0x10;
}
__interrupt void my_interrupt()
{
PORTA = 0xff;
}
Ответы