msp430用C语言编写的程序,如何在里面设置抗干扰的指令冗余,以及软件陷阱?一般资料只介绍了汇编的插入方法,如[P][FACE=Times New Roman][SIZE=3]ORG 0000H[/FACE][/SIZE][/P][P][FACE=Times New Roman][SIZE=3]START: LJMP MAIN[/FACE][/SIZE][/P][P][FACE=Times New Roman][SIZE=3]LJMP INT0[/FACE][/SIZE][/P][P][FACE=Times New Roman][SIZE=3]NOP[/FACE][/SIZE][/P][P][FACE=Times New Roman][SIZE=3]NOP[/FACE][/SIZE][/P][P][SIZE=3][FACE=Times New Roman]LJMP ERR ;[/SIZE][FACE=Times New Roman]陷阱[/FACE][/FACE][/P][P][SIZE=3][FACE=Times New Roman]LJMP TOINT[/SIZE][/FACE][/P][P][SIZE=3][FACE=Times New Roman]NOP[/SIZE][/FACE][/P][P][SIZE=3][FACE=Times New Roman]NOP[/SIZE][/FACE][/P][P][FACE=宋体][SIZE=10]LJMP ERR ;[/SIZE][/FACE][FACE=Times New Roman][SIZE=10]陷阱[/SIZE][/FACE][/P][P][FACE=Times New Roman][SIZE=10][/SIZE][/FACE]求教高手指点。谢谢![/P] |