|
Хочу поработать с прерываниями, но никак не могу их запустить оно не хочет работать, или я что-то не так делаю
Вот вся программа, она взята из стандарного Application Builder в ICC AVR:
//ICC-AVR application builder
// Target : 8515
// Crystal: 1.0000Mhz
#include #pragma interrupt_handler timer0_ovf_isr:8 void init(void) } }
E-mail:
info@telesys.ru
#include
void timer0_ovf_isr(void)
{
PORTB = 0xfe;
PORTB = 0xff;
}
{
CLI(); //disable all interrupts
DDRB = 0xff;
PORTB = 0xFF;
TCCR0 = 0x02;
SEI(); //re-enable interrupts
void main(void)
{
init();
while (1)
{
}
Ответы