lab6 - TimerA with the EasyWeb2 Hardware Platform by Alex...

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

View Full Document Right Arrow Icon
TimerA with the EasyWeb2 Hardware Platform by Alex Milenkovich, milenkovic@computer.org Objective: This tutorial discusses the use of MSP430’s TimerA. Note: Required are all previous tutorials. 1. Blink a LED Using TimerA ISR Let us consider the following program shown in Figure 1. We want to periodically blink the status LED on the EasyWeb2 board. Rather than using software delay we want to learn how to use the MSP430’s TimeA peripheral device. Note: to learn more about TimerA read the user manuals. The MSP430 clocks MCLK, SMCLK, and ACLK are default (MCLK=SMCLK=800KHz). TimerA is configured to use the SMCLK as its clock input and to operate in the continuous mode. The CCR0 register is initialized with 50,000 and the TimerA is configured to generate an interrupt when the timer’s counter reaches the value in CCR0. After the initializing the timer the processor is put in the low power mode 0. What happens in the low-power mode 0? Is the DCO still active? What about SMCLK? When the interrupt is received the processor exits the low-power mode.
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.

Page1 / 3

lab6 - TimerA with the EasyWeb2 Hardware Platform by Alex...

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