AVR274: Single-wire Software UART Documentation
This documents the software for application note AVR274. This is a single-wire software UART.
This software was compiled with IAR Embedded Workbench, 4.20A. For other compiliers than IAR modifications are needed.
To make project on IAR EWAVR:
- Add the .c files to project (main.c, single_wire_UART.c).
- Change the single_wire_UART.h according to the device you are using and UART settings you would like to use.
- Go to the options menu in Embedded Workbench (alt+F7).
- Under "General/Target", make sure the correct device and memory model is selected.
- Under "General/System", check the "Enable bit definitions in I/O include files" option.
- Under "C/C++ Compiler/Optimization" select maximum speed optimization.
- Under "Linker/Output" set the output format to "ubrof 8" when debugging with AVR Studio and "intel-extended" for release.
All devices with a timer compare interrupt and an external interrupt can be used. The example is written for ATmega32. The single_wire_UART.h needs to be changed according to the device and baud rate settings.
single_wire_UART.c 500 bytes (454 bytes if UART_counter and SW_UART_Status are locked in dedicated register)
main.c 218 bytes
For more info about Atmel AVR visit http://www.atmel.com/products/AVR/
For application notes visit http://www.atmel.com/dyn/products/app_notes.asp?family_id=607
Support mail: avr@atmel.com
Generated on Mon Apr 23 10:13:57 2007 for AVR274: Single-wire Software UART by
1.5.1-p1