lab7 - USART Module in UART Mode with the EasyWeb2 Hardware...

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

View Full Document Right Arrow Icon
USART Module in UART Mode with the EasyWeb2 Hardware Platform by Alex Milenkovich, [email protected] Objective: This tutorial discusses the use of MSP430’s USART Device. Note: Required are all previous tutorials. 1. Echo a Character Let us consider a C application shown in Figure 1. A system with 32KHz crystal on ACLK is connected to a personal computer running HyperTerminal application using a serial RS232 protocol. To realize this communication we use the MSP430’s USART1 device in UART mode. First, the USART1 is configured in UART mode with the following parameters. The communication speed is 2400 bits/sec (one bit period is 416 us). The USART clock UCLK is connected to ACLK (32 KHz). To achieve the baud rate of the 2400, the internal divider registers are initialized to UBR01=0x0D, and UBR11=0x00. Why? The modulator register UMCTL1=0x6B. See the reference manual for the details how the value in UMCTL1 is determined. You may also use the following utility to determine the values in the USART registers for a given configuration of serial communication (see http://mspgcc.sourceforge.net/baudrate.html
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 12/04/2011 for the course CPE 323 taught by Professor Milenkovic during the Spring '10 term at University of Alabama - Huntsville.

Page1 / 3

lab7 - USART Module in UART Mode with the EasyWeb2 Hardware...

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