Datasheet
PIC16C712/716
DS41106C-page 98 1999-2013 Microchip Technology Inc.
Interrupt Sources.......................................................... 51, 61
A/D Conversion Complete ......................................... 47
Block Diagram.............................................................61
Capture Complete (CCP)............................................40
Compare Complete (CCP)......................................... 41
Interrupt-on-Change (RB7:RB4 ) ............................... 24
RB0/INT Pin, External................................................ 62
TMR0 Overflow.................................................... 30, 62
TMR1 Overflow.................................................... 31, 34
TMR2 to PR2 Match ..................................................37
TMR2 to PR2 Match (PWM) ................................ 36, 42
Interrupts, Context Saving During ......................................62
Interrupts, Enable Bits
A/D Converter Enable (ADIE Bit) ............................... 16
CCP1 Enable (CCP1IE Bit).................................. 16, 40
Global Interrupt Enable (GIE Bit) ......................... 15, 61
Interrupt-on-Change (RB7:RB4) Enable
(RBIE Bit)..................................................... 15, 62
Peripheral Interrupt Enable (PEIE Bit) ....................... 15
RB0/INT Enable (INTE Bit) ........................................ 15
TMR0 Overflow Enable (T0IE Bit).............................. 15
TMR1 Overflow Enable (TMR1IE Bit) ........................16
TMR2 to PR2 Match Enable (TMR2IE Bit) ................ 16
Interrupts, Flag Bits
A/D Converter Flag (ADIF Bit) ............................. 17, 47
CCP1 Flag (CCP1IF Bit) ................................ 17, 40, 41
Interrupt-on-Change (RB7:RB4) Flag
(RBIF Bit) ............................................... 15, 24, 62
RB0/INT Flag (INTF Bit)............................................. 15
TMR0 Overflow Flag (T0IF Bit) ............................ 15, 62
TMR1 Overflow Flag (TMR1IF Bit) ............................ 17
TMR2 to PR2 Match Flag (TMR2IF Bit)..................... 17
M
Master Clear (MCLR)
MCLR
Reset, Normal Operation.................... 54, 58, 59
MCLR
Reset, Sleep ................................................... 59
MCLR
Reset, Sleep ............................................. 54, 58
Memory Organization
Data Memory ............................................................. 10
Program Memory ......................................................... 9
Microchip Internet Web Site............................................. 101
MPLAB ASM30 Assembler, Linker, Librarian .................... 70
MPLAB ICD 2 In-Circuit Debugger..................................... 71
MPLAB ICE 2000 High-Performance Universal
In-Circuit Emulator ..................................................... 71
MPLAB ICE 4000 High-Performance Universal
In-Circuit Emulator ..................................................... 71
MPLAB Integrated Development Environment Software ... 69
MPLAB PM3 Device Programmer...................................... 71
MPLINK Object Linker/MPLIB Object Librarian ................. 70
O
OPCODE Field Descriptions.............................................. 67
OPTION_REG Register ............................................... 12, 14
INTEDG Bit ................................................................ 14
PS2:PS0 Bits ....................................................... 14, 29
PSA Bit................................................................. 14, 29
RBPU
Bit.................................................................... 14
T0CS Bit............................................................... 14, 29
T0SE Bit................................................................14, 29
Oscillator Configuration................................................ 51, 53
HS ........................................................................ 53, 58
LP......................................................................... 53, 58
RC.................................................................. 53, 54, 58
Selection (FOSC1:FOSC0 Bits)................................. 52
XT ........................................................................ 53, 58
Oscillator, Timer1......................................................... 31, 34
Oscillator, WDT.................................................................. 63
P
Packaging.......................................................................... 89
Details........................................................................ 90
Paging, Program Memory.............................................. 9, 19
PCON Register............................................................ 18, 58
BOR
Bit...................................................................... 18
POR
Bit...................................................................... 18
PICSTART Plus Development Programmer...................... 72
PIE1 Register............................................................... 12, 16
ADIE Bit ..................................................................... 16
CCP1IE Bit ................................................................ 16
TMR1IE Bit ................................................................ 16
TMR2IE Bit ................................................................ 16
Pin Functions
MCLR
/VPP ................................................................... 6
RA0/AN0...................................................................... 6
RA1/AN1...................................................................... 6
RA2/AN2...................................................................... 6
RA3/AN3/V
REF............................................................. 6
RA4/T0CKI .................................................................. 6
RB0/INT....................................................................... 7
RB1.............................................................................. 7
RB2.............................................................................. 7
RB3.............................................................................. 7
RB4.............................................................................. 7
RB5.............................................................................. 7
RB6.............................................................................. 7
RB7.............................................................................. 7
V
DD .............................................................................. 7
V
SS .............................................................................. 7
Pinout Descriptions
PIC16C712/716 Pinout Description............................. 6
PIR1 Register .............................................................. 11, 17
ADIF Bit ..................................................................... 17
CCP1IF Bit................................................................. 17
TMR1IF Bit................................................................. 17
TMR2IF Bit ................................................................. 17
Pointer, FSR ...................................................................... 20
POR. See Power-on Reset
PORTA
Initialization................................................................ 21
PORTA Register.................................................. 11, 21
RA3:RA0 Port Pins .................................................... 21
RA4/T0CKI Pin .......................................................... 22
TRISA Register.................................................... 12, 21
PORTB
Block Diagram of RB1/T1OSO/T1CKI Pin................. 24
Block Diagram of RB2/T10SI Pin............................... 25
Block Diagram of RB3/CCP1 Pin ............................... 25
Initialization................................................................ 23
PORTB Register.................................................. 11, 23
Pull-up Enable (RBPU
Bit)......................................... 14
RB0/INT Edge Select (INTEDG Bit) .......................... 14
RB0/INT Pin, External................................................ 62
RB3:RB0 Port Pins .................................................... 23
RB7:RB4 Interrupt-on-Change .................................. 62
RB7:RB4 Interrupt-on-Change Enable (RBIE Bit) 15, 62
RB7:RB4 Interrupt-on-Change Flag
(RBIF Bit)............................................... 15, 24, 62
RB7:RB4 Port Pins .................................................... 26
TRISB Register.................................................... 12, 23