Hi all, can anybody help me with a simulatorfunction to simulate a class A trap ? I wrote a little program for XC16x starter kits, where the NMI pin is used to start in debug mode to send out via ASC0 some messages about my LIN activities and LIN frames. Up to now the code seems working. My problem in this case is: In simulator I can access the VTREG NMIPIN, what works too. I wrote the following INI-file.
NMIPIN=1 KILL BUTTON * DEFINE BUTTON "Activate NMI","Toggle_NMI()" FUNC void NMI_Toggle (void) { exec("NMIPIN = 0x00"); exec("NMIPIN = 0x01"); }