xmclib/XMCLib/examples/XMC1300_series/CCU4/CCU4_TIMER/Readme.txt

31 lines
1.1 KiB
Text
Raw Permalink Normal View History

2024-10-17 17:09:59 +02:00
Description of example project
==============================
This example project depicts usage of SCU and CCU4 drivers.
The SCU driver is used to configure the clock settings and take the CCU4 peripheral out of reset.
CCU4 APIs are used to configure a CCU4 slice to operate in timer mode. The timer start is externally
triggered and the trigger originates from SCU.
In the ISRs of compare and period match events, interrupt counters are bumped up and the SCU is instructed
to regenerate the trigger for start of the timer slice.
Hardware Setup
===============
XMC1300 Bootkit (No other satellite board required)
How to test the application
============================
a. Import the project
b. Compile and flash the application onto the device
c. Add g_num_period_interrupts and g_num_compare_interrupts to the watch window
d. Run the application.
e. watch the two interrupt counters steadily increment
How to modify the application
==============================
a. To choose a different module.slice, please update the macros SLICE_PTR, MODULE_PTR, MODULE_NUMBER, SLICE_NUMBER
and CAPCOM_MASK.