This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS570LS3137: how to generate a pwm interrupt?

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

hey guys

I want to generate periodic interrupts. As I wanted to have high resolution I wrote a assebly code to generate pwm signal (in het ide). but I don't know how I can generate an interrupt. could you please tell me how I can do it?

I am using ccs and halcogen. 

this is my assembly code:

;PWM code for given HCLK frequency = 90MHz  ,PWM frequency = 0.132512MHz  ,duty cycle = 0.5% ,HETPFR value =0 is below:
L00   CNT { next=L01,reg=A,max=678,data=0};
L01   ECMP { brk=OFF,next=A00,hr_lr=HIGH,en_pin_action=ON,pin=0,action=PULSELO,reg=A,data=339,hr_data=0};

;PWM code for given HCLK frequency = 90MHz  ,PWM frequency = 0.001656MHz  ,duty cycle = 0.5% ,HETPFR value =0 is below:
A00   CNT { next=A01,reg=B,irq=ON,max=54346,data=5434};
A01 ECMP {next=L00,hr_lr=HIGH,en_pin_action=ON,pin=2,action=PULSELO,reg=B,irq=ON,data=27173,hr_data=0}

thanks.