Other Parts Discussed in Thread: HALCOGEN
I have the following code in the HET IDE. It checks whether n2HET1[18] pin is either HIGH or LOW and I want to set/clear N2HET1[8] accordingly. I am using the ECMP instruction pin action to set/clear the pin. The code below shows the simulator following but running on actual hardware it is not triggering (I am using the N2HET1[8] as the trigger source for the MIBSPI Transfer group.
L00 CNT { next=CheckLow,reg=T,comp=EQ,max=0x1FFFFFF,data=0x1FFFFFF};
CheckLow BR { next=SetLow,cond_addr=CheckHigh,pin=18,event=HIGH};
SetLow ECMP { next=NextInLine,control=ON,en_pin_action=ON,cond_addr=NextInLine,pin=8,action=CLEAR,reg=A,irq=OFF,data=0};
CheckHigh BR { next=SetHigh,cond_addr=NextInLine,pin=18,event=LOW};
SetHigh ECMP { next=NextInLine,control=ON,en_pin_action=ON,cond_addr=NextInLine,pin=8,action=SET,reg=A,data=0};
NextInLine PWCNT { next=0,cond_addr=0,pin=0,reg=A,data=0};