I’m new to both Code Composer and Sys Bios. I’m working with the eZdsp F28335 board. I started with some example projects without Sys Bios and setup the PWM port and all its registers without issue. I have been moving the code to a sys bios project and for some reason the exact same code has no affect. I can set a break point right after my init code but all the register value are still 0. I have confirmed that the address for the register is the same in both cases.
What do I need to differently?
I added some debug code to try and understand what's happening but I still can't explain why this is happening
Hi Ed Hildebrandt,
I'm not familiar with PWM ... is this a BIOS module?
Steve
Steven Connell Hi Ed Hildebrandt, I'm not familiar with PWM ... is this a BIOS module? Steve
No the ePWM is the enhances Pulse Width Modulator hardware on the TMS320F28335. (Also on many other parts)
Ed
I found the answer myself so I though I'd share. I didn't have the peripheral clocks enabled and this prevents the registers from being modified.
SysCtrlRegs.PCLKCR1.bit.EPWM1ENCLK = 1; // ePWM1