I have tried to create an address trap scenario, but I have been unsuccessful. I might be doing something wrong... I was however able to use the Math error trap and I see how that works.
Could someone please show me a sample code for doing this for address Error trap.
this is the trap function i have:
Code: Select all
'Addr ERR
Sub procedure TrapTrap1 org $0008
INTCON1.3 = 0
LATB = $A0A0
asm
MOV [w15 - 32],w13
MOV w13 LATD
end asm
Uart2_write_Text("ADDR ERROR" + chr(13) + chr(10))
End Sub
Help Please