![](http://datasheet.mmic.net.cn/260000/PIC16C620_datasheet_15942796/PIC16C620_104.png)
PIC16C62X(A)
DS30235F-page 104
Preliminary
1997 Microchip Technology Inc.
PICDEM-3 Low-Cost PIC16CXXX Demo
Board...................................................................................74
PICMASTER
In-Circuit Emulator......................................73
PICSTART
Plus Entry Level Development
System................................................................................73
PIE1 Register......................................................................20
Pinout Description...............................................................11
PIR1 Register......................................................................20
Port RB Interrupt.................................................................56
PORTA................................................................................25
PORTB................................................................................28
Power Control/Status Register (PCON)..............................51
Power-Down Mode (SLEEP)...............................................59
Power-On Reset (POR) ......................................................50
Power-up Timer (PWRT).....................................................50
Prescaler.............................................................................34
PRO MATE
II Universal Programmer...............................73
Program Memory Organization...........................................13
Q
Quick-Turnaround-Production (QTP) Devices......................7
R
RC Oscillator.......................................................................48
Reset...................................................................................49
RETFIE Instruction..............................................................69
RETLW Instruction..............................................................69
RETURN Instruction............................................................70
RLF Instruction....................................................................70
RRF Instruction...................................................................70
S
SEEVAL
Evaluation and Programming System...............75
Serialized Quick-Turnaround-Production
(SQTP) Devices....................................................................7
SLEEP Instruction...............................................................70
Software Simulator (MPLAB-SIM).......................................75
Special Features of the CPU...............................................45
Special Function Registers .................................................16
Stack...................................................................................22
Status Register....................................................................17
SUBLW Instruction..............................................................71
SUBWF Instruction..............................................................71
SWAPF Instruction..............................................................72
T
Timer0
TIMER0.......................................................................31
TIMER0 (TMR0) Interrupt ...........................................31
TIMER0 (TMR0) Module.............................................31
TMR0 with External Clock...........................................33
Timer1
Switching Prescaler Assignment.................................35
Timing Diagrams and Specifications...................................87
TMR0 Interrupt....................................................................56
TRIS Instruction ..................................................................72
TRISA..................................................................................25
TRISB..................................................................................28
V
Voltage Reference Module..................................................43
VRCON Register.................................................................43
W
Watchdog Timer (WDT)......................................................57
X
XORLW Instruction .............................................................72
XORWF Instruction.............................................................72
LIST OF EXAMPLES
Example 3-1: Instruction Pipeline Flow.............................. 12
Example 4-1: INdirect Addressing...................................... 23
Example 5-1: Initializing PORTA........................................ 25
Example 5-2: Read-Modify-Write Instructions
on an I/O Port............................................... 30
Example 6-1: Changing prescaler
(Timer0
→
WDT)............................................ 35
Example 6-2: Changing prescaler
(WDT
→
Timer0)............................................ 35
Example 7-1: Initializing Comparator Module .................... 39
Example 8-1: Voltage Reference Configuration................. 44
Example 9-1: Saving the Status and W Registers
in RAM ......................................................... 57
LIST OF FIGURES
Figure 3-1:
Figure 3-2:
Figure 4-1:
Block Diagram........................................... 10
Clock/Instruction Cycle............................... 12
Program Memory Map and Stack for the
PIC16C620/PIC16C620A........................... 13
Program Memory Map and Stack for the
PIC16C621/PIC16C621A........................... 13
Program Memory Map and Stack for the
PIC16C622/PIC16C622A........................... 13
Data Memory Map for the
PIC16C620A/621A..................................... 15
Data Memory Map for the PIC16C622A..... 15
STATUS Register (Address 03h or 83h).... 17
OPTION Register (Address 81h)................ 18
INTCON Register (Address 0Bh or 8Bh).... 19
PIE1 Register (Address 8Ch)..................... 20
PIR1 Register (address 0Ch) ..................... 20
PCON Register (Address 8Eh)................... 21
Loading Of PC In Different Situations ........ 22
Direct/indirect Addressing
PIC16C62X(A)............................................ 23
Block Diagram of RA1:RA0 Pins................ 25
Block Diagram of RA2 Pin.......................... 25
Block Diagram of RA3 Pin.......................... 26
Block Diagram of RA4 Pin.......................... 26
Block Diagram of RB7:RB4 Pins................ 28
Block Diagram of RB3:RB0 Pins................ 28
Successive I/O Operation........................... 30
TIMER0 Block Diagram.............................. 31
TIMER0 (TMR0) Timing: Internal
Clock/No Prescaler..................................... 31
TIMER0 Timing: Internal Clock/
Prescale 1:2 ............................................... 32
TIMER0 Interrupt Timing............................ 32
TIMER0 Timing With External Clock.......... 33
Block Diagram of thE Timer0/WDT
Prescaler .................................................... 34
CMCON Register (Address 1Fh)................ 37
Comparator I/O Operating Modes.............. 38
Single Comparator ..................................... 39
Comparator Output Block Diagram ............ 40
Analog Input Model .................................... 41
VRCON Register(Address 9Fh) ................ 43
Voltage Reference Block Diagram ............. 43
Voltage Reference Output Buffer
Example ..................................................... 44
Configuration Word .................................... 46
Crystal Operation
(or Ceramic Resonator) (HS, XT or LP
Osc Configuration) ..................................... 47
Figure 4-2:
Figure 4-3:
Figure 4-4:
Figure 4-5:
Figure 4-6:
Figure 4-7:
Figure 4-8:
Figure 4-9:
Figure 4-10:
Figure 4-11:
Figure 4-12:
Figure 4-13:
Figure 5-1:
Figure 5-2:
Figure 5-3:
Figure 5-4:
Figure 5-5:
Figure 5-6:
Figure 5-7:
Figure 6-1:
Figure 6-2:
Figure 6-3:
Figure 6-4:
Figure 6-5:
Figure 6-6:
Figure 7-1:
Figure 7-2:
Figure 7-3:
Figure 7-4:
Figure 7-5:
Figure 8-1:
Figure 8-2:
Figure 8-3:
Figure 9-1:
Figure 9-2: