HW7 Solutions

HW7 Solutions - Electrical, Computer, &...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Electrical, Computer, & Telecommunications Engineering Technology Micro Computers Spring 20073 0618-303 Homework #7 HOMEWORK #7 Due 5/02/08 1. In an AVR assembly language program, the USART Control/Status Register C (UCSR1C) has been programmed with the value 0x2D. Explain how the USART has been configured. UCSR1C = 00101101 USART1 is configured for Asynchronous operation, even parity, 2 stop bits, 7-bits per character 2. Using the configuration above, label the following on the TTL level (0 to 5 volts) serial transmission of the letter “J”: start bit, lsb, msb, data bit, parity(if applicable), stop bit(s) Lsb stop(2) 5V 0V Start Parity ********note : this really wasn’t a J, it is a ‘)’ (ASCII = 0x29) 3. Given a ATmega128 in synchronous mode has the following formula for baud rate: ) 1 ( 16 + = UBRR f BAUD osc 4800 = 20MHz / 16*(UBRR + 1) UBRR+1 = 1.25MHz/4800 UBRR = 260-1 = 259 259 = 0x103 ldi temp, 0x01 sts UBRR1H, temp ldi temp, 0x03 sts UBRR1L, temp
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/10/2012 for the course ENG 0618-303 taught by Professor Christman during the Spring '07 term at RIT.

Page1 / 2

HW7 Solutions - Electrical, Computer, &...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online