Hello,
I'm attempting to get some direction on how to calculate the frequency for the different timers on the MSP430FR2355.
Here are the situations I'm looking for.
- RTC
- I know this is using XT1CLK which is 32kh or ~32768
- RTCMOD sets the interrupt timer in the sample code as 32-1 which is suppose to be 1hz / 1sec
- So if I want 10 seconds is it as simple as 10*(32-1)?
- Timer_B0
- In the sample code it is using the ACLK which is also 32kh or ~32768
- Timer B0 seems to have two modes I'm interested in
- Continous Mode
- counts up to a 8, 10, 12, or 16 BIT max value
- I can use a divider to change the frequency
- According to the sample code 16bit value for CNTL gives me a frequency of .5hz, once every 2 seconds.
- So how do I go about calculating for say 1 second or 10 seconds?
- UpMode
- seems to be the most straight forward. Simply counts up to a value set in CCR0 for the timer
- sample code uses 50000 has an example with a SMCLK, which is ~1MHz, but it doesn't give me a frequency to reference to for the timer
- So how would I calculate 1 sec or 10 or can I? It appears CCR0 is a 16bit reg, so the max is 65535 and was still way faster than I want.
- Continous Mode
Any insight would be helpful.
Michael