View Full Version : Tip of the day XMC4500: CCU4/CCU8 Timer Concatenation

Jul 2nd, 2013, 01:41 AM
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...

Jul 2nd, 2013, 04:40 AM
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.

Jul 2nd, 2013, 08:21 PM
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