Serial Communication

A Dr. Taylor Tutorial

Overview

There are many forms of serial communication. For example:

RS-232

Serial Communications on the ATmega32

The ATmega32 provides the following serial communication options:

USART

The USART is a standardized device that can:

Synchronous Mode

Asynchronous Mode

We'll just look at the asynchronous mode.

USART on ATmega32

We will focus on the USART subsystem.

Asynchronous transmission of data

Serial transmission of one data frame:

Data Frame TTL Signal

Parity Bit

Baud Rate

Register Overview

USART Operation

  1. Initialize the control registers for the desired baud rate and frame format (stop bit(s), parity, data size)
  2. Enable Transmit (TXEN) and Receive (RXEN) via UCSRB
  3. Disable all USART interrupts via UCSRB to avoid conflicts with ATmon

Polled mode can be used to monitor:

Tutorials for Other Courses

Additional Links

Site Mirror

This is a mirror to be used when http://myweb.msoe.edu/taylor/, (EDU instead of US) is not available.