
AN201
4.1.11 WDTCON (Addr:0x18).............................................................................................................................42
4.1.12 CMCON0 (Addr:0x19)..............................................................................................................................42
4.1.13 PR0 (Addr:0x1A)......................................................................................................................................43
4.1.14 MSCKCON (Addr:0x1B) ..........................................................................................................................44
4.1.15 SOSCPR (Addr:0x1C/0x1D)....................................................................................................................44
4.1.16 OPTION (Addr:0x81) ...............................................................................................................................45
4.1.17 TRISA (Addr:0x85)...................................................................................................................................46
Table 4-32. TRISA Bit Function Description ...................................................................................... 46
4.1.18 TRISC (Addr:0x87) ..................................................................................................................................46
4.1.19 PIE1(Addr:0x8C).................................................................................................................................47
4.1.20 PCON(Addr:0x8E)...............................................................................................................................48
4.1.21 OSCCON (Addr:0x8F).............................................................................................................................48
4.1.22 PR2 (Addr:0x92)......................................................................................................................................49
4.1.23 WPUA (Addr:0x95)...................................................................................................................................50
4.1.24 IOCA (Addr:0x96).....................................................................................................................................50
4.1.25 VRCON (Addr:0x99)................................................................................................................................50
4.1.26 EEDAT(Addr:0x9A).............................................................................................................................51
4.1.27 EEADR(Addr:0x9B).............................................................................................................................51
4.1.28 EECON1(Addr:0x9C)..........................................................................................................................51
4.1.29 EECON2 (Addr:0x9D)..............................................................................................................................52
4.1.30 Configuration Register UCFGx ................................................................................................................52
4.1.31 PCL and PCLATH....................................................................................................................................54
4.1.32 INDF and FSR Register...........................................................................................................................55
5System Clock Source..................................................................................................................... 56
5.1 Clock Source Mode.......................................................................................................................................... 56
5.2 External Clock Mode........................................................................................................................................ 57
5.2.1 EC Mode..................................................................................................................................................57
5.2.2 LP and XT Modes ....................................................................................................................................57
5.3 Internal Clock Mode ......................................................................................................................................... 57
5.3.1 Frequency Selection Bit (IRCF) ...............................................................................................................57
5.3.2 Clock Switching Timing of HFINTOSC and LFINTOSC ...........................................................................58
5.4 Clock Switching................................................................................................................................................ 58
5.4.1 System Clock Selection bit (SCS)............................................................................................................59
5.4.2 Oscillator Start-up Timeout State (OSTS) Bit...........................................................................................59
5.5 Two-Speed Clock Start-up Mode ..................................................................................................................... 59
5.5.1 Two-Speed Start-up Mode Configuration.................................................................................................59
5.5.2 Two-Speed Start-up Sequence................................................................................................................60
5.6 Fail-Safe Clock Monitor.................................................................................................................................... 60
5.6.1 Fail-Safe Detection ..................................................................................................................................60
5.6.2 Fail-Safe Operation..................................................................................................................................61
5.6.3 Fail-Safe Condition Clearing....................................................................................................................61
5.6.4 Reset or Wake-up from Sleep..................................................................................................................61
6Reset Timing.................................................................................................................................... 62
6.1 Power-on Reset (POR) .................................................................................................................................... 63
6.2 MCLR External Reset (MCLR)......................................................................................................................... 63
6.3 Power-up Timer (PWRT).................................................................................................................................. 63
6.4 Brown-out Reset / Low Voltage Reset.............................................................................................................. 63
6.5 Error Instruction Reset ..................................................................................................................................... 64