Hi MCU Support,
My customer is working with a FR5849 with 2 UARTs and trying to get a slow interrupt at once a second type rates. He writes:
For this MCU, I am seeing that the ACLK limitation is 50KHz, but it has the option to be sourced from the DCO and has a maximum divider of 32. I can’t seem to get it down to 50KHz even if I run the DCO at a bare minimum of 2.7MHz. I’d rather not use an external crystal for the Lo Frequency source and there does not appear to be any other options.
When asked why, he further writes:
I am trying to form a clock tree. The 50K was just the limitation shown in the data sheet. After further consideration, it appears that the DCO is not able to drive the ACLK module at all, so it is now a moot point. Looks like the only option to use ACLK is from the external LF osc module that needs a clock crystal. I am not going to go that route.
So, I am just looking at other ways to generate a 1 second or so interrupt from the SMCLK and a Timer or two. I think I can get both my UARTS running from a 2MHz SMCLK in oversampling mode. I need 9.6K and 57.6K BAUDs.
One of the UARTs is in listen mode always and responds to the host UART. (9.6K)
The other UART should probably get an update from it about once a second or perhaps a little longer. So, I need a slow interrupt to trigger that routine. I was going to derive that time interval from ACLK, but now I’ll have to derive the timer from SMCLK, which needs to be 2MHz. I wanted to avoid using a software timer, so perhaps I can gang two timers together to get what I need and avoid hitting the CPU except when I need to service the 2nd 1 second update UART.
Then Finally:
Am I able to the take the TA0 Timer Clock signal (after dividing SMCLK by 64) and feeding that to TA1 as a clock source? I’m having a hard time seeing how that works through the I/O logic diagram. I don’t see any timer inputs/outputs. Does P1IN.x feed to TA1CLK input?
I am hoping to go from SMCLK = 2MHz /1 to 8 / 1 to 8 / 1 to 8 / 1 to 8/ 1 to 65,535 = some very low value of Hz as an interrupt.
My first thought was perhaps the WDT... Any thoughts on his course of action?
Best Regards,
Blake