X-Git-Url: http://cloudbase.mooo.com/gitweb/avrcpm.git/blobdiff_plain/08716d4f9066a68af4d306849878284e24daa043..623dd899f6326f34aaf298fd4f83dbd69d7ef750:/avr/sw-uart.asm diff --git a/avr/sw-uart.asm b/avr/sw-uart.asm index df25d09..7e81d98 100644 --- a/avr/sw-uart.asm +++ b/avr/sw-uart.asm @@ -21,6 +21,10 @@ ; $Id$ ; +#ifdef __ATmega8__ + #error "ATmega8 is not supported (yet)! Please update this driver, or buy an ATmega88." +#endif + #define SSER_BIT_TC (F_CPU+BAUD/2) / BAUD #define RXBUFMASK RXBUFSIZE-1 @@ -34,8 +38,8 @@ srx_char_to: .byte 1 srx_dr: .byte 1 -;srx_lastedge: -; .byte 2 +srx_lastedge: + .byte 2 stx_bitcount: .byte 1 stx_dr: @@ -70,14 +74,20 @@ uart_init: ; - Soft UART RX (ICP1/ICR1). ; - 1ms System timer is already configured at this point. + + cbi P_TXD-1,TXD ;TXD pin as input ldi temp,(1<