xmcLib HRPWM CSG example

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

cross mob
Not applicable
Hello,

I'am using the xmc4200 Hexagon Board and i have a little problem with one
example project.

It is the HRPWM example with CSG event which start/stops the CCU8 pwm
generation. The problem is that I can't see any pwm output at Pin 64 (P0.5).
Only when clamping the output of the comparator manually with hrpwm->CSGSETG |= 0x04;
the start event is generated and pwm output starts.

According the information in the readme.txt I've connected the Pin 50
(P14.8 DAC out, which seems to work) with Pin 20 (P1.0 HRPWM0.COINA).

Now I am wondering if I do something wrong or if there is something wrong with
with my Hardware or maybe with the example project?

Much thanks in advance
0 Likes
4 Replies
Not applicable
Hello,

has somebody tested this example on a 4200 Hexagon board with act
card before?

Thanks
0 Likes
User2235
Level 3
Level 3
Hi,
I tested this example in a Relax kit boart with the XMC4500 changed to a XMC4400.

I did the connection of P14.8 to P1.0.

monitoring the PWM output, it shows a continuous pwm with 50% duty cycle without any influence from the DAC output.

Ari.
0 Likes
Not applicable
Hello,

the PWM signal should start and stop triggered by comparator event.
The readme.txt describes: "The start/stop of the PWM signal generation
is controlled by the CSG output.".

So it seems to be that the example did not do that what is described in
the readme.txt and don't generate start/stop events?

In the errata sheet I have seen that some devices (marking EES-AA)
which have problems with their CSG Units. Because i have such a
device I think this may be the problem. But I'm not quite sure.

Bug: HRPWM_AI.003 HRPWM Usage Limitation
"Due to power connection issues, in this current device step, the CSG sub modules are not functional"

Maybe someone have example code code for initializing CSG comparator event
for the ccu80 timer?
0 Likes
Not applicable
The CSG Unit don't work because the Hexagon Board comes with an old stepping of this processor.
0 Likes