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

Forum Post: TMS320F28035: Unable to write to the last 2 bytes of ePWMx CMPA register?

$
0
0
Part Number: TMS320F28035 Tool/software: Hello, I have my F28035 microcontroller configured to up/down PWM mode, but it seems that I cannot write to the two least significant bits of the CMPA registers for epwm1, epwm2, or epwm3 For example, if I write, EPwm1Regs.CMPA.all = 0xFFFFFFFF; In the debugger, I get the register value of CMPA as 0xFFFFFF00, where the two least significant bits are dropped. If instead I try to write, EPwm1Regs.CMPA.half.CMPA = 1500; In the debugger, I get the register value of CMPA as 0x05DC0000 Similarly, if I write, EPwm1Regs.CMPA.half.CMPA = 0xFFFFFFFF; In the debugger, I get the register value of CMPA as 0xFFFF0000 The last two data points seem to show that for some reason the 4 most significant bits are used instead of the 4 least significant bits. The upshot of all this is that I am not getting any PWM output, as measured by an oscilloscope, when I think that I theoretically should be. I could have other problems, but this is where my initial troubleshooting has led me

Viewing all articles
Browse latest Browse all 251352

Trending Articles



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