Hello,
I need to prepare a test SW for HET using only HET instruction set.
Test SW should read PWM status of one of HET input pin and similar waveform should be generated from another HET output pin.
Currently , I am using following code to set/reset HET output pin according to HET input pin status. But it’s not working.
PulseRISE: BR
{ next = PFALL, cond_addr = RISE_SET, pin = HET4, event = RISE ; Jump to RISE_SET at rising edge of HET4
}
PulseFALL: BR
{
next = DNDEND, cond_addr = FALL_RESET, pin = HET4, event = FALL ;Jump to FALL_RESET at falling edge of HET4
}
RISE_SET: ECMP {next = END, cond_addr = END, hr_lr = LOW, en_pin_action = ON, pin = HET2, action = SET, reg = A, data = 0x00} ;Set HET pin HET2 high
FALL_RESET: ECMP {next = END, cond_addr = END, hr_lr = LOW, en_pin_action = ON, pin = HET2, action = CLEAR,reg = A, data = 0x00} ;Reset HET pin HET2
END:
Is there anything wrong in the code? This code seems to be missing some of the rising and falling edges at HET4 pin and hence doesn't generate similar output at pin 2.
Kindly let me know if I am doing something wrong here.
Best Regards,
Padmrish