|
[DPRG] AVR Software UART
Subject: [DPRG] AVR Software UART
From: Dean Hall
dwhall256 at gmail.com
Date: Mon Feb 18 07:30:20 CST 2008
Here's the PDF and code for Atmel's app note on a soft half-duplex
uart that doesn't use timers:
http://www.atmel.com/dyn/resources/prod_documents/doc0952.pdf
http://www.atmel.com/dyn/resources/prod_documents/avr305.zip
Jon's example looks pretty good, too. To fill in the delay routine
use the one from the avr-libc library:
http://www.nongnu.org/avr-libc/user-manual/group__util__delay.html
#define F_CPU 1000000UL
#include <util/delay.h>
void _delay_us(double __us)
!!Dean
On Feb 18, 2008, at 01:41 , scott at lighthouse21.com wrote:
> Hello all,
> I'm attempting to interface additional serial devices to an Atmel
> AVR, the hardware UART is already in use. I basically need a
> bit-banged TX only module. The only examples I can find still rely
> on timers which are also in use. Does anyone have a starting point
> for developing this? I'm clocking the AVR at 1MHz and need to put
> out 9600 baud.
>
> Thanks,
> Scott
>
>
> _______________________________________________
> DPRGlist mailing list
> DPRGlist at dprg.org
> http://list.dprg.org/mailman/listinfo/dprglist
More information about the DPRG mailing list
|