Hi, everyone
My target is continuously generating sin on eHRPWM, while communication with DSP from ARM
I wrote pwm_isr() which plays with dirty cycle.
My question is how configure ECM to make the pwm_isr() be called for eHRPWM event (while i2c/McASP/DMA/UART also in use)
my current ECM configuration in tci file looks like that (similar to any BIOS example) :
/* ECM configuration */
bios.HWI.instance("HWI_INT7").interruptSelectNumber = 0;
bios.HWI.instance("HWI_INT8").interruptSelectNumber = 1;
bios.HWI.instance("HWI_INT9").interruptSelectNumber = 2;
bios.HWI.instance("HWI_INT10").interruptSelectNumber = 3;
/* Enable ECM Handler */
bios.ECM.ENABLE = 1;
/* SOME OTHER McASP related taks*/
Ive tried to use another HWI_INT6 object with following properties:
bios.HWI.instance("HWI_INT6").interruptSelectNumber = 7;
bios.HWI.instance("HWI_INT6").fxn = prog.extern("pwm_isr");
bios.HWI.instance("HWI_INT6").useDispatcher = 1;
But the isr is not called :(
Any suggestions?
Thanks a lot
Dmitry