Datasheet

PIC16F7X7
DS30498D-page 268 2003-2013 Microchip Technology Inc.
MSSP (I
2
C Mode) ..................................................... 102
MSSP (SPI Mode).......................................................93
On-Chip Reset Circuit...............................................172
OSC1/CLKI/RA7 Pin ...................................................54
OSC2/CLKO/RA6 Pin .................................................53
PIC16F737 and PIC16F767..........................................6
PIC16F747 and PIC16F777..........................................7
PORTC (Peripheral Output Override)
RC<2:0>, RC<7:5> Pins .....................................65
PORTC (Peripheral Output Override)
RC<4:3> Pins......................................................65
PORTD (In I/O Port Mode)..........................................67
PORTD and PORTE (Parallel Slave Port) ..................70
PORTE (In I/O Port Mode)..........................................68
PWM Mode .................................................................91
RA0/AN0:RA1/AN1 Pins.............................................50
RA2/AN2/V
REF-/CVREF Pin.........................................51
RA3/AN3/V
REF+ Pin....................................................50
RA4/T0CKI/C1OUT Pin ..............................................51
RA5/AN4/LVDIN/SS
/C2OUT Pin ................................52
RB0/INT/AN12 Pin......................................................57
RB1/AN10 Pin.............................................................57
RB2/AN8 Pin............................................................... 58
RB3/CCP2/AN9 Pin ....................................................59
RB4/AN11 Pin.............................................................60
RB5/AN13/CCP3 Pin ..................................................61
RB6/PGC Pin ..............................................................62
RB7/PGD Pin ..............................................................63
Recommended MCLR
Circuit ...................................173
System Clock ..............................................................39
Timer0/WDT Prescaler ...............................................73
Timer1.........................................................................79
Timer2.........................................................................85
Watchdog Timer (WDT) ............................................186
BOR. See Brown-out Reset.
BRG. See Baud Rate Generator.
BRGH Bit...........................................................................135
Brown-out Reset (BOR) ....................169, 172, 173, 179, 180
C
C Compilers
MPLAB C18 ..............................................................202
Capture/Compare/PWM (CCP)...........................................87
Capture Mode .............................................................89
CCP Pin Configuration........................................89
Prescaler.............................................................89
Compare Mode ...........................................................89
CCP Pin Configuration........................................90
Software Interrupt Mode .....................................90
Special Event Trigger..........................................90
Special Event Trigger Output..............................90
Timer1 Mode Selection.......................................90
Interaction of Two CCP Modules ................................87
PWM Mode .................................................................91
Duty Cycle...........................................................91
Example Frequencies and Resolutions ..............92
Period.................................................................. 91
Setup for Operation.............................................92
Registers Associated with Capture, Compare and
Timer1.................................................................90
Registers Associated with PWM and Timer2..............92
Timer Resources.........................................................87
CCP1 Module......................................................................87
CCP2 Module......................................................................87
CCP3 Module......................................................................87
CCPR1H Register...............................................................87
CCPR1L Register ............................................................... 87
CCPR2H Register............................................................... 87
CCPR2L Register ............................................................... 87
CCPR3H Register............................................................... 87
CCPR3L Register ............................................................... 87
CCPxM<3:0> Bits ............................................................... 88
CCPxX and CCPxY Bits ..................................................... 88
Clock Sources..................................................................... 37
Selection Using OSCCON Register............................ 37
Clock Switching .................................................................. 37
Modes (table).............................................................. 47
Transition and the Watchdog Timer............................ 38
Code Examples
Call of a Subroutine in Page 1 from Page 0 ............... 29
Changing Between Capture Prescalers...................... 89
Changing Prescaler Assignment from WDT
to Timer0 ............................................................ 76
Flash Program Read................................................... 32
Implementing a Real-Time Clock Using a
Timer1 Interrupt Service ..................................... 82
Indirect Addressing..................................................... 30
Initializing PORTA....................................................... 49
Loading the SSPBUF (SSPSR) Register.................... 96
Reading a 16-bit Free Running Timer ........................ 80
Saving Status and W Registers in RAM ................... 185
Writing a 16-bit Free Running Timer........................... 80
Code Protection........................................................ 169, 192
Comparator Module .......................................................... 161
Analog Input Connection Considerations ................. 165
Associated Registers................................................ 165
Configuration ............................................................ 162
Effects of a Reset ..................................................... 165
Interrupts .................................................................. 164
Operation.................................................................. 163
Operation During Sleep ............................................ 165
Outputs ..................................................................... 163
Reference ................................................................. 163
External Signal ................................................. 163
Internal Signal................................................... 163
Response Time......................................................... 163
Comparator Specifications................................................ 218
Comparator Voltage Reference........................................ 167
Associated Registers................................................ 168
Computed GOTO................................................................ 29
Configuration Bits ............................................................. 169
Conversion Considerations............................................... 266
Crystal and Ceramic Resonators........................................ 33
Customer Change Notification Service............................. 275
Customer Notification Service .......................................... 275
Customer Support............................................................. 275
D
Data Memory ...................................................................... 15
Bank Select (RP1:RP0 Bits) ....................................... 15
General Purpose Registers ........................................ 15
Map for PIC16F737 and PIC16F767 .......................... 16
Map for PIC16F747 and PIC16F777 .......................... 17
Special Function Registers......................................... 18
DC and AC Characteristics
Graphs and Tables ................................................... 235
DC Characteristics.................................................... 207, 216
Internal RC Accuracy................................................ 215
Power-Down and Supply Current ............................. 208
Development Support....................................................... 201