
AN200
Page 4/86
5.5.2 Two-Speed Start-up Sequence......................................................................................... 53
5.6 Fail-Safe Clock Monitor............................................................................................................. 53
5.6.1Fail-Safe Detection............................................................................................................ 54
5.6.2 Fail-Safe Operation........................................................................................................... 54
5.6.3 Fail-Safe Condition Being Cleared.................................................................................... 54
5.6.4 Reset or Wake-up from Sleep........................................................................................... 54
6Reset Timing........................................................................................................................................... 55
6.1 Power-on Reset (POR)............................................................................................................. 56
6.2 External Reset (MCLR)............................................................................................................. 56
6.3 Power-up Timer (PWRT)........................................................................................................... 56
6.4 Brown-out Reset (BOR(LVR)).............................................................................................. 57
6.5 Error Instruction Reset.............................................................................................................. 57
6.6 Timeout Action .......................................................................................................................... 57
7BOOT....................................................................................................................................................... 60
8Watchdog Timer..................................................................................................................................... 61
9Timer0 ..................................................................................................................................................... 62
9.1 Timer0 Introduction................................................................................................................... 62
9.2 Timer0 Timer Mode................................................................................................................... 62
9.3 Timer0 Counter Mode............................................................................................................... 63
9.3.1 Software Configuring Prescaler Circuit ............................................................................. 63
9.3.2 Timer0 Interrupt................................................................................................................. 64
9.3.3 Drive Timer0 with the External Clock ................................................................................ 64
10 Timer2 ..................................................................................................................................................... 65
11 Comparator............................................................................................................................................. 67
12 Data EEPROM......................................................................................................................................... 68
13 Clock Measurement............................................................................................................................... 69
14 Interrupt Mode........................................................................................................................................ 70
14.1 INT Interrupt.............................................................................................................................. 70
14.2 PORTA Level Change Interrupt ................................................................................................ 71
14.3 Interrupt Response ................................................................................................................... 71
14.4 Context Saving During Interrupts.............................................................................................. 72
15 MCU Sleep Mode.................................................................................................................................... 73
15.1 Wake-up Mode.......................................................................................................................... 73
15.2 Watchdog Wake-up................................................................................................................... 73
16 I/O Port .................................................................................................................................................... 74
16.1 PORTA Port and TRISA Register.............................................................................................. 74