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

Forum Post: RE: Problem setting up TZ1 for an over current

$
0
0

make sure you configure these registers inside of

 

      EALLOW;  

// make secure register changes after EALLOW

      EDIS;

 

the set-up of your ePWM Trip Zone is correct

      EPwm4Regs.TZSEL.bit.OSHT1   = 1;  //enable TZ1 for OSHT

for the action on the event we usualy do it like this

      EPwm4Regs.TZCTL.bit.TZA = TZ_FORCE_LO; // EPWMxA will go low
      EPwm4Regs.TZCTL.bit.TZB = TZ_FORCE_LO; // EPWMxB will go low

 


Viewing all articles
Browse latest Browse all 230870

Latest Images

Trending Articles



Latest Images

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