| ??? 12/11/02 09:26 Read: times |
#34207 - How to use software traps? |
I use keil c51 and p89c51rd2.
I want to insert software traps between functions. (for example _nop_(); _nop_(); FunGoto0000(); and in assembly NOP NOP LJMP 0000 ) Because this instructions should not be executed in right case, the mcu must be wrong when it execute the instructions in software traps. And the mcu will restart when it dose not work correctly. The trouble is how can I put these trap instructons between functions by Keil tools?By hand? |



