Professional Documents
Culture Documents
PIC16C72 SERIES
Devices included:
Pin Diagrams
PIC16C72
PIC16CR72
28
RB7
RA0/AN0
27
RB6
RA1/AN1
26
RB5
MCLR/VPP
RA2/AN2
25
RB4
RA3/AN3/VREF
24
RB3
RA4/T0CKI
23
RB2
RA5/SS/AN4
VSS
7
8
22
21
RB1
RB0/INT
OSC1/CLKIN
20
VDD
OSC2/CLKOUT
10
19
VSS
RC0/T1OSO/T1CKI
11
18
RC7
RC1/T1OSI
12
17
RC6
RC2/CCP1
13
16
RC5/SDO
RC3/SCK/SCL
14
15
RC4/SDI/SDA
PIC16C72
PIC16CR72
Peripheral Features:
Timer0: 8-bit timer/counter with 8-bit prescaler
Timer1: 16-bit timer/counter with prescaler,
can be incremented during sleep via external
crystal/clock
Timer2: 8-bit timer/counter with 8-bit period
register, prescaler and postscaler
Capture, Compare, PWM (CCP) module
- Capture is 16-bit, max. resolution is 12.5 ns
- Compare is 16-bit, max. resolution is 200 ns
- PWM max. resolution is 10-bit
8-bit 5-channel analog-to-digital converter
Synchronous Serial Port (SSP) with
SPI and I2C
Brown-out detection circuitry for
Brown-out Reset (BOR)
Preliminary
DS39016A-page 1
PIC16C72 Series
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 3
2.0 Memory Organization ................................................................................................................................................................... 5
3.0 I/O Ports ..................................................................................................................................................................................... 19
4.0 Timer0 Module ........................................................................................................................................................................... 25
5.0 Timer1 Module ........................................................................................................................................................................... 27
6.0 Timer2 Module ........................................................................................................................................................................... 31
7.0 Capture/Compare/PWM (CCP) Module ..................................................................................................................................... 33
8.0 Synchronous Serial Port (SSP) Module ..................................................................................................................................... 39
9.0 Analog-to-Digital Converter (A/D) Module.................................................................................................................................. 53
10.0 Special Features of the CPU...................................................................................................................................................... 59
11.0 Instruction Set Summary ............................................................................................................................................................ 73
12.0 Development Support................................................................................................................................................................. 75
13.0 Electrical Characteristics - PIC16C72 Series ............................................................................................................................. 77
14.0 DC and AC Characteristics Graphs and Tables - PIC16C72 ..................................................................................................... 97
15.0 DC and AC Characteristics Graphs and Tables - PIC16CR72 ................................................................................................ 107
16.0 Packaging Information.............................................................................................................................................................. 109
Appendix A: Whats New in this Data Sheet .................................................................................................................................. 115
Appendix B: Whats Changed in this Data Sheet........................................................................................................................... 115
Appendix C: Device Differences..................................................................................................................................................... 115
Index .................................................................................................................................................................................................. 117
On-Line Support................................................................................................................................................................................. 121
Reader Response .............................................................................................................................................................................. 122
PIC16C72 Series Product Identification System................................................................................................................................ 125
Sales and Support.............................................................................................................................................................................. 125
DS39016A-page 2
PIC16C72
PIC16CR72
DC - 20MHz
POR, PWRT, OST, BOR
2K (EPROM)
128
8
PortA, PortB, PortC
Timer0, Timer1, Timer2
1
Basic SSP
5 channels
35
Preliminary
DC - 20MHz
POR, PWRT, OST, BOR
2K (ROM)
128
8
PortA, PortB, PortC
Timer0, Timer1, Timer2
1
SSP
5 channels
35
PIC16C72 Series
1.0
DEVICE OVERVIEW
The program memory contains 2K words which translate to 2048 instructions, since each 14-bit program
memory word is the same width as each device instruction. The data memory (RAM) contains 128 bytes.
External interrupt
Change on PORTB interrupt
Timer0 clock input
Timer1 clock/oscillator
Capture/Compare/PWM
A/D converter
SPI/I2C
Table 1-1 details the pinout of the device with descriptions and details for each pin.
FIGURE 1-1:
Program
Bus
PORTA
RA0/AN0
RA1/AN1
RA2/AN2
RA3/AN3/VREF
RA4/T0CKI
RA5/SS/AN4
RAM
File
Registers
128 x 8
8 Level Stack
(13-bit)
14
Data Bus
Program Counter
EPROM/
ROM
Program
Memory
2K x 14
RAM Addr(1)
PORTB
Addr MUX
Instruction reg
7
Direct Addr
RB0/INT
Indirect
Addr
RB7:RB1
FSR reg
STATUS reg
8
3
Power-up
Timer
Oscillator
Start-up Timer
Instruction
Decode &
Control
ALU
Power-on
Reset
Timing
Generation
MCLR
W reg
VDD, VSS
Timer0
Timer1
Timer2
A/D
Synchronous
Serial Port
CCP1
Note 1:
RC0/T1OSO/T1CKI
RC1/T1OSI
RC2/CCP1
RC3/SCK/SCL
RC4/SDI/SDA
RC5/SDO
RC6
RC7
Watchdog
Timer
Brown-out
Reset
OSC1/CLKIN
OSC2/CLKOUT
MUX
PORTC
Preliminary
DS39016A-page 3
PIC16C72 Series
TABLE 1-1
Pin Name
I/O/P
Type
Buffer
Type
Description
OSC1/CLKIN
OSC2/CLKOUT
10
MCLR/VPP
I/P
ST
RA0/AN0
I/O
TTL
RA1/AN1
I/O
TTL
RA2/AN2
I/O
TTL
RA3/AN3/VREF
I/O
TTL
RA4/T0CKI
I/O
ST
RA4 can also be the clock input to the Timer0 module. Output is
open drain type.
RA5/SS/AN4
I/O
TTL
RA5 can also be analog input4 or the slave select for the
synchronous serial port.
RB0/INT
RB1
21
22
I/O
I/O
TTL/ST(1)
TTL
RB2
RB3
RB4
23
24
25
I/O
I/O
I/O
TTL
TTL
TTL
RB5
RB6
26
27
I/O
I/O
TTL
TTL/ST(2)
RB7
28
I/O
TTL/ST(2)
RC0/T1OSO/T1CKI
11
I/O
ST
RC1/T1OSI
12
I/O
ST
RC2/CCP1
13
I/O
ST
RC3/SCK/SCL
14
I/O
ST
RC4/SDI/SDA
15
I/O
ST
RC5/SDO
16
I/O
ST
RC6
RC7
17
18
I/O
I/O
ST
ST
VSS
VDD
Legend: I = input
8, 19
P
DS39016A-page 4
Preliminary
PIC16C72 Series
2.0
MEMORY ORGANIZATION
FIGURE 2-1:
PC<12:0>
CALL, RETURN
RETFIE, RETLW
13
Stack Level 1
Stack Level 8
Reset Vector
0000h
Interrupt Vector
0004h
0005h
User Memory
Space
2.1
On-chip Program
Memory
07FFh
0800h
1FFFh
Preliminary
DS39016A-page 5
PIC16C72 Series
2.2
FIGURE 2-2:
RP0
= 00
= 01
= 10
= 11
*
File
Address
File
Address
00h
01h
02h
03h
04h
05h
06h
07h
08h
09h
0Ah
0Bh
0Ch
0Dh
0Eh
0Fh
10h
11h
12h
13h
14h
15h
16h
17h
18h
19h
1Ah
1Bh
1Ch
1Dh
1Eh
1Fh
20h
(STATUS<6:5>)
Bank0
Bank1
Bank2 (not implemented)
Bank3 (not implemented)
Maintain this bit clear to ensure upward compatibility with future products.
The register file can be accessed either directly or indirectly through the File Select Register FSR
(Section 2.5).
INDF(1)
TMR0
PCL
STATUS
FSR
PORTA
PORTB
PORTC
INDF(1)
OPTION
PCL
STATUS
FSR
TRISA
TRISB
TRISC
PCLATH
INTCON
PIR1
PCLATH
INTCON
PIE1
TMR1L
TMR1H
T1CON
TMR2
T2CON
SSPBUF
SSPCON
CCPR1L
CCPR1H
CCP1CON
PCON
ADRES
ADCON0
General
Purpose
Register
7Fh
PR2
SSPADD
SSPSTAT
ADCON1
General
Purpose
Register
80h
81h
82h
83h
84h
85h
86h
87h
88h
89h
8Ah
8Bh
8Ch
8Dh
8Eh
8Fh
90h
91h
92h
93h
94h
95h
96h
97h
98h
99h
9Ah
9Bh
9Ch
9Dh
9Eh
9Fh
A0h
BFh
C0h
FFh
Bank 0
Bank 1
DS39016A-page 6
Preliminary
PIC16C72 Series
2.2.2
TABLE 2-1
Address Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR,
BOR
Value on all
other resets
(3)
Bank 0
00h(1)
INDF
Addressing this location uses contents of FSR to address data memory (not a physical register)
01h
TMR0
02h(1)
PCL
03h(1)
STATUS
IRP(4)
RP1(4)
RP0
TO
DC
04h(1)
FSR
05h
PORTA
06h
PORTB
07h
PORTC
08h
Unimplemented
09h
Unimplemented
0Ah(1,2)
PCLATH
0Bh(1)
INTCON
0Ch
PIR1
0Dh
0Eh
GIE
PEIE
T0IE
INTE
RBIE
T0IF
INTF
RBIF
ADIF
SSPIF
CCP1IF
TMR2IF
TMR1IF
Unimplemented
TMR1L
Holding register for the Least Significant Byte of the 16-bit TMR1 register
Holding register for the Most Significant Byte of the 16-bit TMR1 register
0Fh
TMR1H
10h
T1CON
11h
TMR2
T1CKPS1
T1CKPS0 T1OSCEN
TMR1ON
12h
T2CON
SSPBUF
14h
SSPCON
15h
CCPR1L
16h
CCPR1H
17h
CCP1CON
1Eh
ADRES
1Fh
ADCON0
TMR2ON
T2CKPS1
SSPM2
SSPM1
SSPOV
SSPEN
CCP1X
CKP
SSPM3
CCP1Y
CCP1M2
CCP1M1
CCP1M0
Unimplemented
ADCS1
13h
18h-1Dh
T1SYNC
CHS1
CHS0
GO/DONE
ADON
Preliminary
DS39016A-page 7
PIC16C72 Series
TABLE 2-1
Address Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR,
BOR
Value on all
other resets
(3)
Bank 1
80h(1)
INDF
81h
OPTION_REG
82h(1)
PCL
83h(1)
STATUS
84h
(1)
Addressing this location uses contents of FSR to address data memory (not a physical register)
RBPU
INTEDG
T0CS
T0SE
PSA
PS2
PS1
PS0
FSR
IRP(4)
RP1(4)
RP0
TO
PD
DC
85h
TRISA
86h
TRISB
87h
TRISC
88h
Unimplemented
89h
Unimplemented
8Ah(1,2)
PCLATH
8Bh(1)
INTCON
8Ch
PIE1
8Dh
8Eh
PCON
GIE
PEIE
T0IE
INTE
RBIE
T0IF
INTF
RBIF
ADIE
SSPIE
CCP1IE
TMR2IE
TMR1IE
POR
BOR
Unimplemented
8Fh
Unimplemented
90h
Unimplemented
91h
Unimplemented
92h
PR2
93h
SSPADD
94h
SSPSTAT
SMP(5)
CKE(5)
D/A
R/W
UA
BF
95h
Unimplemented
96h
Unimplemented
97h
Unimplemented
98h
Unimplemented
99h
Unimplemented
9Ah
Unimplemented
9Bh
Unimplemented
9Ch
Unimplemented
9Dh
Unimplemented
9Eh
Unimplemented
---- -000
---- -000
9Fh
ADCON1
PCFG2
PCFG1
PCFG0
DS39016A-page 8
Preliminary
PIC16C72 Series
2.2.2.1
STATUS REGISTER
FIGURE 2-3:
R/W-0
IRP
bit7
bit 7:
R/W-0
RP1
R/W-0
RP0
R-1
TO
R-1
PD
R/W-x
Z
R/W-x
DC
R/W-x
C
bit0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n = Value at POR reset
bit 6-5: RP1:RP0: Register Bank Select bits (used for direct addressing)
11 = Bank 3 (180h - 1FFh)
10 = Bank 2 (100h - 17Fh)
01 = Bank 1 (80h - FFh)
00 = Bank 0 (00h - 7Fh)
Each bank is 128 bytes. For devices with only Bank0 and Bank1, the IRP bit is reserved. Always maintain
this bit clear.
bit 4:
bit 3:
bit 2:
Z: Zero bit
1 = The result of an arithmetic or logic operation is zero
0 = The result of an arithmetic or logic operation is not zero
bit 1:
DC: Digit carry/borrow bit (ADDWF, ADDLW,SUBLW,SUBWF instructions) (for borrow the polarity is reversed)
1 = A carry-out from the 4th low order bit of the result occurred
0 = No carry-out from the 4th low order bit of the result
bit 0:
Preliminary
DS39016A-page 9
PIC16C72 Series
2.2.2.2
OPTION_REG REGISTER
FIGURE 2-4:
R/W-1
RBPU
bit7
Note:
R/W-1
INTEDG
R/W-1
T0CS
R/W-1
T0SE
R/W-1
PSA
R/W-1
PS2
R/W-1
PS1
R/W-1
PS0
bit0
bit 7:
bit 6:
bit 5:
bit 4:
bit 3:
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n = Value at POR reset
TMR0 Rate
WDT Rate
000
001
010
011
100
101
110
111
1:2
1:4
1:8
1 : 16
1 : 32
1 : 64
1 : 128
1 : 256
1:1
1:2
1:4
1:8
1 : 16
1 : 32
1 : 64
1 : 128
DS39016A-page 10
Preliminary
PIC16C72 Series
2.2.2.3
INTCON REGISTER
Note:
The INTCON Register is a readable and writable register which contains various enable and flag bits for the
TMR0 register overflow, RB Port change and External
RB0/INT pin interrupts.
FIGURE 2-5:
R/W-0
GIE
bit7
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-x
PEIE
T0IE
INTE
RBIE
T0IF
INTF
RBIF
bit0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n = Value at POR reset
bit 7:
bit 6:
bit 5:
bit 4:
bit 3:
bit 2:
bit 1:
bit 0:
Preliminary
DS39016A-page 11
PIC16C72 Series
2.2.2.4
PIE1 REGISTER
FIGURE 2-6:
U-0
Note:
R/W-0
ADIE
U-0
U-0
R/W-0
SSPIE
R/W-0
CCP1IE
R/W-0
TMR2IE
bit7
R/W-0
TMR1IE
bit0
bit 7:
bit 6:
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n = Value at POR reset
bit 2:
bit 1:
bit 0:
DS39016A-page 12
Preliminary
PIC16C72 Series
2.2.2.5
PIR1 REGISTER
Note:
FIGURE 2-7:
U-0
R/W-0
ADIF
U-0
U-0
R/W-0
SSPIF
R/W-0
CCP1IF
R/W-0
TMR2IF
R/W-0
TMR1IF
bit7
bit0
bit 7:
bit 6:
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n = Value at POR reset
bit 2:
bit 1:
bit 0:
Preliminary
DS39016A-page 13
PIC16C72 Series
2.2.2.6
PCON REGISTER
Note:
FIGURE 2-8:
U-0
U-0
U-0
U-0
U-0
R/W-0
POR
bit7
R/W-q
BOR
bit0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n = Value at POR reset
bit 0:
DS39016A-page 14
Preliminary
PIC16C72 Series
2.3
FIGURE 2-9:
STACK (13-bits x 8)
Top of STACK
PCL
12
PC
5
PCLATH<4:0>
ALU result
PCLATH
STACK (13-bits x 8)
11 10
Top of STACK
PCL
PC
2
11
PCLATH<4:3>
Opcode <10:0>
PCLATH
STACK (13-bits x 8)
13
Top of STACK
PCH
12
11 10
PCL
8
PC
2
11
PCLATH<4:3>
Opcode <10:0>
PCLATH
STACK (13-bits x 8)
Top of STACK
PCH
12
11 10
PCL
8
PC
11
Opcode <10:0>
PCLATH
Preliminary
DS39016A-page 15
PIC16C72 Series
2.3.1
2.4
STACK
DS39016A-page 16
Top of STACK
Preliminary
PIC16C72 Series
2.5
The INDF register is not a physical register. Addressing INDF actually addresses the register whose
address is contained in the FSR register (FSR is a
pointer). This is indirect addressing.
EXAMPLE 2-1:
EXAMPLE 2-2:
INDIRECT ADDRESSING
movlw
movwf
clrf
incf
btfss
goto
NEXT
;initialize pointer
; to RAM
;clear INDF register
;inc pointer
;all done?
;NO, clear next
CONTINUE
:
;YES, continue
Indirect Addressing
from opcode
IRP
FSR register
(2)
(2)
bank select
bank select
location select
00
00h
01
80h
10
100h
location select
11
180h
not used
(3)
(3)
Data
Memory(1)
7Fh
Bank 0
FFh
17Fh
Bank 1
1FFh
Bank 2
Bank 3
Preliminary
DS39016A-page 17
PIC16C72 Series
NOTES:
DS39016A-page 18
Preliminary
PIC16C72 Series
3.0
I/O PORTS
FIGURE 3-1:
Data
bus
BLOCK DIAGRAM OF
RA3:RA0 AND RA5 PINS
Q
VDD
WR
Port
CK
Data Latch
3.1
PORTA is a 6-bit wide bi-directional port. The corresponding data direction register is TRISA. Setting a
TRISA bit (=1) will make the corresponding PORTA pin
an input, i.e., put the corresponding output driver in a
hi-impedance mode. Clearing a TRISA bit (=0) will
make the corresponding PORTA pin an output, i.e., put
the contents of the output latch on the selected pin.
WR
TRIS
TRIS Latch
RD PORT
To A/D Converter
Note 1: I/O pins have protection diodes to VDD and
VSS.
FIGURE 3-2:
INITIALIZING PORTA
STATUS, RP0
PORTA
BSF
MOVLW
STATUS, RP0
0xCF
MOVWF
TRISA
;
;
;
;
;
;
;
;
;
;
;
;
EN
BCF
CLRF
TTL
input
buffer
RD TRIS
On a Power-on Reset, these pins are configured as analog inputs and read as '0'.
EXAMPLE 3-1:
I/O pin(1)
VSS
Analog
input
mode
CK
Data
bus
WR
PORT
CK
I/O pin(1)
Data Latch
WR
TRIS
Initialize PORTA by
clearing output
data latches
Select Bank 1
Value used to
initialize data
direction
Set RA<3:0> as inputs
RA<5:4> as outputs
TRISA<7:6> are always
read as '0'.
CK
VSS
Schmitt
Trigger
input
buffer
TRIS Latch
RD TRIS
Q
D
EN
EN
RD PORT
TMR0 clock input
Note 1: I/O pin has protection diodes to VSS only.
Preliminary
DS39016A-page 19
PIC16C72 Series
TABLE 3-1
PORTA FUNCTIONS
Name
Bit#
Buffer
RA0/AN0
RA1/AN1
RA2/AN2
RA3/AN3/VREF
RA4/T0CKI
bit0
bit1
bit2
bit3
bit4
TTL
TTL
TTL
TTL
ST
Function
TABLE 3-2
Address Name
Bit 7 Bit 6
05h
PORTA
85h
TRISA
9Fh
ADCON1
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
RA5
RA4
RA3
RA2
RA1
RA0
PCFG2
PCFG1
PCFG0
Value on:
POR,
BOR
Value on all
other resets
--0x 0000
--0u 0000
--11 1111
--11 1111
---- -000
---- -000
Legend: x = unknown, u = unchanged, - = unimplemented locations read as '0'. Shaded cells are not used by PORTA.
DS39016A-page 20
Preliminary
PIC16C72 Series
3.2
PORTB is an 8-bit wide bi-directional port. The corresponding data direction register is TRISB. Setting a
TRISB bit (=1) will make the corresponding PORTB pin
an input, i.e., put the corresponding output driver in a
hi-impedance mode. Clearing a TRISB bit (=0) will
make the corresponding PORTB pin an output, i.e., put
the contents of the output latch on the selected pin.
EXAMPLE 3-1:
BCF
CLRF
BSF
MOVLW
MOVWF
INITIALIZING PORTB
STATUS, RP0
PORTB
STATUS, RP0
0xCF
TRISB
;
;
;
;
;
;
;
;
;
;
;
Initialize PORTB by
clearing output
data latches
Select Bank 1
Value used to
initialize data
direction
Set RB<3:0> as inputs
RB<5:4> as outputs
RB<7:6> as inputs
FIGURE 3-3:
WR Port
b)
FIGURE 3-4:
Data bus
weak
P pull-up
WR Port
Data Latch
D
Q
BLOCK DIAGRAM OF
RB7:RB4 PINS
weak
P pull-up
Data Latch
D
Q
I/O
pin(1)
CK
TRIS Latch
D
Q
I/O
pin(1)
CK
WR TRIS
TRIS Latch
D
Q
WR TRIS
a)
RBPU(2)
VDD
Data bus
VDD
BLOCK DIAGRAM OF
RB3:RB0 PINS
RBPU(2)
TTL
Input
Buffer
CK
TTL
Input
Buffer
CK
RD TRIS
Q
RD TRIS
RD Port
Latch
D
EN
RD Port
Q
EN
D
RD Port
EN
RB0/INT
RD Port
Q1
Set RBIF
From other
RB7:RB4 pins
Schmitt Trigger
Buffer
ST
Buffer
Q3
Preliminary
DS39016A-page 21
PIC16C72 Series
TABLE 3-3
Name
PORTB FUNCTIONS
Bit#
Buffer
Function
TTL/ST(1)
bit0
TABLE 3-4
Address
Name
06h, 106h
PORTB
86h, 186h
TRISB
81h, 181h
OPTION
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR,
BOR
Value on all
other resets
RB7
RB6
RB5
RB4
RB3
RB2
RB1
RB0
xxxx xxxx
uuuu uuuu
1111 1111
1111 1111
1111 1111
1111 1111
INTEDG
T0CS
T0SE
PSA
PS2
PS1
PS0
DS39016A-page 22
Preliminary
PIC16C72 Series
3.3
FIGURE 3-5:
PORTC is an 8-bit wide bi-directional port. The corresponding data direction register is TRISC. Setting a
TRISC bit (=1) will make the corresponding PORTC pin
an input, i.e., put the corresponding output driver in a
hi-impedance mode. Clearing a TRISC bit (=0) will
make the corresponding PORTC pin an output, i.e., put
the contents of the output latch on the selected pin.
PORTC is multiplexed with several peripheral functions
(Table 3-5). PORTC pins have Schmitt Trigger input
buffers.
When enabling peripheral functions, care should be
taken in defining TRIS bits for each PORTC pin. Some
peripherals override the TRIS bit to make a pin an output, while other peripherals override the TRIS bit to
make a pin an input. Since the TRIS bit override is in
effect while the peripheral is enabled, read-modifywrite instructions (BSF, BCF, XORWF) with TRISC as
destination should be avoided. The user should refer to
the corresponding peripheral section for the correct
TRIS bit settings.
EXAMPLE 3-1:
INITIALIZING PORTC
BCF
CLRF
STATUS, RP0
PORTC
BSF
MOVLW
STATUS, RP0
0xCF
MOVWF
TRISC
;
;
;
;
;
;
;
;
;
;
;
Select Bank 0
Initialize PORTC by
clearing output
data latches
Select Bank 1
Value used to
initialize data
direction
Set RC<3:0> as inputs
RC<5:4> as outputs
RC<7:6> as inputs
PORT/PERIPHERAL Select(2)
Peripheral Data Out
Data bus
WR
PORT
VDD
0
Q
1
CK
Data Latch
WR
TRIS
D
CK
I/O
pin(1)
Q
Q
TRIS Latch
VSS
Schmitt
Trigger
RD TRIS
Peripheral
OE(3)
RD
PORT
Peripheral input
D
EN
Preliminary
DS39016A-page 23
PIC16C72 Series
TABLE 3-5
PORTC FUNCTIONS
Name
Bit#
Buffer Type
Function
RC0/T1OSO/T1CKI
bit0
ST
RC1/T1OSI
bit1
ST
RC2/CCP1
bit2
ST
RC3/SCK/SCL
bit3
ST
RC3 can also be the synchronous serial clock for both SPI and I2C
modes.
RC4/SDI/SDA
bit4
ST
RC4 can also be the SPI Data In (SPI mode) or data I/O (I2C mode).
RC5/SDO
bit5
ST
RC6
bit6
ST
RC7
bit7
ST
TABLE 3-6
Address Name
07h
PORTC
87h
TRISC
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR,
BOR
Value on all
other resets
RC7
RC6
RC5
RC4
RC3
RC2
RC1
RC0
xxxx xxxx
uuuu uuuu
1111 1111
1111 1111
DS39016A-page 24
Preliminary
PIC16C72 Series
4.0
TIMER0 MODULE
4.2
8-bit timer/counter
Readable and writable
Internal or external clock select
Edge select for external clock
8-bit software programmable prescaler
Interrupt on overflow from FFh to 00h
4.1
Timer0 Operation
Setting bit PSA will assign the prescaler to the Watchdog Timer (WDT). When the prescaler is assigned to
the WDT, prescale values of 1:1, 1:2, ..., 1:128 are
selectable.
FIGURE 4-1:
Prescaler
PSout
1
1
Programmable
Prescaler
RA4/T0CKI
pin
8
Sync with
Internal
clocks
TMR0
PSout
(2 cycle delay)
T0SE
3
PS2, PS1, PS0
PSA
T0CS
Set interrupt
flag bit T0IF
on overflow
Preliminary
DS39016A-page 25
PIC16C72 Series
4.2.1
4.3
The prescaler assignment is fully under software control, i.e., it can be changed on the fly during program
execution.
Note:
The TMR0 interrupt is generated when the TMR0 register overflows from FFh to 00h. This overflow sets bit
T0IF (INTCON<2>). The interrupt can be masked by
clearing bit T0IE (INTCON<5>). Bit T0IF must be
cleared in software by the Timer0 module interrupt service routine before re-enabling this interrupt. The TMR0
interrupt cannot awaken the processor from SLEEP
since the timer is shut off during SLEEP.
FIGURE 4-2:
Timer0 Interrupt
CLKOUT (=Fosc/4)
0
RA4/T0CKI
pin
M
U
X
1
M
U
X
SYNC
2
Cycles
TMR0 reg
T0SE
T0CS
Watchdog
Timer
PSA
8-bit Prescaler
M
U
X
8
8 - to - 1MUX
PS2:PS0
PSA
1
MUX
PSA
WDT
Time-out
Note: T0CS, T0SE, PSA, PS2:PS0 are (OPTION_REG<5:0>).
TABLE 4-1
Address
Name
01h,101h
TMR0
0Bh,8Bh,
INTCON
10Bh,18Bh
81h,181h
OPTION_REG
85h
TRISA
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PEIE
RBPU INTEDG
T0IE
INTE
RBIE
T0IF
INTF
RBIF
T0CS
T0SE
PSA
PS2
PS1
PS0
Value on:
POR,
BOR
Value on all
other resets
xxxx xxxx
uuuu uuuu
0000 000x
0000 000u
1111 1111
1111 1111
--11 1111
--11 1111
Legend: x = unknown, u = unchanged, - = unimplemented locations read as '0'. Shaded cells are not used by Timer0.
DS39016A-page 26
Preliminary
PIC16C72 Series
5.0
TIMER1 MODULE
5.1
FIGURE 5-1:
Timer1 Operation
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
bit7
R/W-0
R/W-0
TMR1CS TMR1ON
bit0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n = Value at POR reset
bit 2:
bit 1:
bit 0:
Preliminary
DS39016A-page 27
PIC16C72 Series
FIGURE 5-2:
TMR1
TMR1H
Synchronized
clock input
TMR1L
1
TMR1ON
on/off
T1SYNC
T1OSC
RC0/T1OSO/T1CKI
RC1/T1OSI
1
T1OSCEN FOSC/4
Enable
Internal
Oscillator(1) Clock
Prescaler
1, 2, 4, 8
Synchronize
det
0
2
T1CKPS1:T1CKPS0
TMR1CS
SLEEP input
Note 1: When the T1OSCEN bit is cleared, the inverter and feedback resistor are turned off. This eliminates power drain.
DS39016A-page 28
Preliminary
PIC16C72 Series
5.2
Timer1 Oscillator
5.3
5.4
TABLE 5-1
Timer1 Interrupt
CAPACITOR SELECTION
FOR THE TIMER1
OSCILLATOR
Note:
Osc Type
Freq
C1
C2
LP
32 kHz
100 kHz
200 kHz
33 pF
15 pF
15 pF
33 pF
15 pF
15 pF
Timer1 must be configured for either timer or synchronized counter mode to take advantage of this feature. If
Timer1 is running in asynchronous counter mode, this
reset operation may not work.
Crystals Tested:
In the event that a write to Timer1 coincides with a special event trigger from CCP1, the write will take precedence.
TABLE 5-2
In this mode of operation, the CCPR1H:CCPR1L registers pair effectively becomes the period register for
Timer1.
Bit 5
Bit 4
0Bh,8Bh
INTCON
GIE
PEIE
T0IE
INTE
RBIE
T0IF
INTF
RBIF
0Ch
PIR1
(1)
ADIF
(1)
(1)
SSPIF
CCP1IF
TMR2IF
TMR1IF
8Ch
PIE1
(1)
ADIE
(1)
(1)
SSPIE
CCP1IE
TMR2IE
TMR1IE
0Eh
TMR1L
Holding register for the Least Significant Byte of the 16-bit TMR1 register
0Fh
TMR1H
Holding register for the Most Significant Byte of the 16-bit TMR1 register
10h
T1CON
Bit 2
Bit 1
Bit 0
Value on
all other
resets
Bit 7
Bit 3
Value on:
POR,
BOR
Address Name
T1CKPS1 T1CKPS0 T1OSCEN T1SYNC TMR1CS TMR1ON --00 0000 --uu uuuu
Legend: x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by the Timer1 module.
Note 1: These bits are unimplemented, read as '0'.
Preliminary
DS39016A-page 29
PIC16C72 Series
NOTES:
DS39016A-page 30
Preliminary
PIC16C72 Series
6.0
TIMER2 MODULE
6.2
6.3
Output of TMR2
FIGURE 6-1:
Sets flag
bit TMR2IF
6.1
Timer2 Interrupt
TMR2
output (1)
Reset
Postscaler
1:1 to 1:16
EQ
TMR2 reg
Comparator
Prescaler
1:1, 1:4, 1:16
FOSC/4
Timer2 Operation
4
PR2 reg
Preliminary
DS39016A-page 31
PIC16C72 Series
FIGURE 6-2:
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
bit7
bit0
bit 7:
bit 6-3:
bit 2:
bit 1-0:
TABLE 6-1
Address
R/W-0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n = Value at POR reset
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Value on:
POR,
BOR
Bit 0
Value on
all other
resets
0Bh,8Bh
INTCON
GIE
PEIE
T0IE
INTE
RBIE
T0IF
INTF
RBIF
0Ch
PIR1
(1)
ADIF
(1)
(1)
SSPIF
CCP1IF
TMR2IF
TMR1IF
8Ch
PIE1
(1)
ADIE
(1)
(1)
SSPIE
CCP1IE
TMR2IE
TMR1IE
11h
TMR2
12h
T2CON
92h
Legend:
2:
PR2
x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by the Timer2 module.
These bits are unimplemented, read as '0'.
DS39016A-page 32
Preliminary
PIC16C72 Series
7.0
CAPTURE/COMPARE/PWM
(CCP) MODULE
TABLE 7-1
Capture/Compare/PWM Register1 (CCPR1) is comprised of two 8-bit registers: CCPR1L (low byte) and
CCPR1H (high byte). The CCP1CON register controls
the operation of CCP1. All are readable and writable.
FIGURE 7-1:
U-0
bit7
U-0
CCP Mode
Timer Resource
Capture
Compare
PWM
Timer1
Timer1
Timer2
R/W-0
CCP1M2
R/W-0
R/W-0
CCP1M1 CCP1M0
bit0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n =Value at POR reset
Preliminary
DS39016A-page 33
PIC16C72 Series
7.1
Capture Mode
7.1.4
In Capture mode, the RC2/CCP1 pin should be configured as an input by setting the TRISC<2> bit.
Note:
If the RC2/CCP1 is configured as an output, a write to the port can cause a capture
condition.
FIGURE 7-2:
CCP PRESCALER
EXAMPLE 7-1:
CHANGING BETWEEN
CAPTURE PRESCALERS
CLRF
MOVLW
CCP1CON
NEW_CAPT_PS
MOVWF
CCP1CON
CAPTURE MODE
OPERATION BLOCK
DIAGRAM
Prescaler
1, 4, 16
RC2/CCP1
Pin
CCPR1H
and
edge detect
CCPR1L
Capture
Enable
TMR1H
TMR1L
CCP1CON<3:0>
Qs
7.1.2
SOFTWARE INTERRUPT
DS39016A-page 34
Preliminary
PIC16C72 Series
7.2
Compare Mode
7.2.1
The user must configure the RC2/CCP1 pin as an output by clearing the TRISC<2> bit.
Note:
7.2.2
FIGURE 7-3:
COMPARE MODE
OPERATION BLOCK
DIAGRAM
Timer1 must be running in Timer mode or Synchronized Counter mode if the CCP module is using the
compare feature. In Asynchronous Counter mode, the
compare operation may not work.
7.2.3
7.2.4
Comparator
TMR1H
TMR1L
TABLE 7-2
Bit 6
Bit 5
Bit 4
0Bh,8Bh
INTCON
GIE
PEIE
T0IE
INTE
RBIE
T0IF
INTF
0Ch
PIR1
(1)
ADIF
(1)
(1)
SSPIF
CCP1IF
TMR2IF
8Ch
PIE1
(1)
ADIE
(1)
(1)
SSPIE
CCP1IE
TMR2IE
87h
TRISC
0Eh
TMR1L
Holding register for the Least Significant Byte of the 16-bit TMR1 register
0Fh
TMR1H
Holding register for the Most Significant Byte of the 16-bit TMR1register
10h
T1CON
15h
CCPR1L
16h
CCPR1H
17h
CCP1CON
Bit 2
Bit 1
Bit 0
Value on
all other
resets
Name
Bit 3
Value on:
POR,
BOR
Address
RBIF
T1CKPS1 T1CKPS0 T1OSCEN T1SYNC TMR1CS TMR1ON --00 0000 --uu uuuu
CCP1X
CCP1Y
Legend: x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by Capture and Timer1.
Note 1: These bits/registers are unimplemented, read as '0'.
Preliminary
DS39016A-page 35
PIC16C72 Series
7.3
PWM Mode
7.3.1
FIGURE 7-4:
The PWM period is specified by writing to the PR2 register. The PWM period can be calculated using the following formula:
PWM period = [(PR2) + 1] 4 TOSC
(TMR2 prescale value)
PWM frequency is defined as 1 / [PWM period].
When TMR2 is equal to PR2, the following three events
occur on the next increment cycle:
TMR2 is cleared
The CCP1 pin is set (exception: if PWM duty
cycle = 0%, the CCP1 pin will not be set)
The PWM duty cycle is latched from CCPR1L into
CCPR1H
Note:
CCP1CON<5:4>
7.3.2
CCPR1H (Slave)
Comparator
Q
RC2/CCP1
TMR2
(Note 1)
S
Clear Timer,
CCP1 pin and
latch D.C.
PR2
FIGURE 7-5:
PWM OUTPUT
TRISC<2>
Comparator
PWM PERIOD
Period
log
Duty Cycle
FOSC
FPWM
)
bits
log(2)
TMR2 = PR2
Note:
TMR2 = PR2
DS39016A-page 36
Preliminary
PIC16C72 Series
For an example PWM period and duty cycle calculation, see the PICmicro Mid-Range MCU Reference
Manual (DS33023).
7.3.3
3.
4.
5.
TABLE 7-3
1.22 kHz 4.88 kHz 19.53 kHz 78.12 kHz 156.3 kHz 208.3 kHz
TABLE 7-4
Address
16
0xFF
10
4
0xFF
10
1
0xFF
10
1
0x3F
8
1
0x1F
7
1
0x17
5.5
Name
Bit 7
0Bh,8Bh
INTCON
0Ch
PIR1
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR,
BOR
Value on
all other
resets
Bit 6
Bit 5
Bit 4
GIE
PEIE
T0IE
INTE
RBIE
T0IF
INTF
(1)
ADIF
(1)
(1)
SSPIF
CCP1IF
TMR2IF
(1)
ADIE
(1)
(1)
SSPIE
CCP1IE
TMR2IE
RBIF
8Ch
PIE1
87h
TRISC
11h
TMR2
92h
PR2
12h
T2CON
15h
CCPR1L
16h
CCPR1H
17h
CCP1CON
Legend:
Note 1:
CCP1X
CCP1Y
TMR2O
N
x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by PWM and Timer2.
These bits/registers are unimplemented, read as '0'.
Preliminary
DS39016A-page 37
PIC16C72 Series
NOTES:
DS39016A-page 38
Preliminary
PIC16C72 Series
8.0
SYNCHRONOUS SERIAL
PORT (SSP) MODULE
8.1
8.3
8.4
For an I2C Overview, refer to the PICmicro MidRange MCU Reference Manual (DS33023). Also, refer
to Application Note AN578, Use of the SSP Module in
the I 2C Multi-Master Environment.
Preliminary
DS39016A-page 39
PIC16C72 Series
8.2
This section contains register definitions and operational characteristics of the SPI module on the
PIC16C72 device only.
FIGURE 8-1:
U-0
bit7
U-0
R-0
P
R-0
S
R-0
R/W
R-0
UA
R-0
BF
bit0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n =Value at POR reset
bit 4:
P: Stop bit (I2C mode only. This bit is cleared when the SSP module is disabled, SSPEN is cleared)
1 = Indicates that a stop bit has been detected last (this bit is '0' on RESET)
0 = Stop bit was not detected last
bit 3:
S: Start bit (I2C mode only. This bit is cleared when the SSP module is disabled, SSPEN is cleared)
1 = Indicates that a start bit has been detected last (this bit is '0' on RESET)
0 = Start bit was not detected last
bit 2:
bit 1:
bit 0:
DS39016A-page 40
Preliminary
PIC16C72 Series
FIGURE 8-2:
R/W-0
WCOL
bit7
R/W-0
SSPOV
R/W-0
SSPEN
R/W-0
CKP
R/W-0
SSPM3
R/W-0
SSPM2
R/W-0
SSPM1
R/W-0
SSPM0
bit0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n =Value at POR reset
bit 7:
bit 6:
bit 5:
bit 4:
Preliminary
DS39016A-page 41
PIC16C72 Series
8.2.1
FIGURE 8-3:
The SPI mode allows 8-bits of data to be synchronously transmitted and received simultaneously. To
accomplish communication, typically three pins are
used:
Serial Data Out (SDO)
Serial Data In (SDI)
Serial Clock (SCK)
Internal
data bus
RC5/SDO
RC4/SDI/SDA
RC3/SCK/SCL
Read
Write
SSPBUF reg
RA5/SS/AN4
SSPSR reg
RC4/SDI/SDA
RC5/SDO
SS Control
Enable
RA5/SS/AN4
Edge
Select
2
Clock Select
SSPM3:SSPM0
TMR2 output
2
4
Edge
Select
RC3/SCK/
SCL
Prescaler TCY
4, 16, 64
TRISC<3>
TABLE 8-1
shift
clock
bit0
Bit 2
Bit 1
Bit 0
T0IF
INTF
RBIF
Value on:
POR,
BOR
Value on
all other
resets
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
0Bh,8Bh
INTCON
GIE
PEIE
T0IE
INTE
RBIE
0Ch
PIR1
(1)
ADIF
(1)
(1)
SSPIF
(1)
ADIE
(1)
(1)
SSPIE
8Ch
PIE1
87h
TRISC
13h
SSPBUF
14h
SSPCON
85h
TRISA
94h
SSPSTAT
WCOL
SSPOV SSPEN
CKP
SSPM3 SSPM2
SSPM1
R/W
BF
Legend: x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by the SSP in SPI mode.
Note 1: These bits are unimplemented, read as '0'.
DS39016A-page 42
Preliminary
PIC16C72 Series
8.3
This section contains register definitions and operational characteristics of the SPI module on the
PIC16CR72 device only.
FIGURE 8-4:
R/W-0 R/W-0
SMP
CKE
R-0
R-0
R-0
R-0
R-0
R-0
D/A
R/W
UA
BF
bit7
bit0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n =Value at POR reset
bit 7:
bit 6:
bit 5:
bit 4:
P: Stop bit (I2C mode only. This bit is cleared when the SSP module is disabled, or when the Start bit is
detected last, SSPEN is cleared)
1 = Indicates that a stop bit has been detected last (this bit is '0' on RESET)
0 = Stop bit was not detected last
bit 3:
S: Start bit (I2C mode only. This bit is cleared when the SSP module is disabled, or when the Stop bit is
detected last, SSPEN is cleared)
1 = Indicates that a start bit has been detected last (this bit is '0' on RESET)
0 = Start bit was not detected last
bit 2:
bit 1:
bit 0:
Preliminary
DS39016A-page 43
PIC16C72 Series
FIGURE 8-5:
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
WCOL
SSPOV
SSPEN
CKP
SSPM3
SSPM2
SSPM1
SSPM0
bit7
bit0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n =Value at POR reset
bit 7:
bit 6:
bit 5:
bit 4:
DS39016A-page 44
Preliminary
PIC16C72 Series
8.3.1
FIGURE 8-6:
The SPI mode allows 8-bits of data to be synchronously transmitted and received simultaneously. To
accomplish communication, typically three pins are
used:
Serial Data Out (SDO)
Serial Data In (SDI)
Serial Clock (SCK)
RC5/SDO
RC4/SDI/SDA
RC3/SCK/SCL
SSPBUF reg
SSPSR reg
RC4/SDI/SDA
Write
shift
clock
bit0
RC5/SDO
RA5/SS/AN4
SS Control
Enable
RA5/SS/AN4
Edge
Select
2
Clock Select
SSPM3:SSPM0
4
Edge
Select
RC3/SCK/
SCL
TMR2 output
2
Prescaler TCY
4, 16, 64
TRISC<3>
Note:
Preliminary
DS39016A-page 45
PIC16C72 Series
TABLE 8-2
Bit 2
Bit 1
Bit 0
T0IF
INTF
RBIF
Value on:
POR,
BOR
Value on
all other
resets
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
0Bh,8Bh
INTCON
GIE
PEIE
T0IE
INTE
RBIE
0Ch
PIR1
(1)
ADIF
(1)
(1)
SSPIF
(1)
ADIE
(1)
(1)
SSPIE
8Ch
PIE1
87h
TRISC
13h
SSPBUF
14h
SSPCON WCOL
85h
TRISA
94h
SSPSTAT
SSPOV SSPEN
SMP
CKE
CKP
SSPM3
SSPM2
SSPM1
R/W
BF
Legend: x = unknown, u = unchanged, - = unimplemented read as '0'. Shaded cells are not used by the SSP in SPI mode.
Note 1: Always maintain these bits clear.
DS39016A-page 46
Preliminary
PIC16C72 Series
8.4
SSP I 2C Operation
FIGURE 8-7:
SSPBUF reg
SSPSR reg
MSb
LSb
Match detect
Addr Match
SSPADD reg
Start and
Stop bit detect
Set, Reset
S, P bits
(SSPSTAT reg)
SLAVE MODE
In slave mode, the SCL and SDA pins must be configured as inputs (TRISC<4:3> set). The SSP module will
override the input state with the output data when
required (slave-transmitter).
Write
shift
clock
RC4/
SDI/
SDA
8.4.1
Internal
data bus
RC3/SCK/SCL
Read
The SSPCON register allows control of the I 2C operation. Four mode selection bits (SSPCON<3:0>) allow
one of the following I 2C modes to be selected:
b)
Preliminary
DS39016A-page 47
PIC16C72 Series
8.4.1.1
ADDRESSING
TABLE 8-3
3.
4.
5.
6.
7.
8.
9.
BF
SSPOV
SSPSR SSPBUF
Generate ACK
Pulse
Yes
Yes
Yes
No
No
Yes
No
No
Yes
No
No
Yes
DS39016A-page 48
Preliminary
PIC16C72 Series
8.4.1.2
RECEPTION
FIGURE 8-8:
Receiving Address
Receiving Data
R/W=0
Receiving Data
ACK
ACK
ACK
A7 A6 A5 A4 A3 A2 A1
D7 D6 D5 D4 D3 D2 D1 D0
D7 D6 D5 D4 D3 D2 D1 D0
SDA
SCL
SSPIF (PIR1<3>)
BF (SSPSTAT<0>)
Cleared in software
Bus Master
terminates
transfer
SSPOV (SSPCON<6>)
Bit SSPOV is set because the SSPBUF register is still full.
ACK is not sent.
Preliminary
DS39016A-page 49
PIC16C72 Series
8.4.1.3
TRANSMISSION
FIGURE 8-9:
Receiving Address
SDA
SCL
A7
As a slave-transmitter, the ACK pulse from the masterreceiver is latched on the rising edge of the ninth SCL
input pulse. If the SDA line was high (not ACK), then the
data transfer is complete. When the ACK is latched by
the slave, the slave logic is reset (resets SSPSTAT register) and the slave then monitors for another occurrence of the START bit. If the SDA line was low (ACK),
the transmit data must be loaded into the SSPBUF register, which also loads the SSPSR register. Then pin
RC3/SCK/SCL should be enabled by setting bit CKP.
A6
1
2
Data in
sampled
R/W = 1
A5
A4
A3
A2
A1
ACK
Transmitting Data
ACK
D7
1
SCL held low
while CPU
responds to SSPIF
D6
D5
D4
D3
D2
D1
D0
cleared in software
SSPIF (PIR1<3>)
BF (SSPSTAT<0>)
CKP (SSPCON<4>)
Set bit after writing to SSPBUF
(the SSPBUF must be written-to
before the CKP bit can be set)
DS39016A-page 50
Preliminary
PIC16C72 Series
8.4.2
8.4.3
MASTER OPERATION
Master operation is supported in firmware using interrupt generation on the detection of the START and
STOP conditions. The STOP (P) and START (S) bits
are cleared from a reset or when the SSP module is
disabled. The STOP (P) and START (S) bits will toggle
based on the START and STOP conditions. Control of
the I 2C bus may be taken when the P bit is set, or the
bus is idle and both the S and P bits are clear.
In master operation, the SCL and SDA lines are manipulated in firmware by clearing the corresponding
TRISC<4:3> bit(s). The output level is always low, irrespective of the value(s) in PORTC<4:3>. So when
transmitting data, a '1' data bit must have the
TRISC<4> bit set (input) and a '0' data bit must have
the TRISC<4> bit cleared (output). The same scenario
is true for the SCL line with the TRISC<3> bit.
In multi-master operation, the SDA line must be monitored to see if the signal level is the expected output
level. This check only needs to be done when a high
level is output. If a high level is expected and a low level
is present, the device needs to release the SDA and
SCL lines (set TRISC<4:3>). There are two stages
where this arbitration can be lost, these are:
Address Transfer
Data Transfer
START condition
STOP condition
Data transfer byte transmitted/received
TABLE 8-4
MULTI-MASTER OPERATION
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR,
BOR
Value on
all other
resets
0Bh, 8Bh,
10Bh,18Bh
INTCON
GIE
PEIE
T0IE
INTE
RBIE
T0IF
INTF
RBIF
0000 000x
0000 000u
0Ch
PIR1
(1)
ADIF
(1)
(1)
0000 0000
0000 0000
8Ch
PIE1
(1)
ADIE
(1)
(1)
0000 0000
0000 0000
13h
xxxx xxxx
uuuu uuuu
(I2C
93h
14h
SSPCON
WCOL
SSPOV SSPEN
94h
SSPSTAT
SMP(2)
CKE(2)
87h
TRISC
D/A
CKP
P
R/W
UA
BF
0000 0000
0000 0000
0000 0000
0000 0000
0000 0000
0000 0000
1111 1111
1111 1111
Preliminary
DS39016A-page 51
PIC16C72 Series
NOTES:
DS39016A-page 52
Preliminary
PIC16C72 Series
9.0
ANALOG-TO-DIGITAL
CONVERTER (A/D) MODULE
FIGURE 9-1:
R/W-0 R/W-0
ADCS1 ADCS0
bit7
R/W-0
CHS2
R/W-0
CHS1
R/W-0
CHS0
R/W-0
GO/DONE
U-0
R/W-0
ADON
bit0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 0
- n = Value at POR reset
bit 1:
bit 0:
Preliminary
DS39016A-page 53
PIC16C72 Series
FIGURE 9-2:
U-0
bit7
U-0
U-0
U-0
U-0
R/W-0
PCFG2
R/W-0
PCFG1
R/W-0
PCFG0
bit0
R = Readable bit
W = Writable bit
U = Unimplemented
bit, read as 0
- n = Value at POR reset
RA0
A
A
A
A
A
A
D
RA1
A
A
A
A
A
A
D
RA2
A
A
A
A
D
D
D
RA5
A
A
A
A
D
D
D
RA3
A
VREF
A
VREF
A
VREF
D
VREF
VDD
RA3
VDD
RA3
VDD
RA3
GND
A = Analog input
D = Digital I/O
DS39016A-page 54
Preliminary
PIC16C72 Series
2.
The ADRES register contains the result of the A/D conversion. When the A/D conversion is complete, the
result is loaded into the ADRES register, the GO/DONE
bit (ADCON0<2>) is cleared, and A/D interrupt flag bit
ADIF is set. The block diagram of the A/D module is
shown in Figure 9-3.
3.
4.
5.
OR
6.
7.
FIGURE 9-3:
100
VAIN
011
(Input voltage)
RA5/AN4
RA3/AN3/VREF
010
RA2/AN2
A/D
Converter
001
RA1/AN1
VDD
000
RA0/AN0
000 or
010 or
100
VREF
(Reference
voltage)
001 or
011 or
101
PCFG2:PCFG0
Preliminary
DS39016A-page 55
PIC16C72 Series
9.1
FIGURE 9-4:
Rs
ANx
CPIN
5 pF
VA
Sampling
Switch
VT = 0.6V
VT = 0.6V
RIC 1k
SS RSS
CHOLD
= DAC capacitance
= 51.2 pF
I leakage
500 nA
VSS
Legend CPIN
= input capacitance
= threshold voltage
VT
I leakage = leakage current at the pin due to
various junctions
RIC
SS
CHOLD
DS39016A-page 56
= interconnect resistance
= sampling switch
= sample/hold capacitance (from DAC)
Preliminary
6V
5V
VDD 4V
3V
2V
5 6 7 8 9 10 11
Sampling Switch
( k )
PIC16C72 Series
9.2
2TOSC
8TOSC
32TOSC
Internal RC oscillator
9.3
TABLE 9-1
ADCS1:ADCS0
2TOSC
00
8TOSC
01
32TOSC
10
Device Frequency
20 MHz
100
ns(2)
ns(2)
400
1.6 s
5 MHz
ns(2)
400
1.6 s
6.4 s
333.33 kHz
1.6 s
6 s
6.4 s
24 s(3)
25.6
s(3)
96 s(3)
2-6
2-6
2 - 6 s(1)
2 - 6 s
Shaded cells are outside of recommended range.
The RC source has a typical TAD time of 4 s.
These values violate the minimum required TAD time.
For faster conversion times, the selection of another clock source is recommended.
When device frequency is greater than 1 MHz, the RC A/D conversion clock source is recommended for
sleep operation only.
5: For extended voltage devices (LC), please refer to Electrical Specifications section.
RC(5)
11
(1,4)
s(1,4)
1.25 MHz
s(1,4)
Legend:
Note 1:
2:
3:
4:
Preliminary
DS39016A-page 57
PIC16C72 Series
9.4
Note:
9.5
A/D Conversions
TABLE 9-2
Address
Bit 7
0Bh,8Bh
INTCON
0Ch
PIR1
Value on:
POR,
BOR
INTF
RBIF
0000 000x
0000 000u
-0-- 0000
Value on all
other Resets
Bit 4
GIE
PEIE
T0IE
INTE
RBIE
T0IF
ADIF
SSPIF
CCP1IF
ADIE
SSPIE
CCP1IE
-0-- 0000
xxxx xxxx
uuuu uuuu
PIE1
1Eh
ADRES
1Fh
9Fh
ADCON1
05h
PORTA
RA5
Bit 2
Bit 0
Bit 5
8Ch
Bit 3
Bit 1
Bit 6
GO/DONE
ADON
0000 00-0
0000 00-0
PCFG2
PCFG1
PCFG0
---- -000
---- -000
RA4
RA3
RA2
RA1
RA0
--0x 0000
--0u 0000
--11 1111
--11 1111
85h
TRISA
DS39016A-page 58
Preliminary
PIC16C72 Series
10.0
Oscillator selection
Reset
- Power-on Reset (POR)
- Power-up Timer (PWRT)
- Oscillator Start-up Timer (OST)
- Brown-out Reset (BOR)
Interrupts
Watchdog Timer (WDT)
SLEEP
Code protection
ID locations
In-Circuit Serial Programming
10.1
Configuration Bits
CP0
CP1
CP0
CP1
CP0
BODEN
CP1
CP0
PWRTE
bit13
WDTE
FOSC1
FOSC0
bit0
bit 13-8
5-4:
bit 7:
bit 6:
bit 3:
bit 2:
bit 1-0:
Register:CONFIG
Address2007h
Note 1:
Enabling Brown-out Reset automatically enables Power-up Timer (PWRT) regardless of the value of bit PWRTE.
Ensure the Power-up Timer is enabled anytime Brown-out Reset is enabled.
2: All of the CP1:CP0 pairs have to be given the same value to enable the code protection scheme listed.
Preliminary
DS39016A-page 59
PIC16C72 Series
10.2
Oscillator Configurations
10.2.1
OSCILLATOR TYPES
TABLE 10-1
Ranges Tested:
The PIC16CXXX family can be operated in four different oscillator modes. The user can program two configuration bits (FOSC1 and FOSC0) to select one of these
four modes:
LP
XT
HS
RC
10.2.2
Mode
XT
455 kHz
2.0 MHz
4.0 MHz
8.0 MHz
16.0 MHz
C2(1)
TABLE 10-2
Osc Type
Note1:
2:
3:
LP
XT
PIC16CXXX
DS39016A-page 60
OSC2
0.3%
0.5%
0.5%
0.5%
0.5%
CAPACITOR SELECTION
FOR CRYSTAL OSCILLATOR
Crystal
Freq
Cap. Range
C1
Cap. Range
C2
33 pF
32 kHz
33 pF
200 kHz
15 pF
15 pF
200 kHz
47-68 pF
47-68 pF
1 MHz
15 pF
15 pF
4 MHz
15 pF
15 pF
4 MHz
15 pF
15 pF
8 MHz
15-33 pF
15-33 pF
20 MHz
15-33 pF
15-33 pF
See Table 10-1 and Table 10-2 for recommended values of C1 and C2.
A series resistor (RS) may be required for
AT strip cut crystals.
RF varies with the crystal chosen.
Clock from
ext. system
HS
To
internal
logic
SLEEP
RS(2)
Panasonic EFO-A455K04B
Murata Erie CSA2.00MG
Murata Erie CSA4.00MG
Murata Erie CSA8.00MT
Murata Erie CSA16.00MX
OSC1
RF(3)
OSC2
68 - 100 pF
15 - 68 pF
15 - 68 pF
10 - 68 pF
10 - 22 pF
Resonators Used:
OSC2
OSC1
68 - 100 pF
15 - 68 pF
15 - 68 pF
10 - 68 pF
10 - 22 pF
XTAL
Freq
455 kHz
2.0 MHz
4.0 MHz
8.0 MHz
16.0 MHz
HS
CRYSTAL OSCILLATOR/CERAMIC
RESONATORS
C1(1)
CERAMIC RESONATORS
Crystals Used
32 kHz
Epson C-001R32.768K-A
20 PPM
200 kHz
20 PPM
1 MHz
ECS ECS-10-13-1
50 PPM
4 MHz
ECS ECS-40-20-1
50 PPM
8 MHz
30 PPM
20 MHz
30 PPM
Preliminary
PIC16C72 Series
10.2.3
10.3
RC OSCILLATOR
Internal
clock
PIC16CXXX
VSS
Fosc/4
Recommended values:
OSC2/CLKOUT
3 k Rext 100 k
Cext > 20pF
Reset
Preliminary
DS39016A-page 61
PIC16C72 Series
FIGURE 10-5: SIMPLIFIED BLOCK DIAGRAM OF ON-CHIP RESET CIRCUIT
External
Reset
MCLR
WDT
Module
SLEEP
WDT
Time-out
Reset
VDD rise
detect
Power-on Reset
VDD
Brown-out
Reset
BODEN
OST/PWRT
OST
Chip_Reset
R
OSC1
(1)
On-chip
RC OSC
PWRT
10-bit Ripple counter
Enable PWRT
Enable OST
Note 1:
DS39016A-page 62
Preliminary
PIC16C72 Series
10.4
10.5
10.6
R
R1
MCLR
C
PIC16CXXX
10.7
VDD
A configuration bit, BODEN, can disable (if clear/programmed) or enable (if set) the Brown-out Reset circuitry. If VDD falls below 4.0V (3.8V - 4.2V range) for
greater than parameter #35, the brown-out situation will
reset the chip. A reset may not occur if VDD falls below
4.0V for less than parameter #35. The chip will remain
in Brown-out Reset until VDD rises above BVDD. The
Power-up Timer will now be invoked and will keep the
chip in RESET an additional 72 ms. If VDD drops below
BVDD while the Power-up Timer is running, the chip will
go back into a Brown-out Reset and the Power-up
Timer will be initialized. Once VDD rises above BVDD,
the Power-up Timer will execute a 72 ms time delay.
The Power-up Timer should always be enabled when
Brown-out Reset is enabled.
Preliminary
DS39016A-page 63
PIC16C72 Series
10.8
Time-out Sequence
10.9
TABLE 10-3
Oscillator Configuration
Power-up
Brown-out
Wake-up from
SLEEP
1024TOSC
72 ms + 1024TOSC
1024TOSC
72 ms
PWRTE = 0
PWRTE = 1
XT, HS, LP
72 ms +
1024TOSC
RC
72 ms
TABLE 10-4
POR
BOR
TO
PD
Brown-out Reset
WDT Reset
WDT Wake-up
TABLE 10-5
Power-on Reset
Power-on Reset
Program
Counter
STATUS
Register
PCON
Register
000h
0001 1xxx
---- --0x
000h
000u uuuu
---- --uu
000h
0001 0uuu
---- --uu
WDT Reset
WDT Wake-up
Brown-out Reset
Interrupt wake-up from SLEEP
000h
0000 1uuu
---- --uu
PC + 1
uuu0 0uuu
---- --uu
000h
0001 1uuu
---- --u0
PC + 1(1)
uuu1 0uuu
---- --uu
When the wake-up is due to an interrupt and the GIE bit is set, the PC is loaded with the interrupt vector (0004h).
DS39016A-page 64
Preliminary
PIC16C72 Series
TABLE 10-6
Register
W
MCLR Resets
WDT Reset
xxxx xxxx
uuuu uuuu
INDF
N/A
N/A
N/A
TMR0
xxxx xxxx
uuuu uuuu
uuuu uuuu
0000h
0000h
PC + 1(2)
STATUS
0001 1xxx
000q quuu(3)
uuuq quuu(3)
FSR
xxxx xxxx
uuuu uuuu
uuuu uuuu
PORTA
--0x 0000
--0u 0000
--uu uuuu
PORTB
xxxx xxxx
uuuu uuuu
uuuu uuuu
PORTC
xxxx xxxx
uuuu uuuu
uuuu uuuu
PCLATH
---0 0000
---0 0000
---u uuuu
INTCON
0000 000x
0000 000u
uuuu uuuu(1)
PIR1
-0-- 0000
-0-- 0000
-u-- uuuu(1)
TMR1L
xxxx xxxx
uuuu uuuu
uuuu uuuu
TMR1H
xxxx xxxx
uuuu uuuu
uuuu uuuu
T1CON
--00 0000
--uu uuuu
--uu uuuu
TMR2
0000 0000
0000 0000
uuuu uuuu
T2CON
-000 0000
-000 0000
-uuu uuuu
SSPBUF
xxxx xxxx
uuuu uuuu
uuuu uuuu
SSPCON
0000 0000
0000 0000
uuuu uuuu
CCPR1L
xxxx xxxx
uuuu uuuu
uuuu uuuu
CCPR1H
xxxx xxxx
uuuu uuuu
uuuu uuuu
CCP1CON
--00 0000
--00 0000
--uu uuuu
ADRES
xxxx xxxx
uuuu uuuu
uuuu uuuu
ADCON0
0000 00-0
0000 00-0
uuuu uu-u
OPTION
1111 1111
1111 1111
uuuu uuuu
TRISA
--11 1111
--11 1111
--uu uuuu
TRISB
1111 1111
1111 1111
uuuu uuuu
TRISC
1111 1111
1111 1111
uuuu uuuu
PIE1
-0-- 0000
-0-- 0000
-u-- uuuu
PCON
---- --0u
---- --uu
---- --uu
PR2
1111 1111
1111 1111
1111 1111
SSPADD
0000 0000
0000 0000
uuuu uuuu
SSPSTAT
--00 0000
--00 0000
--uu uuuu
ADCON1
---- -000
---- -000
---- -uuu
PCL
Legend: u = unchanged, x = unknown, - = unimplemented bit, read as '0', q = value depends on condition
Note 1: One or more bits in INTCON, PIR1 and/or PIR2 will be affected (to cause wake-up).
2: When the wake-up is due to an interrupt and the GIE bit is set, the PC is loaded with the interrupt vector
(0004h).
3: See Table 10-5 for reset value for specific condition.
Preliminary
DS39016A-page 65
PIC16C72 Series
FIGURE 10-7: TIME-OUT SEQUENCE ON POWER-UP (MCLR TIED TO VDD)
VDD
MCLR
INTERNAL POR
TPWRT
PWRT TIME-OUT
TOST
OST TIME-OUT
INTERNAL RESET
FIGURE 10-8: TIME-OUT SEQUENCE ON POWER-UP (MCLR NOT TIED TO VDD): CASE 1
VDD
MCLR
INTERNAL POR
TPWRT
PWRT TIME-OUT
TOST
OST TIME-OUT
INTERNAL RESET
FIGURE 10-9: TIME-OUT SEQUENCE ON POWER-UP (MCLR NOT TIED TO VDD): CASE 2
VDD
MCLR
INTERNAL POR
TPWRT
PWRT TIME-OUT
TOST
OST TIME-OUT
INTERNAL RESET
DS39016A-page 66
Preliminary
PIC16C72 Series
FIGURE 10-10: SLOW RISE TIME (MCLR TIED TO VDD)
5V
VDD
1V
0V
MCLR
INTERNAL POR
TPWRT
PWRT TIME-OUT
TOST
OST TIME-OUT
INTERNAL RESET
Preliminary
DS39016A-page 67
PIC16C72 Series
10.10
Interrupts
Individual interrupt flag bits are set regardless of the status of their corresponding
mask bit or the GIE bit.
The peripheral interrupt flags are contained in the special function registers PIR1 and PIR2. The corresponding interrupt enable bits are contained in special
function registers PIE1 and PIE2, and the peripheral
interrupt enable bit is contained in special function register INTCON.
T0IF
T0IE
INTF
INTE
ADIF
ADIE
SSPIF
SSPIE
CCP1IF
CCP1IE
TMR1IF
TMR1IE
RBIF
RBIE
Interrupt to CPU
Clear GIE bit
PEIE
GIE
TMR2IF
TMR2IE
DS39016A-page 68
Preliminary
PIC16C72 Series
10.11
The example:
a)
b)
c)
d)
e)
Preliminary
DS39016A-page 69
PIC16C72 Series
10.12
WDT time-out period values may be found in the Electrical Specifications section under parameter #31. Values for the WDT prescaler (actually a postscaler, but
shared with the Timer0 prescaler) may be assigned
using the OPTION_REG register.
Note:
Note:
Postscaler
M
U
X
8
8 - to - 1 MUX
PS2:PS0
PSA
WDT
Enable Bit
1
MUX
PSA
WDT
Time-out
Name
2007h
Config. bits
81h,181h
OPTION
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
(1)
BODEN(1)
CP1
CP0
PWRTE(1)
WDTE
FOSC1
FOSC0
RBPU
INTEDG
T0CS
T0SE
PSA
PS2
PS1
PS0
DS39016A-page 70
Preliminary
PIC16C72 Series
10.13
Other peripherals cannot generate interrupts since during SLEEP, no on-chip clocks are present.
Preliminary
DS39016A-page 71
PIC16C72 Series
FIGURE 10-14: WAKE-UP FROM SLEEP THROUGH INTERRUPT
Q1 Q2 Q3 Q4
Q1 Q2 Q3 Q4
Q1
Q1 Q2 Q3 Q4
Q1 Q2 Q3 Q4
Q1 Q2 Q3 Q4
Q1 Q2 Q3
Q4
OSC1
TOST(2)
CLKOUT(4)
INT pin
INTF flag
(INTCON<1>)
Interrupt Latency
(Note 2)
GIE bit
(INTCON<7>)
Processor in
SLEEP
INSTRUCTION FLOW
PC
PC
Instruction
fetched
Inst(PC) = SLEEP
Instruction
executed
Inst(PC - 1)
Note 1:
2:
3:
4:
10.14
PC+1
PC+2
PC+2
Inst(PC + 1)
Inst(PC + 2)
SLEEP
Inst(PC + 1)
PC + 2
Dummy cycle
0004h
0005h
Inst(0004h)
Inst(0005h)
Dummy cycle
Inst(0004h)
If the code protection bit(s) have not been programmed, the on-chip program memory can be read
out for verification purposes.
Note:
10.15
ID Locations
10.16
DS39016A-page 72
Preliminary
PIC16C72 Series
11.0
OPCODE FIELD
DESCRIPTIONS
Description
f
W
b
k
PC
TO
PD
Field
d = 0 for destination W
d = 1 for destination f
f = 7-bit file register address
TABLE 11-1
OPCODE
0
k (literal)
11
OPCODE
Time-out bit
Power-down bit
10
0
k (literal)
A description of each instruction is available in the PICmicro Mid-Range MCU Family Reference Manual,
DS33023.
All instructions are executed within one single instruction cycle, unless a conditional test is true or the program counter is changed as a result of an instruction.
In this case, the execution takes two instruction cycles
with the second cycle executed as a NOP. One instruction cycle consists of four oscillator periods. Thus, for
an oscillator frequency of 4 MHz, the normal instruction
execution time is 1 s. If a conditional test is true or the
program counter is changed as a result of an instruction, the instruction execution time is 2 s.
Preliminary
DS39016A-page 73
PIC16C72 Series
TABLE 11-2
Mnemonic,
Operands
Cycles
14-Bit Opcode
MSb
LSb
Status
Affected
Notes
f, d
f, d
f
f, d
f, d
f, d
f, d
f, d
f, d
f, d
f
f, d
f, d
f, d
f, d
f, d
Add W and f
AND W with f
Clear f
Clear W
Complement f
Decrement f
Decrement f, Skip if 0
Increment f
Increment f, Skip if 0
Inclusive OR W with f
Move f
Move W to f
No Operation
Rotate Left f through Carry
Rotate Right f through Carry
Subtract W from f
Swap nibbles in f
Exclusive OR W with f
1
1
1
1
1
1
1(2)
1
1(2)
1
1
1
1
1
1
1
1
1
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
0111
0101
0001
0001
1001
0011
1011
1010
1111
0100
1000
0000
0000
1101
1100
0010
1110
0110
dfff
dfff
lfff
0xxx
dfff
dfff
dfff
dfff
dfff
dfff
dfff
lfff
0xx0
dfff
dfff
dfff
dfff
dfff
ffff
ffff
ffff
xxxx
ffff
ffff
ffff
ffff
ffff
ffff
ffff
ffff
0000
ffff
ffff
ffff
ffff
ffff
00bb
01bb
10bb
11bb
bfff
bfff
bfff
bfff
ffff
ffff
ffff
ffff
111x
1001
0kkk
0000
1kkk
1000
00xx
0000
01xx
0000
0000
110x
1010
kkkk
kkkk
kkkk
0110
kkkk
kkkk
kkkk
0000
kkkk
0000
0110
kkkk
kkkk
kkkk
kkkk
kkkk
0100
kkkk
kkkk
kkkk
1001
kkkk
1000
0011
kkkk
kkkk
C,DC,Z
Z
Z
Z
Z
Z
Z
Z
Z
C
C
C,DC,Z
Z
1,2
1,2
2
1,2
1,2
1,2,3
1,2
1,2,3
1,2
1,2
1,2
1,2
1,2
1,2
1,2
f, b
f, b
f, b
f, b
Bit Clear f
Bit Set f
Bit Test f, Skip if Clear
Bit Test f, Skip if Set
1
1
1 (2)
1 (2)
ADDLW
ANDLW
CALL
CLRWDT
GOTO
IORLW
MOVLW
RETFIE
RETLW
RETURN
SLEEP
SUBLW
XORLW
k
k
k
k
k
k
k
k
k
01
01
01
01
1,2
1,2
3
3
11
11
10
00
10
11
11
00
11
00
00
11
11
C,DC,Z
Z
TO,PD
Z
TO,PD
C,DC,Z
Z
Note 1:
When an I/O register is modified as a function of itself ( e.g., MOVF PORTB, 1), the value used will be that value present
on the pins themselves. For example, if the data latch is '1' for a pin configured as input and is driven low by an external
device, the data will be written back with a '0'.
2: If this instruction is executed on the TMR0 register (and, where applicable, d = 1), the prescaler will be cleared if assigned
to the Timer0 Module.
3: If Program Counter (PC) is modified or a conditional test is true, the instruction requires two cycles. The second cycle is
executed as a NOP.
DS39016A-page 74
Preliminary
PIC16C72 Series
12.0
DEVELOPMENT SUPPORT
12.1
Development Tools
12.2
Preliminary
DS39016A-page 75
PIC16C72 Series
NOTES:
DS39016A-page 76
Preliminary
PIC16C72 Series
13.0
PIC16C72
PIC16CR72
-55 to +125C
-55 to +125C
-65C to +150C
-65C to +150C
Voltage on any pin with respect to VSS (except VDD, MCLR, and RA4) -0.3V to (VDD + 0.3V) -0.3V to (VDD + 0.3V)
Voltage on VDD with respect to VSS
-0.3 to +7.5V
TBD
-0.3 to +14V
TBD
-0.3 to +14V
TBD
1.0W
1.0W
300 mA
300 mA
250 mA
250 mA
20 mA
20 mA
20 mA
20 mA
25 mA
25 mA
25 mA
25 mA
200 mA
200 mA
200 mA
200 mA
200 mA
200 mA
200 mA
200 mA
1.
2.
Voltage spikes below VSS at the MCLR pin, inducing currents greater than 80 mA, may cause latch-up. Thus,
a series resistor of 50-100 should be used when applying a low level to the MCLR pin rather than pulling this
pin directly to VSS.
Power dissipation is calculated as follows: Pdis = VDD x {IDD - IOH} + {(VDD - VOH) x IOH} + (VOl x IOL).
NOTICE: Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a
stress rating only and functional operation of the device at those or any other conditions above those indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability.
Preliminary
DS39016A-page 77
PIC16C72 Series
TABLE 13-1
OSC
PIC16C72-04
PIC16C72-10
PIC16C72-20
PIC16LC72-04
JW Devices
RC
XT
HS
LP
The shaded sections indicate oscillator selections which are tested for functionality, but not for MIN/MAX specifications.
It is recommended that the user select the device type that ensures the specifications required.
TABLE 13-2
OSC
PIC16CR72-04
PIC16CR72-10
PIC16CR72-20
PIC16LCR72-04
JW Devices
RC
XT
HS
LP
The shaded sections indicate oscillator selections which are tested for functionality, but not for MIN/MAX specifications.
It is recommended that the user select the device type that ensures the specifications required.
DS39016A-page 78
Preliminary
PIC16C72 Series
13.1
DC Characteristics:
DC CHARACTERISTICS
Param
No.
Characteristic
PIC16C72
PIC16CR72
Min
Typ
Max
Min
Typ
Max
Units
Conditions
D001
D001A
Supply Voltage
VDD
4.0
4.5
6.0
5.5
4.0
4.5
5.5
5.5
V
V
D002*
VDR
1.5
1.5
D003
VPOR
VSS
VSS
D004*
SVDD
0.05
0.05
V/ms
D005
Bvdd
3.7
4.0
4.3
3.7
4.0
4.3
D010
Supply Current
(Note 2,5)
3.7
4.0
4.4
3.7
4.0
4.4
2.7
5.0
2.7
5.0
mA
XT, RC osc
FOSC = 4 MHz,
VDD = 5.5V (Note 4)
10
20
10
20
mA
HS osc
FOSC = 20 MHz,
VDD = 5.5V
Ibor
350
425
350
425
BOR enabled,
VDD = 5.0V
IPD
10.5
42
10.5
42
D021
1.5
16
1.5
16
D021A
1.5
19
1.5
19
D021B
2.5
19
2.5
19
350
425
350
425
IDD
D013
D015
Brown-out Reset
Current (Note 6)
D020
Power-down Current
(Note 3,5)
D023
*
Note 1:
Note 2:
Note 3:
Note 4:
Note 5:
Note 6:
Brown-out Reset
Current (Note 6)
Ibor
Extended Only
Preliminary
DS39016A-page 79
PIC16C72 Series
13.2
DC Characteristics:
DC CHARACTERISTICS
Param
No.
Characteristic
PIC16C72
Min
PIC16CR72
Typ
Max
Min
Typ
Max
Units
Conditions
LP, XT, RC (DC - 4 MHz)
D001
Supply Voltage
VDD
2.5
6.0
2.5
5.5
D002*
VDR
1.5
1.5
D003
VPOR
VSS
VSS
D004*
SVDD
0.05
0.05
V/ms
D005
Bvdd
3.7
4.0
4.3
3.7
4.0
4.3
D010
Supply Current
(Note 2,5)
IDD
2.0
3.8
2.0
3.8
mA
22.5
48
22.5
48
LP osc configuration
FOSC = 32 kHz, VDD =
3.0V, WDT disabled
Ibor
350
425
350
425
IPD
7.5
30
7.5
30
D021
0.9
0.9
D021A
0.9
0.9
350
425
350
425
D010A
D015*
Brown-out Reset
Current (Note 6)
D020
Power-down Current
(Note 3,5)
D023*
*
Note 1:
Note 2:
Note 3:
Note 4:
Note 5:
Note 6:
Brown-out Reset
Current (Note 6)
Ibor
DS39016A-page 80
Preliminary
PIC16C72 Series
13.3
DC Characteristics:
DC CHARACTERISTICS
Param
No.
Characteristic
Min
Typ
Max
Units
VSS
0.15VDD
0.8V
0.2VDD
V
V
Vss
VSS
VSS
VSS
0.2VDD
0.3VDD
V
V
Note1
VDD
0.25VDD +
0.8V
VDD
V
V
VDD
VDD
Vdd
V
V
Note1
VDD
D040
VIL
VIH
2.0
D040A
D041
D042
0.8VDD
0.8VDD
D042A
D043
0.7VDD
0.9VDD
D070
D060
Conditions
IPURB
50
250
400
IIL
D061
MCLR, RA4/T0CKI
D063
OSC1
D080
0.6
0.6
0.6
0.6
D080A
D083
D083A
*
Note 1:
Note 2:
Note 3:
VOL
Preliminary
DS39016A-page 81
PIC16C72 Series
DC CHARACTERISTICS
Param
No.
D090
Characteristic
Output High Voltage
I/O ports (Note 3)
Min
Typ
Max
Units
VOH
VDD - 0.7
VDD - 0.7
VDD - 0.7
VDD - 0.7
Vod
14
TBD
V
V
COSC2
15
pF
CIO
Cb
50
400
pF
pF
D090A
D092
D092A
D150*
D100
D101
D102
Note 1:
Note 2:
Note 3:
Conditions
DS39016A-page 82
Preliminary
PIC16C72 Series
13.4
The timing parameter symbols have been created following one of the following formats:
1. TppS2ppS
3. TCC:ST
2. TppS
4. Ts
Time
T
F
Frequency
CCP1
osc
OSC1
ck
CLKOUT
rd
RD
cs
CS
rw
RD or WR
di
SDI
sc
SCK
do
SDO
ss
SS
dt
Data in
t0
T0CKI
io
I/O port
t1
T1CKI
mc
MCLR
wr
WR
Fall
Period
High
Rise
Invalid (Hi-impedance)
Valid
Low
Hi-impedance
AA
output access
High
High
BUF
Bus free
Low
Low
Hold
SU
Setup
DAT
STO
STOP condition
STA
START condition
I2C only
Load condition 1
VDD/2
RL
CL
Pin
CL
Pin
VSS
VSS
RL = 464
CL = 50 pF
15 pF
Preliminary
DS39016A-page 83
PIC16C72 Series
13.5
Q1
Q2
Q3
Q4
Q1
OSC1
1
CLKOUT
TABLE 13-3
Parameter
No.
Characteristic
External CLKIN Frequency
(Note 1)
Oscillator Frequency
(Note 1)
Tosc
Oscillator Period
(Note 1)
2
3
Note 1:
TCY
TosL,
TosH
Min
Typ
Max
Units
Conditions
DC
DC
4
4
MHz
MHz
DC
DC
10
20
MHz
MHz
DC
DC
200
4
kHz
MHz
LP osc mode
RC osc mode
0.1
4
5
4
20
200
MHz
MHz
kHz
XT osc mode
HS osc mode
LP osc mode
250
250
100
ns
ns
ns
50
5
250
ns
s
ns
250
10,000
ns
XT osc mode
250
100
50
250
250
250
ns
ns
ns
5
200
100
DC
s
ns
ns
LP osc mode
TCY = 4/FOSC
XT oscillator
2.5
s
LP oscillator
15
ns
HS oscillator
TosR, External Clock in (OSC1) Rise or
25
ns
XT oscillator
TosF Fall Time
50
ns
LP oscillator
15
ns
HS oscillator
Data in "Typ" column is at 5V, 25C unless otherwise stated. These parameters are for design guidance only and are not
tested.
Instruction cycle period (TCY) equals four times the input oscillator time-base period. All specified values are based on
characterization data for that particular oscillator type under standard operating conditions with the device executing
code. Exceeding these specified limits may result in an unstable oscillator operation and/or higher than expected current
consumption. All devices are tested to operate at "min." values with an external clock applied to the OSC1/CLKIN pin.
When an external clock input is used, the "Max." cycle time limit is "DC" (no clock) for all devices.
DS39016A-page 84
Preliminary
PIC16C72 Series
FIGURE 13-3: CLKOUT AND I/O TIMING
Q1
Q4
Q2
Q3
OSC1
11
10
CLKOUT
13
19
14
12
18
16
I/O Pin
(input)
15
17
I/O Pin
(output)
new value
old value
20, 21
Note: Refer to Figure 13-1 for load conditions.
TABLE 13-4
Parameter
No.
Sym
10*
TosH2ckL
Characteristic
OSC1 to CLKOUT
Min
Typ
Max
Units
Conditions
75
200
ns
Note 1
11*
TosH2ckH
OSC1 to CLKOUT
75
200
ns
Note 1
12*
TckR
35
100
ns
Note 1
13*
TckF
35
100
ns
Note 1
14*
TckL2ioV
0.5TCY + 20
ns
Note 1
15*
TioV2ckH
TOSC + 200
ns
Note 1
16*
TckH2ioI
ns
Note 1
17*
TosH2ioV
50
150
ns
18*
TosH2ioI
PIC16C72/CR72
100
ns
PIC16LC72/LCR72
200
ns
19*
TioV2osH
ns
20*
TioR
PIC16C72/CR72
10
40
ns
PIC16LC72/LCR72
80
ns
21*
TioF
PIC16C72/CR72
10
40
ns
80
ns
22*
Tinp
TCY
ns
23*
Trbp
TCY
ns
PIC16LC72/LCR72
Note 1:
Preliminary
DS39016A-page 85
PIC16C72 Series
FIGURE 13-4: RESET, WATCHDOG TIMER, OSCILLATOR START-UP TIMER AND POWER-UP
TIMER TIMING
VDD
MCLR
30
Internal
POR
33
PWRT
Time-out
32
OSC
Time-out
Internal
RESET
Watchdog
Timer
RESET
31
34
34
I/O Pins
BVDD
VDD
35
TABLE 13-5
Parameter
No.
Sym
Characteristic
Min
Typ
Max
Units
Conditions
30
TmcL
31*
Twdt
18
33
ms
32
Tost
1024TOSC
33*
Tpwrt
28
72
132
ms
34
TIOZ
2.1
TBOR
100
35
*
DS39016A-page 86
Preliminary
PIC16C72 Series
FIGURE 13-6: TIMER0 AND TIMER1 EXTERNAL CLOCK TIMINGS
RA4/T0CKI
41
40
42
RC0/T1OSO/T1CKI
46
45
47
48
TMR0 or
TMR1
Note: Refer to Figure 13-1 for load conditions.
TABLE 13-6
Param
No.
Sym
Characteristic
40*
Tt0H
41*
Tt0L
42*
Tt0P
T0CKI Period
45*
46*
47*
Tt1H
Tt1L
Tt1P
Min
No Prescaler
With Prescaler
No Prescaler
With Prescaler
No Prescaler
With Prescaler
48
*
0.5TCY + 20
10
0.5TCY + 20
10
TCY + 40
Greater of:
20 or TCY + 40
N
0.5TCY + 20
15
25
30
50
0.5TCY + 20
15
25
30
50
Greater of:
30 OR TCY + 40
N
Greater of:
50 OR TCY + 40
N
60
100
DC
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
Conditions
Must also meet
parameter 42
Must also meet
parameter 42
N = prescale value
(2, 4, ..., 256)
Must also meet
parameter 47
N = prescale value
(1, 2, 4, 8)
N = prescale value
(1, 2, 4, 8)
Asynchronous PIC16C7X/CR72
ns
PIC16LC7X/LCR72
ns
Ft1
Timer1 oscillator input frequency range
200 kHz
(oscillator enabled by setting bit T1OSCEN)
TCKEZtmr1 Delay from external clock edge to timer increment
2Tosc
7Tosc
These parameters are characterized but not tested.
Data in "Typ" column is at 5V, 25C unless otherwise stated. These parameters are for design guidance only and are not
tested.
Preliminary
DS39016A-page 87
PIC16C72 Series
FIGURE 13-7: CAPTURE/COMPARE/PWM TIMINGS (CCP1)
RC2/CCP1
(Capture Mode)
50
51
52
RC2/CCP1
(Compare or PWM Mode)
53
54
TABLE 13-7
Param
No.
50*
Sym
TccL
Characteristic
CCP1 input low time
Min
No Prescaler
With Prescaler PIC16C72/CR72
PIC16LC72/LCR72
51*
52*
TccP
53*
54*
TccF
0.5TCY + 20
ns
10
ns
ns
20
0.5TCY + 20
ns
10
ns
20
ns
3TCY + 40
N
ns
PIC16C72/CR72
10
25
ns
PIC16LC72/LCR72
25
45
ns
PIC16C72/CR72
10
25
ns
PIC16LC72/LCR72
25
45
ns
Conditions
N = prescale
value (1,4 or 16)
DS39016A-page 88
Preliminary
PIC16C72 Series
FIGURE 13-8: SPI MASTER OPERATION TIMING (CKE = 0)
SS
70
SCK
(CKP = 0)
71
72
78
79
79
78
SCK
(CKP = 1)
80
BIT6 - - - - - -1
MSB
SDO
LSB
75, 76
SDI
MSB IN
BIT6 - - - -1
LSB IN
74
73
Refer to Figure 13-1 for load conditions.
SS
81
SCK
(CKP = 0)
71
72
79
73
SCK
(CKP = 1)
80
78
SDO
BIT6 - - - - - -1
MSB
LSB
75, 76
SDI
MSB IN
BIT6 - - - -1
LSB IN
74
Refer to Figure 13-1 for load conditions.
Preliminary
DS39016A-page 89
PIC16C72 Series
FIGURE 13-10: SPI SLAVE MODE TIMING (CKE = 0)
SS
70
SCK
(CKP = 0)
83
71
72
78
79
79
78
SCK
(CKP = 1)
80
MSB
SDO
LSB
BIT6 - - - - - -1
77
75, 76
SDI
MSB IN
BIT6 - - - -1
LSB IN
74
73
Refer to Figure 13-1 for load conditions.
SCK
(CKP = 0)
70
83
71
72
SCK
(CKP = 1)
80
SDO
MSB
BIT6 - - - - - -1
LSB
75, 76
SDI
MSB IN
77
BIT6 - - - -1
LSB IN
74
Refer to Figure 13-1 for load conditions.
DS39016A-page 90
Preliminary
PIC16C72 Series
TABLE 13-8
Param
No.
Sym
Characteristic
Typ
Max
Units
TCY
ns
71
TssL2scH,
TssL2scL
TscH
TCY + 20
ns
72
TscL
TCY + 20
ns
73
TdiV2scH,
TdiV2scL
50
ns
74
50
ns
75
TscH2diL,
TscL2diL
TdoR
10
25
ns
76
TdoF
10
25
ns
77
TssH2doZ
10
50
ns
78
TscR
10
25
ns
79
TscF
10
25
ns
80
TscH2doV,
TscL2doV
50
ns
70
Min
Data in "Typ" column is at 5V, 25C unless otherwise stated. These parameters are for design guidance only and are not
tested.
TABLE 13-9
Parameter
No.
70*
Min
Typ
Max
Units
TssL2scH,
TssL2scL
TscH
TscL
TCY
ns
TCY + 20
TCY + 20
ns
TdiV2scH,
TdiV2scL
TscH2diL,
TscL2diL
100
ns
ns
100
ns
75*
76*
TdoR
TdoF
77*
78*
TssH2doZ
TscR
10
10
10
10
25
25
50
25
ns
ns
ns
ns
79*
80*
TscF
TscH2doV,
TscL2doV
TdoV2scH,
TdoV2scL
10
25
50
ns
ns
TCY
ns
TssL2doV
50
ns
71*
72*
73*
74*
81*
82*
Sym
83*
Conditions
Conditions
TscH2ssH,
1.5TCY + 40
ns
TscL2ssH
These parameters are characterized but not tested.
Data in "Typ" column is at 5V, 25C unless otherwise stated. These parameters are for design guidance only and are not
tested.
Preliminary
DS39016A-page 91
PIC16C72 Series
FIGURE 13-12: I2C BUS START/STOP BITS TIMING
SCL
93
91
90
92
SDA
STOP
Condition
START
Condition
Note: Refer to Figure 13-1 for load conditions
TABLE 13-10
Parameter
No.
90
91
92
93
Sym
TSU:STA
THD:STA
TSU:STO
THD:STO
DS39016A-page 92
Characteristic
Min
Typ Max
START condition
4700
Setup time
600
START condition
4000
Hold time
600
STOP condition
4700
Setup time
600
STOP condition
4000
Hold time
600
Preliminary
Units
Conditions
ns
ns
ns
ns
PIC16C72 Series
FIGURE 13-13: I2C BUS DATA TIMING
103
102
100
101
SCL
90
106
107
91
92
SDA
In
110
109
109
SDA
Out
Note: Refer to Figure 13-1 for load conditions
TABLE 13-11
Parameter
No.
100
Sym
THIGH
Characteristic
Clock high time
Min
Max
Units
Conditions
4.0
0.6
1.5TCY
4.7
1.3
SSP Module
101
TLOW
SSP Module
102
103
TR
TF
1.5TCY
1000
ns
20 + 0.1Cb
300
ns
300
ns
20 + 0.1Cb
300
ns
Cb is specified to be from
10 to 400 pF
Only relevant for repeated
START condition
90
91
106
107
92
109
110
TSU:STA
THD:STA
THD:DAT
TSU:DAT
TSU:STO
TAA
TBUF
Cb
Note 1:
Note 2:
4.7
0.6
4.0
0.6
START condition
setup time
ns
0.9
250
ns
100
ns
4.7
0.6
3500
ns
ns
4.7
1.3
400
pF
Cb is specified to be from
10 to 400 pF
Note 2
Note 1
Time the bus must be free
before a new transmission can
start
As a transmitter, the device must provide this internal minimum delay time to bridge the undefined region (min. 300 ns) of
the falling edge of SCL to avoid unintended generation of START or STOP conditions.
A fast-mode (400 kHz) I2C-bus device can be used in a standard-mode (100 kHz)S I2C-bus system, but the requirement
tsu;DAT 250 ns must then be met. This will automatically be the case if the device does not stretch the LOW period of the
SCL signal. If such a device does stretch the LOW period of the SCL signal, it must output the next data bit to the SDA line
TR max.+tsu;DAT = 1000 + 250 = 1250 ns (according to the standard-mode I2C bus specification) before the SCL line is
released.
Preliminary
DS39016A-page 93
PIC16C72 Series
TABLE 13-12
Param
No.
Sym
Characteristic
Min
Typ
Max
Units
Conditions
A01
NR
Resolution
8 bits
bit
A02
EABS
<1
LSb
A03
EIL
<1
LSb
A04
EDL
<1
LSb
A05
EFS
<1
LSb
A06
EOFF
Offset error
<1
LSb
A10
Monotonicity
guaranteed
A20
VREF
Reference voltage
2.5V
VDD + 0.3
A25
VAIN
VSS - 0.3
VREF + 0.3
A30
ZAIN
Recommended impedance of
analog voltage source
10.0
A40
IAD
A/D conversion
current (VDD)
PIC16C72/CR72
180
PIC16LC72/LCR72
90
10
1000
10
A50
Note 1:
Note 2:
IREF
DS39016A-page 94
Preliminary
PIC16C72 Series
FIGURE 13-14: A/D CONVERSION TIMING
BSF ADCON0, GO
1 TCY
(TOSC/2) (1)
134
131
Q4
130
A/D CLK
132
A/D DATA
NEW_DATA
OLD_DATA
ADRES
ADIF
GO
DONE
SAMPLING STOPPED
SAMPLE
Note 1:
If the A/D clock source is selected as RC, a time of TCY is added before the A/D clock starts. This allows the
SLEEP instruction to be executed.
TABLE 13-13
Param
No.
Sym
TAD
130
Conditions
PIC16C72/LCR72
2.0
4.0
6.0
A/D RC Mode
PIC16LC72/LCR72
2.5
6.0
9.0
A/D RC Mode
9.5
TAD
Note 2
20
5*
TOSC/2
1.5
TAD
132
TACQ
Acquisition time
Note 1:
Note 2:
Units
2.0
Conversion time
(not including S/H time) (Note 1)
Max
1.6
TCNV
135
Typ
PIC16LC72/LCR72
131
134
Min
Tgo
Tswc
Preliminary
DS39016A-page 95
PIC16C72 Series
NOTES:
DS39016A-page 96
Preliminary
PIC16C72
14.0
PIC16C72 Series
The graphs and tables provided in this section are for design guidance and are not tested or guaranteed.
In some graphs or tables, the data presented are outside specified operating range (i.e., outside specified VDD
range). This is for information only and devices are guaranteed to operate properly only within the specified range.
The data presented in this section is a statistical summary of data collected on units from different lots over a period
of time and matrix samples. 'Typical' represents the mean of the distribution at 25C, while 'max' or 'min' represents
(mean + 3) and (mean - 3) respectively, where is standard deviation.
30
IPD (nA)
25
20
15
10
0
2.5
3.0
3.5
4.0
4.5
VDD (Volts)
5.0
5.5
6.0
IPD (A)
1.000
25C
0.100
0C
-40C
0.010
0.001
2.5
3.0
3.5
4.0
4.5
VDD (Volts)
Preliminary
5.0
5.5
6.0
DS39016A-page 97
PIC16C72 Series
PIC16C72
6.0
25
5.5
5.0
4.5
Fosc (MHz)
IPD (A)
20
15
10
R = 5k
4.0
3.5
3.0
R = 10k
2.5
2.0
1.5
1.0
0
2.5
3.0
3.5
4.0
4.5
5.0
5.5
R = 100k
0.5
6.0
0.0
2.5
VDD (Volts)
3.0
3.5
4.0
4.5
VDD (Volts)
5.0
5.5
6.0
-40C
30
0C
2.4
2.2
25
R = 3.3k
1.8
70C
Fosc (MHz)
IPD (A)
2.0
20
15
85C
10
5
1.6
R = 5k
1.4
1.2
1.0
R = 10k
0.8
0
2.5
3.0
3.5
4.0
4.5
5.0
5.5
0.4
6.0
R = 100k
0.2
VDD (Volts)
0.0
2.5
3.0
3.5
4.0
4.5
5.0
5.5
6.0
VDD (Volts)
Data based on matrix samples. See first page of this section for details.
0.6
R = 3.3k
700
600
R = 5k
500
400
R = 10k
300
200
R = 100k
100
0
2.5
3.0
3.5
4.0
4.5
5.0
5.5
6.0
VDD (Volts)
DS39016A-page 98
Preliminary
PIC16C72 Series
PIC16C72
FIGURE 14-8: TYPICAL IPD vs. VDD BROWNOUT DETECT ENABLED (RC
MODE)
1400
1200
30
25
Device NOT in
Brown-out Reset
800
20
600
400
200
0
2.5
IPD (A)
IPD (A)
1000
Device in
Brown-out
Reset
15
10
3.0
3.5
4.0
4.5
VDD (Volts)
5.0
5.5
6.0
0
2.5
3.0
3.5
4.0
4.5
VDD (Volts)
5.0
5.5
6.0
1600
1400
45
40
1000
Device NOT in
Brown-out Reset
800
35
30
400
Device in
Brown-out
Reset
200
4.3
0
2.5
3.0
3.5
4.0
4.5
VDD (Volts)
25
20
15
10
5.0
5.5
6.0
Preliminary
5
0
2.5
3.0
3.5
4.0
4.5
VDD (Volts)
5.0
5.5
6.0
DS39016A-page 99
Data based on matrix samples. See first page of this section for details.
600
IPD (A)
IPD (A)
1200
PIC16C72 Series
PIC16C72
FIGURE 14-12: TYPICAL IDD vs. FREQUENCY (RC MODE @ 22 pF, 25C)
2000
6.0V
1800
5.5V
5.0V
1600
4.5V
IDD (A)
1400
4.0V
1200
3.5V
1000
3.0V
800
2.5V
600
400
200
0
0.0
0.5
1.0
1.5
2.0
2.5
3.0
Frequency (MHz)
3.5
4.0
4.5
Shaded area is
beyond recommended range
FIGURE 14-13: MAXIMUM IDD vs. FREQUENCY (RC MODE @ 22 pF, -40C TO 85C)
2000
6.0V
1800
5.5V
5.0V
1600
4.5V
IDD (A)
Data based on matrix samples. See first page of this section for details.
1400
4.0V
1200
3.5V
1000
3.0V
800
2.5V
600
400
200
0
0.0
0.5
1.0
1.5
2.0
2.5
Frequency (MHz)
DS39016A-page 100
Preliminary
3.0
3.5
4.0
4.5
Shaded area is
beyond recommended range
PIC16C72
PIC16C72 Series
FIGURE 14-14: TYPICAL IDD vs. FREQUENCY (RC MODE @ 100 pF, 25C)
1600
6.0V
1400
5.5V
5.0V
1200
4.5V
4.0V
1000
IDD (A)
3.5V
3.0V
800
2.5V
600
400
200
0
0
200
400
Shaded area is
beyond recommended range
600
800
1000
1200
1400
1600
1800
Frequency (kHz)
FIGURE 14-15: MAXIMUM IDD vs. FREQUENCY (RC MODE @ 100 pF, -40C TO 85C)
1600
6.0V
1400
5.5V
4.5V
4.0V
1000
IDD (A)
3.5V
3.0V
800
2.5V
600
400
200
0
0
200
400
Shaded area is
beyond recommended range
600
800
1000
1200
1400
1600
1800
Frequency (kHz)
Preliminary
DS39016A-page 101
Data based on matrix samples. See first page of this section for details.
5.0V
1200
PIC16C72 Series
PIC16C72
FIGURE 14-16: TYPICAL IDD vs. FREQUENCY (RC MODE @ 300 pF, 25C)
1200
6.0V
5.5V
1000
5.0V
4.5V
4.0V
800
3.5V
IDD (A)
3.0V
600
2.5V
400
200
0
0
100
200
300
400
500
600
700
Frequency (kHz)
FIGURE 14-17: MAXIMUM IDD vs. FREQUENCY (RC MODE @ 300 pF, -40C TO 85C)
1200
6.0V
5.5V
5.0V
4.5V
4.0V
800
3.5V
IDD (A)
Data based on matrix samples. See first page of this section for details.
1000
3.0V
600
2.5V
400
200
0
0
100
200
300
400
500
600
700
Frequency (kHz)
DS39016A-page 102
Preliminary
PIC16C72 Series
PIC16C72
FIGURE 14-18: TYPICAL IDD vs.
CAPACITANCE @ 500 kHz
(RC MODE)
600
3.5
5.0V
500
3.0
3.0V
300
200
0.0
3.0
100 pF
300 pF
Capacitance (pF)
RC OSCILLATOR
FREQUENCIES
300 pF
4.0
4.5
5.0
5.5
6.0
6.5
7.0
Rext
100
Max -40C
90
5k
4.12 MHz
1.4%
80
10k
2.35 MHz
1.4%
70
100k
268 kHz
1.1%
3.3k
1.80 MHz
1.0%
5k
1.27 MHz
1.0%
10k
688 kHz
1.2%
100k
77.2 kHz
1.0%
3.3k
707 kHz
1.4%
5k
501 kHz
1.2%
10k
269 kHz
1.6%
100k
28.3 kHz
1.1%
gm (A/V)
100 pF
3.5
VDD (Volts)
Shaded area is
beyond recommended range
Average
22 pF
Min 85C
1.5
0.5
0
20 pF
Cext
Typ 25C
2.0
1.0
100
TABLE 14-1
2.5
60
Typ 25C
50
40
30
20
Min 85C
10
0
2.0
7.0
VDD (Volts)
Shaded areas are
beyond recommended range
Max -40C
800
gm (A/V)
700
600
Typ 25C
500
400
300
Min 85C
200
100
0
2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5
7.0
VDD (Volts)
Shaded areas are
beyond recommended range
Preliminary
DS39016A-page 103
Data based on matrix samples. See first page of this section for details.
IDD (A)
gm (mA/V)
4.0V
400
PIC16C72 Series
PIC16C72
3.5
70
3.0
50
Startup Time (ms)
60
2.5
2.0
32 kHz, 33 pF/33 pF
1.5
1.0
40
200 kHz, 68 pF/68 pF
30
200 kHz, 47 pF/47 pF
20
1 MHz, 15 pF/15 pF
10
0.5
4 MHz, 15 pF/15 pF
0.0
2.5
0
2.5
3.0
3.5
4.0
4.5
5.0
5.5
3.0
3.5
6.0
4.0
4.5
VDD (Volts)
5.0
5.5
6.0
VDD (Volts)
TABLE 14-2
Data based on matrix samples. See first page of this section for details.
Osc Type
LP
20 MHz, 33 pF/33 pF
XT
4
8 MHz, 33 pF/33 pF
3
2
1
4.0
HS
20 MHz, 15 pF/15 pF
8 MHz, 15 pF/15 pF
4.5
DS39016A-page 104
5.0
VDD(Volts)
5.5
CAPACITOR SELECTION
FOR CRYSTAL
OSCILLATORS
Crystal
Freq
Cap. Range
C1
Cap. Range
C2
33 pF
32 kHz
33 pF
200 kHz
15 pF
15 pF
200 kHz
47-68 pF
47-68 pF
1 MHz
15 pF
15 pF
4 MHz
15 pF
15 pF
4 MHz
15 pF
15 pF
8 MHz
15-33 pF
15-33 pF
20 MHz
15-33 pF
15-33 pF
6.0
Crystals
Used
32 kHz
Epson C-001R32.768K-A
20 PPM
200 kHz
20 PPM
1 MHz
ECS ECS-10-13-1
50 PPM
4 MHz
ECS ECS-40-20-1
50 PPM
8 MHz
30 PPM
20 MHz
30 PPM
Preliminary
PIC16C72 Series
PIC16C72
FIGURE 14-25: TYPICAL IDD vs. FREQUENCY
(LP MODE, 25C)
6.0V
1400
5.5V
120
100
5.0V
1200
4.5V
1000
4.0V
60
40
20
0
0
6.0V
5.5V
5.0V
4.5V
4.0V
3.5V
3.0V
2.5V
IDD (A)
IDD (A)
80
3.5V
800
3.0V
600
2.5V
400
50
100
150
200
200
Frequency (kHz)
0
0.0
0.4
0.8
1.2
1.6
2.0
2.4
2.8
3.2
3.6
4.0
Frequency (MHz)
6.0V
1600
120
1400
100
1200
80
1000
4.0V
800
3.5V
40
20
0
0
6.0V
5.5V
5.0V
4.5V
4.0V
3.5V
3.0V
2.5V
5.5V
5.0V
4.5V
3.0V
600
2.5V
400
200
50
100
150
200
0
0.0
Frequency (kHz)
0.4
0.8
1.2
1.6
2.0
2.4
2.8
3.2
3.6
4.0
Frequency (MHz)
Preliminary
DS39016A-page 105
Data based on matrix samples. See first page of this section for details.
60
IDD (A)
IDD (A)
140
PIC16C72 Series
PIC16C72
6.0
6.0
5.0
IDD (mA)
IDD(mA)
5.0
4.0
3.0
2.0
1.0
0.0
1 2
6.0V
5.5V
5.0V
4.5V
4.0V
4.0
3.0
2.0
1.0
10
12
14
16
18
20
Frequency (MHz)
0.0
1 2
6.0V
5.5V
5.0V
4.5V
4.0V
10
12
14
16
18
20
Frequency (MHz)
TABLE 14-3
Process
Technology
Wavelength
(Angstroms)
Intensity (W/
cm2)
Data based on matrix samples. See first page of this section for details.
57K
2537
12,000
77K
2537
12,000
90K
2537
12,000
120K
2537
12,000
Note 1: If these criteria are not met, the erase times will be different.
Note:
1
1
1
1
Fluorescent lights and sunlight both emit ultraviolet light at the erasure wavelength. Leaving a UV erasable
devices window uncovered could cause, over time, the devices memory cells to become erased. The erasure time for a fluorescent light is about three years. While sunlight requires only about one week. To prevent the memory cells from losing data an opaque label should be placed over the erasure window.
DS39016A-page 106
Preliminary
PIC16CR72
15.0
PIC16C72 Series
Preliminary
DS39016A-page 107
PIC16C72 Series
PIC16CR72
NOTES:
DS39016A-page 108
Preliminary
PIC16C72 Series
16.0
PACKAGING INFORMATION
16.1
Example
XXXXXXXXXXX
XXXXXXXXXXX
AABBCDE
PIC16C72/JW
9517CAT
Example
MMMMMMMMMMMM
XXXXXXXXXXXXXXX
AABBCDE
PIC16C72-04/SP
AABBCDE
Example
28-Lead SOIC
MMMMMMMMMMMMMMMM
XXXXXXXXXXXXXXXXXXXX
AABBCDE
28-Lead SSOP
PIC16C72-04/SO
945/CAA
Example
XXXXXXXXXXXX
XXXXXXXXXXXX
PIC16C72
20I/SS025
AABBCAE
9517SBP
Legend: MM...M
XX...X
AA
BB
C
D
E
Note:
In the event the full Microchip part number cannot be marked on one
line, it will be carried over to the next line thus limiting the number of
available characters for customer specific information.
* Standard OTP marking consists of Microchip part number, year code, week code,
facility code, mask revision number, and assembly code. For OTP marking beyond
this, certain price adders apply. Please check with your Microchip Sales Office.
For QTP devices, any special marking adders are included in QTP price.
Preliminary
DS39016A-page 109
PIC16C72 Series
16.2
28-Lead Ceramic Side Brazed Dual In-Line with Window (300 mil)(JW)
W2
2
n
1
W1
E1
A
R
A1
L
c
eB
Units
Dimension Limits
PCB Row Spacing
Number of Pins
Pitch
Lower Lead Width
Upper Lead Width
Shoulder Radius
Lead Thickness
Top to Seating Plane
Top of Lead to Seating Plane
Base to Seating Plane
Tip to Seating Plane
Package Length
Package Width
Radius to Radius Width
Overall Row Spacing
Window Width
Window Length
B1
B
A2
MIN
n
p
B
B1
R
c
A
A1
A2
L
D
E
E1
eB
W1
W2
0.098
0.016
0.050
0.010
0.008
0.170
0.107
0.015
0.135
1.430
0.285
0.255
0.345
0.130
0.290
INCHES*
NOM
0.300
28
0.100
0.019
0.058
0.013
0.010
0.183
0.125
0.023
0.140
1.458
0.290
0.270
0.385
0.140
0.300
MAX
0.102
0.021
0.065
0.015
0.012
0.195
0.143
0.030
0.145
1.485
0.295
0.285
0.425
0.150
0.310
MILLIMETERS
NOM
MAX
7.62
28
2.59
2.54
2.49
0.47
0.53
0.41
1.46
1.65
1.27
0.32
0.38
0.25
0.25
0.30
0.20
4.32
4.64
4.95
3.18
3.63
2.72
0.57
0.76
0.00
3.56
3.68
3.43
37.02
37.72
36.32
7.37
7.49
7.24
6.86
7.24
6.48
9.78
10.80
8.76
0.14
0.15
0.13
0.3
0.31
0.29
MIN
* Controlling Parameter.
DS39016A-page 110
Preliminary
PIC16C72 Series
16.3
2
n
1
E1
A1
A
B1
A2
eB
Units
Dimension Limits
PCB Row Spacing
Number of Pins
Pitch
Lower Lead Width
Upper Lead Width
Shoulder Radius
Lead Thickness
Top to Seating Plane
Top of Lead to Seating Plane
Base to Seating Plane
Tip to Seating Plane
Package Length
Molded Package Width
Radius to Radius Width
Overall Row Spacing
Mold Draft Angle Top
Mold Draft Angle Bottom
B
INCHES*
NOM
0.300
28
0.100
0.019
0.016
0.053
0.040
0.005
0.000
0.010
0.008
0.150
0.140
0.090
0.070
0.020
0.015
0.130
0.125
1.365
1.345
0.288
0.280
0.270
0.283
0.320
0.350
5
10
5
10
MIN
n
p
B
B1
R
c
A
A1
A2
L
D
E
E1
eB
MAX
0.022
0.065
0.010
0.012
0.160
0.110
0.025
0.135
1.385
0.295
0.295
0.380
15
15
MILLIMETERS
NOM
MAX
7.62
28
2.54
0.48
0.41
0.56
1.33
1.02
1.65
0.13
0.00
0.25
0.25
0.20
0.30
3.81
3.56
4.06
2.29
1.78
2.79
0.51
0.38
0.64
3.30
3.18
3.43
34.67
34.16
35.18
7.11
7.30
7.49
7.49
6.86
7.18
8.13
8.89
9.65
5
10
15
5
10
15
MIN
* Controlling Parameter.
Dimension B1 does not include dam-bar protrusions. Dam-bar protrusions shall not exceed 0.003
(0.076 mm) per side or 0.006 (0.152 mm) more than dimension B1.
Dimensions D and E do not include mold flash or protrusions. Mold flash or protrusions shall not
exceed 0.010 (0.254 mm) per side or 0.020 (0.508 mm) more than dimensions D or E.
Preliminary
DS39016A-page 111
PIC16C72 Series
16.4
28-Lead Plastic Surface Mount (SOIC - Wide, 300 mil Body) (SO)
E1
E
p
B
2
1
n
X
45
L
R2
c
A
Units
Dimension Limits
Pitch
Number of Pins
Overall Pack. Height
Shoulder Height
Standoff
Molded Package Length
Molded Package Width
Outside Dimension
Chamfer Distance
Shoulder Radius
Gull Wing Radius
Foot Length
Foot Angle
Radius Centerline
Lead Thickness
Lower Lead Width
Mold Draft Angle Top
Mold Draft Angle Bottom
A1
R1
L1
A2
INCHES*
NOM
0.050
28
0.099
0.093
0.058
0.048
0.008
0.004
0.706
0.700
0.296
0.292
0.407
0.394
0.020
0.010
0.005
0.005
0.005
0.005
0.016
0.011
0
4
0.015
0.010
0.011
0.009
0.014
0.017
0
12
0
12
MIN
p
n
A
A1
A2
D
E
E1
X
R1
R2
L
L1
c
B
MAX
0.104
0.068
0.011
0.712
0.299
0.419
0.029
0.010
0.010
0.021
8
0.020
0.012
0.019
15
15
MILLIMETERS
NOM
MAX
1.27
28
2.36
2.50
2.64
1.22
1.47
1.73
0.10
0.19
0.28
17.93
17.78
18.08
7.42
7.51
7.59
10.01
10.33
10.64
0.50
0.25
0.74
0.13
0.13
0.25
0.13
0.13
0.25
0.28
0.41
0.53
8
0
4
0.25
0.38
0.51
0.23
0.27
0.30
0.36
0.42
0.48
0
12
15
0
12
15
MIN
Controlling Parameter.
Dimension B does not include dam-bar protrusions. Dam-bar protrusions shall not exceed 0.003
(0.076 mm) per side or 0.006 (0.152 mm) more than dimension B.
Dimensions D and E do not include mold flash or protrusions. Mold flash or protrusions shall not
exceed 0.010 (0.254 mm) per side or 0.020 (0.508 mm) more than dimensions D or E.
DS39016A-page 112
Preliminary
PIC16C72 Series
16.5
28-Lead Plastic Surface Mount (SSOP - 209 mil Body 5.30 mm) (SS)
E1
E
p
B
2
1
R2
A1
R1
A2
L1
Units
Dimension Limits
Pitch
Number of Pins
Overall Pack. Height
Shoulder Height
Standoff
Molded Package Length
Molded Package Width
Outside Dimension
Shoulder Radius
Gull Wing Radius
Foot Length
Foot Angle
Radius Centerline
Lead Thickness
Lower Lead Width
Mold Draft Angle Top
Mold Draft Angle Bottom
INCHES
NOM
0.026
28
0.073
0.068
0.036
0.026
0.005
0.002
0.402
0.396
0.208
0.205
0.306
0.301
0.005
0.005
0.005
0.005
0.020
0.015
0
4
0.005
0.000
0.007
0.005
0.010
0.012
0
5
0
5
MIN
p
n
A
A1
A2
D
E
E1
R1
R2
L
L1
c
B
MAX
0.078
0.046
0.008
0.407
0.212
0.311
0.010
0.010
0.025
8
0.010
0.009
0.015
10
10
MILLIMETERS*
NOM
MAX
0.65
28
1.99
1.73
1.86
1.17
0.66
0.91
0.21
0.05
0.13
10.33
10.07
10.20
5.38
5.20
5.29
7.90
7.65
7.78
0.25
0.13
0.13
0.25
0.13
0.13
0.64
0.38
0.51
0
4
8
0.25
0.00
0.13
0.22
0.13
0.18
0.38
0.25
0.32
10
0
5
10
0
5
MIN
Controlling Parameter.
Dimension B does not include dam-bar protrusions. Dam-bar protrusions shall not exceed 0.003
(0.076 mm) per side or 0.006 (0.152 mm) more than dimension B.
Dimensions D and E do not include mold flash or protrusions. Mold flash or protrusions shall not
exceed 0.010 (0.254 mm) per side or 0.020 (0.508 mm) more than dimensions D or E.
Preliminary
DS39016A-page 113
PIC16C72 Series
NOTES:
DS39016A-page 114
Preliminary
PIC16C72 Series
APPENDIX A: WHATS NEW IN THIS
DATA SHEET
This is a new data sheet. However, information on the
PIC16C72 device was previously found in the
PIC16C7X Data Sheet, DS30390. Information on the
PIC16CR72 device is new.
PIC16C72
PIC16CR72
SSP module in
SPI mode
Basic SSP
SSP
Preliminary
DS39016A-page 115
PIC16C72 Series
NOTES:
DS39016A-page 116
Preliminary
PIC16C72 Series
INDEX
A
A/D
ADCON0 Register ...................................................... 53
ADCON1 Register ...................................................... 54
ADIF bit ...................................................................... 55
Analog Input Model Block Diagram ............................ 56
Analog-to-Digital Converter ........................................ 53
Block Diagram ............................................................ 55
Configuring Analog Port Pins ..................................... 57
Configuring the Interrupt ............................................ 55
Configuring the Module .............................................. 55
Conversion Clock ....................................................... 57
Conversions ............................................................... 58
Converter Characteristics .......................................... 94
GO/DONE bit ............................................................. 55
Internal Sampling Switch (Rss) Impedance ............... 56
Sampling Requirements ............................................. 56
Source Impedance ..................................................... 56
Using the CCP Trigger ............................................... 58
Absolute Maximum Ratings ............................................... 77
ACK .............................................................................. 47, 49
ADIE bit .............................................................................. 12
ADIF bit .............................................................................. 13
ADRES Register ...................................................... 7, 53, 55
Application Notes
AN546 (Using the Analog-to-Digital Converter) ......... 53
AN578 (Use of the SSP Module in the I2C
Multi-Master Environment) ......................................... 39
B
BF .......................................................................... 40, 43, 47
Block Diagrams
A/D ............................................................................. 55
Analog Input Model .................................................... 56
Capture ...................................................................... 34
Compare .................................................................... 35
I2C Mode .................................................................... 47
On-Chip Reset Circuit ................................................ 62
PIC16C72 .................................................................... 3
PIC16CR72 .................................................................. 3
PORTC ...................................................................... 23
PWM .......................................................................... 36
RA3:RA0 and RA5 Port Pins ..................................... 19
RA4/T0CKI Pin ........................................................... 19
RB3:RB0 Port Pins .................................................... 21
RB7:RB4 Port Pins .................................................... 21
SSP in I2C Mode ........................................................ 47
SSP in SPI Mode ................................................. 42, 45
Timer0 ........................................................................ 25
Timer0/WDT Prescaler .............................................. 26
Timer2 ........................................................................ 31
Watchdog Timer ......................................................... 70
BOR bit ........................................................................ 14, 64
Buffer Full Status bit, BF .............................................. 40, 43
Mode ................................................................. 34
Prescaler ........................................................... 34
CCP Timer Resources ............................................... 33
Compare
Block Diagram ................................................... 35
Mode ................................................................. 35
Software Interrupt Mode .................................... 35
Special Event Trigger ........................................ 35
Special Trigger Output of CCP1 ........................ 35
Special Trigger Output of CCP2 ........................ 35
Section ....................................................................... 33
Special Event Trigger and A/D Conversions ............. 35
Capture/Compare/PWM (CCP)
PWM Block Diagram ................................................. 36
PWM Mode ................................................................ 36
PWM, Example Frequencies/Resolutions ................. 37
CCP1IE bit ......................................................................... 12
CCP1IF bit ......................................................................... 13
CCPR1H Register ............................................................. 33
CCPR1L Register .............................................................. 33
CCPxM0 bit ....................................................................... 33
CCPxM1 bit ....................................................................... 33
CCPxM2 bit ....................................................................... 33
CCPxM3 bit ....................................................................... 33
CCPxX bit .......................................................................... 33
CCPxY bit .......................................................................... 33
CKE ................................................................................... 43
CKP ............................................................................. 41, 44
Clock Polarity Select bit, CKP ..................................... 41, 44
Code Examples
Changing Between Capture Prescalers .................... 34
Initializing PORTA ..................................................... 19
Initializing PORTB ..................................................... 21
Initializing PORTC ..................................................... 23
Code Protection ........................................................... 59, 72
Configuration Bits .............................................................. 59
D
D/A ............................................................................... 40, 43
Data/Address bit, D/A .................................................. 40, 43
DC bit ....................................................................................9
DC Characteristics
PIC16C72 .................................................................. 79
Development Support ........................................................ 75
Development Tools ............................................................ 75
Direct Addressing .............................................................. 17
E
Electrical Characteristics
PIC16C72 .................................................................. 77
External Power-on Reset Circuit ....................................... 63
F
FSR Register ............................................................. 7, 8, 17
Fuzzy Logic Dev. System (fuzzyTECH-MP) ................... 75
C bit ...................................................................................... 9
Capture/Compare/PWM
Capture
Block Diagram ................................................... 34
CCP1CON Register ........................................... 33
CCP1IF .............................................................. 34
CCPR1 ............................................................... 34
CCPR1H:CCPR1L ............................................. 34
I/O Ports
PORTA ...................................................................... 19
PORTB ...................................................................... 21
PORTC ...................................................................... 23
Section ....................................................................... 19
I2C
Addressing ................................................................. 48
Preliminary
DS39016A-page 117
PIC16C72 Series
Block Diagram ............................................................ 47
I2C Operation ............................................................. 47
Master Mode .............................................................. 51
Mode .......................................................................... 47
Mode Selection .......................................................... 47
Multi-Master Mode ..................................................... 51
Reception ................................................................... 49
Reception Timing Diagram ........................................ 49
SCL and SDA pins ..................................................... 47
Slave Mode ................................................................ 47
Transmission .............................................................. 50
In-Circuit Serial Programming ...................................... 59, 72
INDF Register ................................................................ 8, 17
Indirect Addressing ............................................................ 17
Initialization Condition for all Register ................................ 65
Instruction Format .............................................................. 73
Instruction Set
Section ....................................................................... 73
Summary Table .......................................................... 74
INT Interrupt ....................................................................... 68
INTCON Register ............................................................... 11
INTEDG bit ................................................................... 10, 68
Internal Sampling Switch (Rss) Impedance ....................... 56
Interrupts ............................................................................ 59
PortB Change ............................................................ 68
RB7:RB4 Port Change ............................................... 21
Section ....................................................................... 68
TMR0 ......................................................................... 68
IRP bit .................................................................................. 9
L
Loading of PC .................................................................... 15
M
MCLR ........................................................................... 61, 64
Memory
Data Memory ............................................................... 6
Program Memory ......................................................... 5
Program Memory Maps
PIC16C72 ............................................................ 5
PIC16CR72 .......................................................... 5
Register File Maps
PIC16C72 ............................................................ 6
PIC16CR72 .......................................................... 6
MPASM Assembler ............................................................ 75
MPSIM Software Simulator ................................................ 75
O
OPCODE ............................................................................ 73
OPTION Register ............................................................... 10
OSC selection .................................................................... 59
Oscillator
HS ........................................................................ 60, 64
LP ......................................................................... 60, 64
RC .............................................................................. 60
XT ........................................................................ 60, 64
Oscillator Configurations .................................................... 60
Output of TMR2 .................................................................. 31
P
P ................................................................................... 40, 43
Packaging
28-Lead Ceramic w/Window .................................... 110
28-Lead PDIP .......................................................... 111
28-Lead SOIC .......................................................... 112
28-Lead SSOP ......................................................... 113
Paging, Program Memory .................................................. 16
DS39016A-page 118
Preliminary
PIC16C72 Series
PR2 Register ...................................................................... 31
Prescaler, Switching Between Timer0 and WDT ............... 26
PRO MATE Universal Programmer ................................ 75
Program Memory
Paging ........................................................................ 16
Program Memory Maps
PIC16C72 .................................................................... 5
PIC16CR72 .................................................................. 5
Program Verification .......................................................... 72
PS0 bit ............................................................................... 10
PS1 bit ............................................................................... 10
PS2 bit ............................................................................... 10
PSA bit ............................................................................... 10
R
R/W .............................................................................. 40, 43
R/W bit ................................................................... 48, 49, 50
RBIF bit ........................................................................ 21, 68
RBPU bit ............................................................................ 10
RC Oscillator ................................................................ 61, 64
Read/Write bit Information, R/W .................................. 40, 43
Receive Overflow Detect bit, SSPOV ................................ 41
Receive Overflow Indicator bit, SSPOV ............................. 44
Register File ......................................................................... 6
Registers
Initialization Conditions .............................................. 65
Maps
PIC16C72 ............................................................ 6
PIC16CR72 .......................................................... 6
Reset Conditions ........................................................ 64
SSPCON
Diagram ............................................................. 41
SSPSTAT ................................................................... 43
Diagram ............................................................. 40
Section ............................................................... 40
Reset ............................................................................ 59, 61
Reset Conditions for Special Registers ............................. 64
RP0 bit ............................................................................. 6, 9
RP1 bit ................................................................................. 9
S
S ................................................................................... 40, 43
SCK .................................................................................... 42
SCL .................................................................................... 47
SDI ..................................................................................... 42
SDO ................................................................................... 42
Slave Mode
SCL ............................................................................ 47
SDA ............................................................................ 47
SLEEP ......................................................................... 59, 61
SMP ................................................................................... 43
Special Event Trigger ......................................................... 58
Special Features of the CPU ............................................. 59
Special Function Registers
PIC16C72 .................................................................... 7
PIC16CR72 .................................................................. 7
Special Function Registers, Section .................................... 7
SPI
Block Diagram ...................................................... 42, 45
Mode .......................................................................... 42
Serial Clock ................................................................ 45
Serial Data In ............................................................. 45
Serial Data Out .......................................................... 45
Slave Select ............................................................... 45
SPI Mode ................................................................... 45
SSPCON .................................................................... 44
SSPSTAT ................................................................... 43
T
T0CS bit ............................................................................. 10
T1CKPS0 bit ...................................................................... 27
T1CKPS1 bit ...................................................................... 27
T1CON Register ................................................................ 27
T1OSCEN bit ..................................................................... 27
T1SYNC bit ........................................................................ 27
T2CKPS0 bit ...................................................................... 32
T2CKPS1 bit ...................................................................... 32
T2CON Register ................................................................ 32
TAD .................................................................................... 57
Timer0
RTCC ......................................................................... 65
Timers
Timer0
Block Diagram ................................................... 25
Interrupt ............................................................. 26
Prescaler ........................................................... 25
Prescaler Block Diagram ................................... 26
Section .............................................................. 25
Switching Prescaler Assignment ....................... 26
T0IF ................................................................... 68
TMR0 Interrupt .................................................. 68
Timer1
Capacitor Selection ........................................... 29
Oscillator ........................................................... 29
Resetting Timer1 using a CCP Trigger Output .. 29
T1CON .............................................................. 27
Timer2
Block Diagram ................................................... 31
Postscaler .......................................................... 31
Prescaler ........................................................... 31
T2CON .............................................................. 32
Preliminary
DS39016A-page 119
PIC16C72 Series
Timing Diagrams
A/D Conversion .......................................................... 95
Brown-out Reset ........................................................ 86
Capture/Compare/PWM ............................................. 88
CLKOUT and I/O ........................................................ 85
External Clock Timing ................................................ 84
I2C Bus Data .............................................................. 93
I2C Bus Start/Stop bits ............................................... 92
I2C Reception (7-bit Address) .................................... 49
Power-up Timer ......................................................... 86
Reset .......................................................................... 86
Start-up Timer ............................................................ 86
Timer0 ........................................................................ 87
Timer1 ........................................................................ 87
Wake-up from Sleep via Interrupt .............................. 72
Watchdog Timer ......................................................... 86
TMR1CS bit ........................................................................ 27
TMR1H Register .................................................................. 7
TMR1IE bit ......................................................................... 12
TMR1IF bit ......................................................................... 13
TMR1L Register ................................................................... 7
TMR1ON bit ....................................................................... 27
TMR2 Register ..................................................................... 7
TMR2IE bit ......................................................................... 12
TMR2IF bit ......................................................................... 13
TMR2ON bit ....................................................................... 32
TO bit ................................................................................... 9
TOUTPS0 bit ...................................................................... 32
TOUTPS1 bit ...................................................................... 32
TOUTPS2 bit ...................................................................... 32
TOUTPS3 bit ...................................................................... 32
TRISA Register .............................................................. 8, 19
TRISB Register .............................................................. 8, 21
TRISC Register .............................................................. 8, 23
U
UA ................................................................................ 40, 43
Update Address bit, UA ................................................ 40, 43
W
Wake-up from SLEEP ........................................................ 71
Watchdog Timer (WDT) ................................... 59, 61, 64, 70
WCOL .......................................................................... 41, 44
WDT ................................................................................... 64
Block Diagram ............................................................ 70
Timeout ...................................................................... 65
Write Collision Detect bit, WCOL ................................. 41, 44
Z
Z bit ...................................................................................... 9
DS39016A-page 120
Preliminary
PIC16C72 Series
ON-LINE SUPPORT
Microchip provides on-line support on the Microchip
World Wide Web (WWW) site.
The web site is used by Microchip as a means to make
files and information easily available to customers. To
view the site, the user must have access to the Internet
and a web browser, such as Netscape or Microsoft
Explorer. Files are also available for FTP download
from our FTP site.
DS39016A-page 121
PIC16C72 Series
READER RESPONSE
It is our intention to provide you with the best documentation possible to ensure successful use of your Microchip product. If you wish to provide your comments on organization, clarity, subject matter, and ways in which our documentation
can better serve you, please FAX your comments to the Technical Publications Manager at (602) 786-7578.
Please list the following information, and use this outline to provide us with your comments about this Data Sheet.
To:
RE:
Reader Response
From: Name
Company
Address
City / State / ZIP / Country
Telephone: (_______) _________ - _________
Application (optional):
Would you like a reply?
Device: PIC16C72 Series
N
Literature Number: DS39016A
Questions:
1. What are the best features of this document?
2. How does this document meet your hardware and software development needs?
3. Do you find the organization of this data sheet easy to follow? If not, why?
4. What additions to the data sheet do you think would enhance the structure and subject?
5. What deletions from the data sheet could be made without affecting the overall usefulness?
8. How would you improve our software, systems, and silicon products?
DS39016A-page 122
PIC16C72 Series
PIC16C72 SERIES PRODUCT IDENTIFICATION SYSTEM
To order or obtain information, e.g., on pricing or delivery, refer to the factory or the listed sales office.
PART NO.
Device
-XX
Frequency Temperature
Range
Range
/XX
XXX
Package
Pattern
Examples:
f)
g)
Device
PIC16C72(1), PIC16C72T(2)
PIC16LC72(1), PIC16LC72T(2)
PIC16CR72(1), PIC16CR72T(2)
PIC16LCR72(1), PIC16LCR72T(2)
Frequency Range
02
04
10
20
= 2 MHz
= 4 MHz
= 10 MHz
= 20 MHz
Temperature Range
b(3)
I
E
=
0C to
70C
= -40C to +85C
= -40C to +125C
Package
JW
SO
SP
SS
Pattern
h)
Note 1:
2:
(Commercial)
(Industrial)
(Extended)
3:
C= CMOS
CR= CMOS ROM
LC= Low Power CMOS
LCR= ROM Version, Extended Vdd range
T = in tape and reel - SOIC, SSOP packages only.
b = blank
* JW Devices are UV erasable and can be programmed to any device configuration. JW Devices meet the electrical requirement of
each oscillator type (including LC devices).
Please specify which device, revision of silicon and Data Sheet (include Literature #) you are using.
Development Tools
For the latest version information and upgrade kits for Microchip Development Tools, please call 1-800-755-2345 or 1-602-786-7302.
The latest version of Development Tools software can be downloaded from either our Bulletin Board or Worldwide Web Site. (Information on how to connect to our BBS or WWW site can be found in the On-Line Support section of this data sheet.)
Preliminary
DS39016A-page 123
Note the following details of the code protection feature on PICmicro MCUs.
The PICmicro family meets the specifications contained in the Microchip Data Sheet.
Microchip believes that its family of PICmicro microcontrollers is one of the most secure products of its kind on the market today,
when used in the intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the PICmicro microcontroller in a manner outside the operating specifications contained in the data sheet.
The person doing so may be engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as unbreakable.
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of
our product.
If you have any further questions about this matter, please contact the local sales office nearest to you.
Trademarks
The Microchip name and logo, the Microchip logo, FilterLab,
KEELOQ, microID, MPLAB, PIC, PICmicro, PICMASTER,
PICSTART, PRO MATE, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
dsPIC, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB,
In-Circuit Serial Programming, ICSP, ICEPIC, microPort,
Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM,
MXDEV, PICC, PICDEM, PICDEM.net, rfPIC, Select Mode
and Total Endurance are trademarks of Microchip Technology
Incorporated in the U.S.A.
Serialized Quick Turn Programming (SQTP) is a service mark
of Microchip Technology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
2002, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
M
WORLDWIDE SALES AND SERVICE
AMERICAS
ASIA/PACIFIC
Japan
Corporate Office
Australia
Rocky Mountain
China - Beijing
Atlanta
500 Sugar Mill Road, Suite 200B
Atlanta, GA 30350
Tel: 770-640-0034 Fax: 770-640-0307
Boston
2 Lan Drive, Suite 120
Westford, MA 01886
Tel: 978-692-3848 Fax: 978-692-3821
Chicago
333 Pierce Road, Suite 180
Itasca, IL 60143
Tel: 630-285-0071 Fax: 630-285-0075
Dallas
4570 Westgrove Drive, Suite 160
Addison, TX 75001
Tel: 972-818-7423 Fax: 972-818-2924
Detroit
Tri-Atria Office Building
32255 Northwestern Highway, Suite 190
Farmington Hills, MI 48334
Tel: 248-538-2250 Fax: 248-538-2260
Kokomo
2767 S. Albright Road
Kokomo, Indiana 46902
Tel: 765-864-8360 Fax: 765-864-8387
Los Angeles
18201 Von Karman, Suite 1090
Irvine, CA 92612
Tel: 949-263-1888 Fax: 949-263-1338
China - Chengdu
Microchip Technology Consulting (Shanghai)
Co., Ltd., Chengdu Liaison Office
Rm. 2401, 24th Floor,
Ming Xing Financial Tower
No. 88 TIDU Street
Chengdu 610016, China
Tel: 86-28-6766200 Fax: 86-28-6766599
China - Fuzhou
Microchip Technology Consulting (Shanghai)
Co., Ltd., Fuzhou Liaison Office
Unit 28F, World Trade Plaza
No. 71 Wusi Road
Fuzhou 350001, China
Tel: 86-591-7503506 Fax: 86-591-7503521
China - Shanghai
Microchip Technology Consulting (Shanghai)
Co., Ltd.
Room 701, Bldg. B
Far East International Plaza
No. 317 Xian Xia Road
Shanghai, 200051
Tel: 86-21-6275-5700 Fax: 86-21-6275-5060
China - Shenzhen
San Jose
Hong Kong
New York
Toronto
6285 Northam Drive, Suite 108
Mississauga, Ontario L4V 1X5, Canada
Tel: 905-673-0699 Fax: 905-673-6509
India
Microchip Technology Inc.
India Liaison Office
Divyasree Chambers
1 Floor, Wing A (A3/A4)
No. 11, OShaugnessey Road
Bangalore, 560 025, India
Tel: 91-80-2290061 Fax: 91-80-2290062
Korea
Microchip Technology Korea
168-1, Youngbo Bldg. 3 Floor
Samsung-Dong, Kangnam-Ku
Seoul, Korea 135-882
Tel: 82-2-554-7200 Fax: 82-2-558-5934
Singapore
Microchip Technology Singapore Pte Ltd.
200 Middle Road
#07-02 Prime Centre
Singapore, 188980
Tel: 65-334-8870 Fax: 65-334-8850
Taiwan
Microchip Technology Taiwan
11F-3, No. 207
Tung Hua North Road
Taipei, 105, Taiwan
Tel: 886-2-2717-7175 Fax: 886-2-2545-0139
EUROPE
Denmark
Microchip Technology Nordic ApS
Regus Business Centre
Lautrup hoj 1-3
Ballerup DK-2750 Denmark
Tel: 45 4420 9895 Fax: 45 4420 9910
France
Microchip Technology SARL
Parc dActivite du Moulin de Massy
43 Rue du Saule Trapu
Batiment A - ler Etage
91300 Massy, France
Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79
Germany
Microchip Technology GmbH
Gustav-Heinemann Ring 125
D-81739 Munich, Germany
Tel: 49-89-627-144 0 Fax: 49-89-627-144-44
Italy
Microchip Technology SRL
Centro Direzionale Colleoni
Palazzo Taurus 1 V. Le Colleoni 1
20041 Agrate Brianza
Milan, Italy
Tel: 39-039-65791-1 Fax: 39-039-6899883
United Kingdom
Arizona Microchip Technology Ltd.
505 Eskdale Road
Winnersh Triangle
Wokingham
Berkshire, England RG41 5TU
Tel: 44 118 921 5869 Fax: 44-118 921-5820
01/18/02