Hi. this is sung jun.
I am trying to test the clock precision through the LPTMR driver.
Here's how I planned it:
1. Set SIRC (8Mhz) to LPTMR.
Then, compare value is set for LPTMR operating at 8Mhz, and count and time are checked by checking LPTMR_CSR_TCF in a while loop.
2. Set FIRC (48Mhz) to LPTMR.
Perform the same test as in step 1.
Since the clock difference between SIRC and FIRC is 6 times, we want to check the expected count value and time difference.
However, it seems that the clock source expected to be 8MHz in my setup is not 8MHz.
Approximately ... 48Mhz and 4.8 to 5 times the difference.
To summarize the questions, I am curious about the following 3 things.
1. I think the clock source expected to be 8Mhz is BUS_CLK, is that correct?
2. In the SIRC 8MHz setting,
The PCS value is 0, which is marked with an x in the figure below.
At this time, does 0 mean BUS_CLK?
3. is there a way to determine which Source Clock goes into each Peripheral?
Please refer to the picture below.
SIRC 8MHz setting



FIRC 48MHz Setting

