APPENDIX A PROGRAM LIST
for (unCnt = 0; unCnt < 555; unCnt++){
/* Wait of about 10 ms (for
chattering removal) */
NOP();
}
PIF1 = 0;
/* Clear the INTP1 interrupt request */
while (!P4.3){
/* Processing during SW input */
P2 ^= 0b00000001;
/* Reverse output of LED1 */
for (unCnt = 0; unCnt < 3333; unCnt++){
/* Wait of about 60 ms
*/
NOP();
}
WDTE = 0xAC;
/* Clear the watchdog timer */
}
return;
}
Application Note U18847EJ1V0AN
34