|
AVR304: Half Duplex Interrupt Driven Software UART (11 pages, updated 8/97)
This Application Note describes how to make a half duplex UART on any AVR device using the 8-bit Timer/Counter0 and an external interrupt.
Обрати внимание на строки в примере: clr u_bit_cnt ;Clear bit counter Должно помочь.
E-mail:
info@telesys.ru
...
ldi u_tmp,1<
out TIMSK,u_tmp ; and enable T/C0 overflow interrupt
out GIMSK,u_bit_cnt ;Disable external interrupt
...
Ответы