Other Parts Discussed in Thread: MSP430F5438
Hey guys
I was wondering if you could help me find the exact frequency at which SMCLK runs on the TI MSP430 Experimenter's Board (with the MSP430F5438 processor on board)?
I'm trying to run a PWM signal with a period of 10ms, being high for 1.500 ms and low for the rest of the 10ms. This way, the servo should stay in the middle. For my calculations, I used the suggested value of SMCLK from TI in their sample code (1.048MHz). Using this value, I found that the total count for a 10ms period (the value in CCR0) should be 10480, and the count for a 1.5ms pulse (value in CCR1) should be 1572.
However, when observing the value of the pin on the oscilloscope, I find a pulse of about 1.3 - 1.4 ms and an overall period of 9.8ms... I was wondering if there was a higher speed clock that could be used for the timer, which would thereby add more precision to my timing? If not, can you guys help me find the exact speed of the clock in order to produce a reliable 1.5ms pulse every 10ms?
Thanks!
Alvaro