How To Change The Processor Clock

How To Change The Processor Clock - CALDCO_16MHZ = 0x10F8;...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
How To Change The Processor Clock. .. The MSP430 was designed to power-up quickly from low-power mode without having to wait a long time for the clock to settle. The Digitally Controlled Oscillator (DCO) of the MSP430F2274 is an accurate and stable clock that becomes active from low-power mode in in 1-2us, without any erratic pulses. The frequency of the DCO is accurate to 1-2% and can be controlled by setting bits in the module's BCSCTL1 and DC0CTL registers. The MSP430 has calibrated frequencies of 1, 8, 12, and 16 MHz as follows:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CALDCO_16MHZ = 0x10F8; CALBC1_16MHZ = 0x10F9; CALDCO_12MHZ = 0x10FA; CALBC1_12MHZ = 0x10FB; CALDCO_8MHZ = 0x10FC; CALBC1_8MHZ = 0x10FD; CALDCO_1MHZ = 0x10FE; CALBC1_1MHZ = 0x10FF; Thus, to change the speed of the MSP430, set the selected speed values in the BCSCTL1 and DC0CTL registers: ; MSP430 Clock - Set DCO to 12 MHz: mov.b &CALBC1_12MHZ,&BCSCTL1 ; Set range mov.b &CALDCO_12MHZ,&DCOCTL ; Set DCO step + modulation See MMB pages 167-170....
View Full Document

This document was uploaded on 02/08/2012.

Ask a homework question - tutors are online