Hi,
I want to use nHET[0] to output a PWM, and use nHET[1] as input to detect nHET[0]'s output PWM.
According to TRM "Literature Number: SPNU489B",in section "18.4.5.6 Loop Back Mode".
In HET simulator,I set :HET clock frequency=80MHz, HR=1,LR=128;
then set these two registers: NHETLBPSEL=0x00000001,NHETLBPDIR=0x000A0001;
and then click "assemble and load" from "Debug" menu, but it seems the loop back mode doesn't work.
The instrutions i used are following:
A_MAXC .equ 9 ; PWM period value
A_INVE .equ 6 ; PWM pulse invert value
A_HRVAL .equ 0
; Simple PWM
L00 CNT { reg=T, irq=OFF, max= A_MAXC }
L01 ECMP { en_pin_action=ON, pin=0, action=PULSEHI, reg=T, data= A_INVE, hr_data=A_HRVAL}
C00 WCAPE { pin=1,event=FALL,reg=T,ts_data=0,ec_data=0};
L02 BR { next= L00, cond_addr=L00, event= NOCOND }
Could you please tell me what's wrong? Thanks very much.