Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# Software Interrupt-driven UART Driver (uartsw.c)
[Drivers (software-based)]

     #include "uartsw.h"

Overview
  This uart library emulates the operation of a UART (serial port) using the AVR's hardware timers, I/O pins, and some software.

Specifically, this code uses: -Timer 1 Output Compare A for transmit timing -Timer 1 Output Compare B for receive timing -Timer 1 Input Capture for receive triggering

The above resources cannot be used for other purposes while this software UART is enabled. The overflow interrupt from Timer1 can still be used for other timing, but the prescaler for Timer1 must not be changed.

Serial output from this UART can be routed to any I/O pin. Serial input for this UART must come from the Timer1 Input Capture (IC1) I/O pin. These options should be configured by editing your local copy of "uartswconf.h".