Tip of the day XMC4500: CCU4/CCU8 Timer Concatenation

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
In some cases we are faced with limitation to the size of a 16 bit timer to generate or capture a low frequency PWM as the maximum count of a 16bit timer is only 65535, which will cause the timer to overflow.

Fortunately the CCU4/CCU8 offers a very easy mechanism to perform a synchronous timer concatenation for 32bit / 48bit/ 64bit timer. This functionality can be used by setting the CC4yTC.TCE = 1. By doing this the user is doing a concatenation of the actual CCU4 slice with the previous one.

The attached DAVE3 example shows a simple 10Hz PWM generation at P3.9 (LED) with timer concatenation using CCU41_CC40 and CCU41_CC41.

G@@d Luck...
0 Likes
2 Replies
Not applicable
The CC4yTC register doesn't have a TCE bit. This bit is actually located in the CC4yCMC register. (see reference manual page 22-101). The chapter on timer concatenation in the reference manual refers to the wrong register.
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Hi Jochem,

Many thanks for the highlight. There is a typo error in the user manual, the TCE bit is actually located in the CC4yCMC register. (Please see attachment)

Best Regards
0 Likes