SDSU The Built in USART Port on The AVR Xplained Board Program

User Generated

qntheh

Programming

San Diego State University

Question Description

I'm working on a c programming exercise and need an explanation to help me learn.

Transmit characters from a 9 digit number through the built-in USART port on the AVR Xplained mini 328 board.

Simply use the built-in USART hardware of the AVR to transmit a serial string that contains your 9 digit number.

You must set up the USART's serial mode and bit rate (a.k.a. baud rate) to 9600 bits/sec, 8 data bits, 1 stop bit, and poll the transmit status register to wait until it is ready before writing an output data byte to the USART's serial data register.

The final output demonstration is to show the characters corresponding to the 9 digits of your number followed by carriage return and linefeed followed by a 500ms delay which must be repeated continuously at 9600 bits per second (one-bit period = 1/9600 seconds, ~100us/bit, for 10 bits, ~1ms per character).

The Atmel Xplained Mini board will be the Transmitter, you must set up your computer as a USART (Serial) Receiver using PuTTY and the FT232R Breakout board.

Note: The debug hardware on the Xplained mini 328 board also uses the hardware USART pins (PD1 (TXD) and PD0 (RXD) pins) on the AVR μC, so they will show activity while downloading your code. Due to which, you cannot use the debugger and do serial I/O at the same time.

Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

Explanation & Answer

Please view ex...

Wbfu_Uneyrgg (1721)
UT Austin

Anonymous
Really great stuff, couldn't ask for more.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags