Hi,
I'm using the tms570 , Halcogen 4.1 and the HET IDE. I've been experimenting with HET Assembler, here is my little code, it's supposed to perfrom five cycles of PWM (1kHz/50%), which it does:
START MOV32 { remote=PULSE_CNT,type=REMTOREG,reg=A}; not necessary, just in case it grows bigger
L01 ECMP { en_pin_action=OFF,cond_addr=END,pin=0,reg=A,irq=OFF,data=0,hr_data=0}; goto end after 5 pulses
L02 CNT { reg=NONE,irq=OFF,max=1405}; pwm coutner
MOV1 MOV32 { remote=L02,type=REMTOREG,reg=A}; not necessary, just in case it grows bigger
L03 ECMP { next=END,en_pin_action=ON,cond_addr=PULSE_CNT,pin=16,action=PULSELO,reg=A,irq=OFF,data=703,hr_data=0}; 50%
PULSE_CNT DJZ { cond_addr=END,reg=A,irq=ON,data=5}; 5 cycles
END BR { next=START,cond_addr=START,event=NOCOND};
However, I do have an issues with interrupts:
OK : enabling interrupt for insctruction at L03, enabling interrupt for address 4 in HalCoGen; (HalCoGen seems to set all interrupts to low level by default)
NOK: enabling interrupt for instruction PULSE_CNT, enabling interrupts for address 5 in HalCoGen; No interrupt
Am I missing something?