Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 230763

Forum Post: RE: apply duty cycle change to ePWM1A and ePWM1B at exact the same moment

$
0
0
Hi Jan, By default (see SHDWAMODE and SHDWBMODE bits in CMPCTL register), the writes to the CMPA and CMPB are first buffered which means the values written to CMPA and CMPB are first stored in the respective shadow registers. In the CMPCTL register you can configure the LOADAMODE and LOADBMODE bits to load the the active the CMPA and CMPB from their shadow registers when certain condition is true. For example, you can configure both LOADAMODE and LOADBMODE the same to transfer the shadow register values to the active CMPA and CMPB when the counter reaches the preload value or when the counter reaches zero. Let me know if this will solve your problem.

Viewing all articles
Browse latest Browse all 230763

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>