tc3xx9 atom SOMP counting up and down PWM generation

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

cross mob
robs1
Level 4
Level 4
100 sign-ins 50 replies posted First solution authored

Which are the setting of a PWM counting up and down with trigger of preceding channel?? 

When I set CM0 and CM1 I have to write dutycycle1/2 and dutycycle2/2? or only duty cycles?

How can I set (line codes) all the counters to start from 0 as starting count point?

Thank you in advance.

0 Likes
1 Solution
Yuva
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 100 solutions authored

Hello,

When the channel is reset based on the trigger from the previous channel, the CM1 and CM0 defines the edges within the period.

Thanks.

View solution in original post

0 Likes
4 Replies
Yuva
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 100 solutions authored

Hello,

When the channel is reset based on the trigger from the previous channel, the CM1 and CM0 defines the edges within the period.

Thanks.

0 Likes
robs1
Level 4
Level 4
100 sign-ins 50 replies posted First solution authored

Yes, but also for up-down counter?

0 Likes
Yuva
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 100 solutions authored

Hello,

Yes, trigger from previous channels is also applicable in up/down mode. The count mode is changed when the trigger occurs and edges are based on the CM1 configuration, you may refer to Figure 79 UM part 2.

Thanks.

0 Likes
robs1
Level 4
Level 4
100 sign-ins 50 replies posted First solution authored

ok, thank you.

So I configure CM1= dutycycleinpercentage*Tperiodticks??

0 Likes