|
#include "io8515.h"
#include "ina90.h"
#include "stdio.h"
#pragma vector = TIMER0_OVF0_vect
__interrupt void TIMER1_OVF1_interrupt(void)
{
PORTB = 0xfe;
PORTB = 0xff;
TCCR0 = 0x02;
}
void init(void)
{
_CLI();
DDRB = 0xff;
PORTB = 0xff;
SREG = 0x80;
TCCR0 = 0x02; //Set Prescale CK/8
_SEI();
}
void main(void)
{
init();
while(1)
{}
}
E-mail: info@telesys.ru