SPRUIZ1B July 2023 – August 2024 TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
FILE: dcc_ex2_single_shot_measurement.c
This program demonstrates Single Shot measurement of the INTOSC1 clock post trim using XTAL as the reference clock.
The Dual-Clock Comparator Module 1 is used for the clock measurement. The clocksource0 is the reference clock (Fclk0 = 20Mhz) and the clocksource1 is the clock that needs to be measured (Fclk1 = 10Mhz). Since the frequency of clock1 needs to be measured, an initial seed is set to the max value of the counter.
Please refer to the TRM for details on counter seed values to be set.
External Connections
Watch Variables