Clocking
Using MSP430ware to Configure Clocking
As we have done with our other peripherals (e.g. GPIO), we can use MSP430ware's DriverLib to
configure the clocking options. For example, in the following diagram the UCS_clockSignalInit()
function can be used to configure ACLK to use the REFO clock source.
An earlier clock diagram demonstrated the many places where the clock input frequencies can be
divided-down; once again, this provides you with a greater possible clock range. In this code
example, we just chose to set the clock divider to 1. Conveniently, the DriverLib API provides an
enumeration for each possible field value, including all the various clock divider options.
(DriverLib, with these enumerations, makes the code very easy to read.)
4 - 16 MSP430 Workshop - MSP430 Clocks & Initialization