I have a LaunchXL 28069 attached to a custom board that we designed. We're using Motorware 15 and CCS 6.1.0.00104 and compiler 6.4.6.
We're using the 28069 to control an automatic voltage regulator. The ePWM signals will be used to drive an H-Bridge to operate the exciter for a field-wound generator. I've been able to get all the voltage and current feedback re-mapped, and everything there seems to be working just fine. I can power the field winding with a DC power supply and run the software and monitor the current, torque, angle, and all that good stuff.
However, I laid out the board to use the PWM outputs from J1 (J4?). However, when I remove the line
#define J5
in user.h, the main ISR stops operating. There is an indicator LED on the Launchpad that normally blinks, and that was my first indication that something was wrong. When I put a breakpoint in the main ISR I don't get any stoppages. There aren't any errors being reported, and the main loop executes normally once I set the enableSys and runIdentify flags.
I'm sure this is related to the PWM isr (I think the main isr is triggered by the PWM isr, correct?), but I haven't quite figured out how all the HAL stuff works on the hardware level. I'm usually a pretty low-level programmer, and I can't seem to find out how writing to the HAL structures modifies the peripheral registers. Is that just mapped out to the real hardware addresses somewhere in the linker files?
Also, I can't find the PWM isr anywhere.
Any help is much appreciated.
Thanks,
Matt