Hi,
PIT module reference clock is bus clock, which could up to 60MHz of K64 product.
The K64 reference manual has an example at chapter 41.5 Initialization and application information.
At the example, bus clock is 50MHz and want to get 5.12ms interrupt, the LDVAL1 register value is 255999.
Customer need to check the K64 bus clock frequency, if the bus clock frequency is 60MHz, the PIT clock period is 16.67ns.
If customer want to generate period 500us interrupt, the LDVAL0 register value is:
(500000/16.67) - 1 = 29993
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------