Texas Instruments MSP-EXP430F5529LP 사용자 설명서

다운로드
페이지 61
User Experience Software
Although primarily related to CPU speed, the device data sheet also shows that during operation of the
USB PLL (that is, during an active USB connection), V
CORE
must be set to 2 or 3, the highest two levels.
Because the demo's use of an 8-MHz clock does not require a setting of 3, the PMMCOREV register is
set to 2.
3.6.5.3
Configuring Clocks
MSP430 applications typically use a fast clock and a slow clock. The fast clock (called MCLK) sources the
CPU and peripherals in some cases, while the slow one keeps timers and peripherals operating during
low power modes. This approach reduces power: slow clocks consume less power, so the more often the
fast clock can be disabled, the less power your application may consume.
Typically this fast clock is the MCU's integrated digitally controlled oscillator (DCO). The DCO itself is an
important low-power tool, because unlike a crystal, it has a very fast startup time, and thus can be quickly
shut down and re-enabled. The DCO can be activated by an interrupt and stabilize fast enough to respond
to it. An MCU's low power modes are only useful if they can be used often!
Many MSP430 devices, including the F5529, couple the DCO with an frequency-locked loop (FLL) module
that keeps the DCO locked to a precise slower-frequency reference. This gives good control over the DCO
frequency.
The F5529 has three slow clocks available:
REFO: This is a modestly precise low-power on-chip oscillator that does not require a crystal. It
operates at 32 kHz.
LFXT1: This is a crystal oscillator. It is very precise and lower power than the REFO, but it requires a
crystal. It, too, operates at 32 kHz.
VLO: This oscillator is not very precise but does not require a crystal and has the lowest power of the
three. It usually operates somewhere between 12 kHz and 20 kHz.
To keep things simple, the simpleUsbBackchannel example does not use any low-power modes; the CPU
stays active at all times. As a result, all of these clocks are constantly active, and all functions are sourced
from the DCO FLL. The emulStorageKeyboard example (see
does make use of low-power
modes.
USB operation on the F5529 requires a high-frequency reference clock for the USB PLL. As mentioned in
, this is sourced on the XT2 oscillator, and the F5529 LaunchPad has a resonator on XT2.
XT2 is managed directly by the USB API.
shows the simpleUsbBackchannel example's clock configuration.
Table 9. Clock Settings
System Clock
Source
Speed
Description
MCLK is the MSP430 CPU clock. It is disabled in all low-power modes. There is
MCLK
DCO, FLL
8 MHz
no predefined MCLK lower limit for USB communication, but 8 MHz and higher
are commonly used.
SMCLK drives high-speed peripherals. It is kept alive during LPM0 but disabled
SMCLK
DCO, FLL
8 MHz
in LPM3, LPM4, and LPM5. LPM0 is the lowest power mode permissible during
an active USB connection.
ACLK is a low-speed clock that drives timers and slower peripherals. It is a very
ACLK
REFO
32 kHz
low-power way to keep the MCU alive during low-power modes. It is kept alive
during LPM3 but disabled in LPM4 and LPM5.
USB operation on the F5529 requires a ±2500-ppm clock source on XT2. This
USBCLK
XT2
4 MHz
application uses a precise crystal resonator. The USB module receives this
clock directly from XT2.
For a full explanation of the MSP430 clock system, see the Unified Clock System (UCS) chapter in the
MSP430x5xx and MSP430x6xx Family User's Guide (
).
45
SLAU533A – September 2013 – Revised January 2014
MSP430F5529 LaunchPad™ Development Tool (MSP
EXP430F5529LP)
Copyright © 2013–2014, Texas Instruments Incorporated