background image
©
1998 Microchip Technology Inc.
DS30605A-page 1
M
Microcontroller Core Features:
• High-performance RISC CPU
• Only 35 single word instructions to learn
• All single cycle instructions except for program
branches which are two cycle
• Operating speed: DC - 20 MHz clock input
DC - 200 ns instruction cycle
• 4K x 14 words of Program Memory,
192 x 8 bytes of Data Memory (RAM)
• Interrupt capability (up to 12 internal/external
interrupt sources)
• Eight level deep hardware stack
• Direct, indirect, and relative addressing modes
• Power-on Reset (POR)
• Power-up Timer (PWRT) and
Oscillator Start-up Timer (OST)
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation
• Programmable code-protection
• Power saving SLEEP mode
• Selectable oscillator options
• Low-power, high-speed CMOS EPROM
technology
• Fully static design
• In-Circuit Serial Programming™ (ICSP)
• Wide operating voltage range: 2.5V to 5.5V
• High Sink/Source Current 25/25 mA
• Commercial, Industrial and Extended temperature
ranges
• Low-power consumption:
- < 2 mA @ 5V, 4 MHz
- 22.5
µ
A typical @ 3V, 32 kHz
- < 1
µ
A typical standby current
Pin Diagram
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
• Two Capture, Compare, PWM modules
• Capture is 16-bit, max. resolution is 12.5 ns,
Compare is 16-bit, max. resolution is 200 ns,
PWM maximum resolution is 10-bit
• 8-bit multi-channel Analog-to-Digital converter
• Synchronous Serial Port (SSP) with Enhanced
SPI
and I
2
C
• Universal Synchronous Asynchronous Receiver
Transmitter (USART/SCI)
• Parallel Slave Port (PSP) 8-bits wide, with
external RD, WR and CS controls
• Brown-out detection circuitry for
Brown-out Reset (BOR)
Device
Pins
A/D
PSP
PIC16C63A
28
NO
NO
PIC16C73B
28
YES
NO
PIC16C65B
40
NO
YES
PIC16C74B
40
YES
YES
PDIP, Windowed CERDIP
RB7
RB6
RB5
RB4
RB3
RB2
RB1
RB0/INT
V
DD
V
SS
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
RD3/PSP3
RD2/PSP2
MCLR/V
PP
RA0/AN0
RA1/AN1
RA2/AN2
RA3/AN3/V
REF
RA4/T0CKI
RA5/SS/AN4
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
V
DD
V
SS
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RD0/PSP0
RD1/PSP1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
PIC16C74B
PIC16C63A/65B/73B/74B
28/40-Pin 8-Bit CMOS Microcontrollers
background image
PIC16C63A/65B/73B/74B
DS30605A-page 2
©
1998 Microchip Technology Inc.
Pin Diagrams
PIC16C73B
MCLR/V
PP
RA0/AN0
RA1/AN1
RA2/AN2
RA3/AN3/V
REF
RA4/T0CKI
RA5/SS/AN4
V
SS
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RB7
RB6
RB5
RB4
RB3
RB2
RB1
RB0/INT
V
DD
V
SS
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
• 1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
SDIP, SOIC, SSOP, Windowed CERDIP
PDIP, Windowed CERDIP
RB7
RB6
RB5
RB4
RB3
RB2
RB1
RB0/INT
V
DD
V
SS
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
RD3/PSP3
RD2/PSP2
MCLR/V
PP
RA0
RA1
RA2
RA3
RA4/T0CKI
RA5/SS
RE0/RD
RE1/WR
RE2/CS
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V
DD
RB0/INT
RB1
RB2
RB3
RC6/TX/CK
RC5/SDO
RC4/SDI/SD
A
RD3/PSP3
RD2/PSP2
RD1/PSP1
RD0/PSP0
RC3/SCK/SCL
RC2/CCP1
RC1/T1OSI/CCP2
NC
1
2
3
4
5
6
7
8
9
10
11
33
32
31
30
29
28
27
26
25
24
23
RA3
RA2
RA1
RA0
MCLR
/V
PP
RB7
RB6
RB5
RB4
NC
NC
44
43
42
41
40
39
38
37
36
35
34
22
21
20
19
18
17
16
15
14
13
12
MQFP
PLCC
PIC16C65B
PIC16C65B
TQFP
RC1/T1OSI/CCP2
background image
PIC16C63A/65B/73B/74B
©
1998 Microchip Technology Inc.
DS30605A-page 3
Pin Diagrams (Cont.’d)
RB3
RB2
RB1
RB0/INT
V
DD
V
SS
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RA4/T0CKI
RA5/SS/AN4
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
V
DD
V
SS
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
NC
RA3/AN3/V
REF
RA2/AN2
RA1/AN1
RA0/AN0
MCLR
/V
PP
NC
RB7
RB6
RB5
RB4
NC
7
8
9
10
11
12
13
14
15
16
17
39
38
37
36
35
34
33
32
31
30
29
NC
RC6/TX/CK
RC5/SDO
RC4/SDI/SD
A
RD3/PSP3
RD2/PSP2
RD1/PSP1
RD0/PSP0
RC3/SCK/SCL
RC2/CCP1
6
5
4
3
2
1
44
43
42
41
40
28
27
26
25
24
23
22
21
20
19
18
NC
RC0/T1OSO/T1CKI
OSC2/CLKOUT
OSC1/CLKIN
V
SS
V
DD
RE2/CS/AN7
RE1/WR/AN6
RE0/RD/AN5
RA5/SS/AN4
RA4/T0CKI
RC7/RX/DT
RD4/PSP4
RD5/PSP5
RD6/PSP6
RD7/PSP7
V
SS
V
DD
RB0/INT
RB1
RB2
RB3
RC6/TX/CK
RC5/SDO
RC4/SDI/SD
A
RD3/PSP3
RD2/PSP2
RD1/PSP1
RD0/PSP0
RC3/SCK/SCL
RC2/CCP1
RC1/T1OSI/CCP2
NC
1
2
3
4
5
6
7
8
9
10
11
33
32
31
30
29
28
27
26
25
24
23
RA3/AN3/V
REF
RA2/AN2
RA1/AN1
RA0/AN0
MCLR
/V
PP
RB7
RB6
RB5
RB4
NC
NC
44
43
42
41
40
39
38
37
36
35
34
22
21
20
19
18
17
16
15
14
13
12
MQFP
PLCC
PIC16C74B
PIC16C74B
TQFP
RC1/T1OSI/CCP2
Key Features
PICmicro
Mid-Range Reference Manual
(DS33023)
PIC16C63A
PIC16C65B
PIC16C73B
PIC16C74B
Operating Frequency
DC - 20 MHz
DC - 20 MHz
DC - 20 MHz
DC - 20 MHz
Resets (and Delays)
POR, BOR
(PWRT, OST)
POR, BOR
(PWRT, OST)
POR, BOR
(PWRT, OST)
POR, BOR
(PWRT, OST)
Program Memory (14-bit words)
4K
4K
4K
4K
Data Memory (bytes)
192
192
192
192
Interrupts
10
11
11
12
I/O Ports
Ports A,B,C
Ports A,B,C,D,E Ports A,B,C
Ports A,B,C,D,E
Timers
3
3
3
3
Capture/Compare/PWM modules
2
2
2
2
Serial Communications
SSP, USART
SSP, USART
SSP, USART
SSP, USART
Parallel Communications
PSP
PSP
8-bit Analog-to-Digital Module
5 input channels 8 input channels
Instruction Set
35 Instructions
35 Instructions
35 Instructions
35 Instructions
background image
PIC16C63A/65B/73B/74B
DS30605A-page 4
©
1998 Microchip Technology Inc.
Table of Contents
1.0
Device Overview .......................................................................................................................................................................... 5
2.0
Memory Organization................................................................................................................................................................. 11
3.0
I/O Ports ..................................................................................................................................................................................... 25
4.0
Timer0 Module ........................................................................................................................................................................... 37
5.0
Timer1 Module ........................................................................................................................................................................... 39
6.0
Timer2 Module ........................................................................................................................................................................... 43
7.0
Capture/Compare/PWM (CCP) Module(s)................................................................................................................................. 45
8.0
Synchronous Serial Port (SSP) Module ..................................................................................................................................... 51
9.0
Universal Synchronous Asynchronous Receiver Transmitter (USART) .................................................................................... 61
10.0 Analog-to-Digital Converter (A/D) Module.................................................................................................................................. 75
11.0 Special Features of the CPU...................................................................................................................................................... 81
12.0 Instruction Set Summary............................................................................................................................................................ 95
13.0 Development Support ................................................................................................................................................................ 97
14.0 Electrical Characteristics.......................................................................................................................................................... 101
15.0 DC and AC Characteristics Graphs and Tables....................................................................................................................... 123
16.0 Packaging Information ............................................................................................................................................................. 125
Appendix A: Revision History ........................................................................................................................................................... 137
Appendix B: Device Differences ....................................................................................................................................................... 137
Appendix C: Conversion Considerations .......................................................................................................................................... 137
Appendix D: Migration from Baseline to Midrange Devices.............................................................................................................. 138
Appendix E: Bit/Register Cross-Reference List ................................................................................................................................ 139
Index .................................................................................................................................................................................................. 141
On-Line Support................................................................................................................................................................................. 147
Reader Response .............................................................................................................................................................................. 148
PIC16C63A/65B/73B/74B Product Identification System .................................................................................................................. 149
To Our Valued Customers
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please check our worldwide web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number, found on the bottom outside corner
of any page. The last character of the literature number is the version number. e.g., DS30000A is version A of docu-
ment DS30000.
Errata
An errata sheet may exist for current devices, describing minor operational differences (from the data sheet) and rec-
ommended workarounds. As device/documentation issues become known to us, we will publish an errata sheet. The
errata will specify the revision of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s worldwide web site at http://www.microchip.com
• Your local Microchip sales office (see last page)
• The Microchip Corporate Literature Center; U.S. FAX: (602) 786-7277
When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet
(include literature number) you are using.
Corrections to this Data Sheet
We constantly strive to improve the quality of all our products and documentation. We have spent a great deal of time
to ensure that this document is correct. However, we realize that we may have missed a few things. If you find any
information that is missing or appears in error, please:
• Fill out and mail in the reader response form in the back of this data sheet, or
• E-mail us at webmaster@microchip.com.
We appreciate your assistance in making this a better document.
background image
PIC16C63A/65B/73B/74B
©
1998 Microchip Technology Inc.
DS30605A-page 5
1.0
DEVICE OVERVIEW
This document contains device-specific information.
Additional information may be found in the PICmicro
Mid-Range Reference Manual (DS33023) which may
be obtained from your local Microchip Sales Represen-
tative or downloaded from the Microchip web site. The
Reference Manual should be considered a comple-
mentary document to this data sheet, and is highly rec-
ommended reading for a better understanding of the
device architecture and operation of the peripheral
modules.
There are four devices (PIC16C63A, PIC16C65B,
PIC16C73B, PIC16C74B) covered by this data sheet.
These devices come in 28- and 40-pin packages. The
28-pin devices do not have a Parallel Slave Port imple-
mented. The PIC16C6X devices do not have the A/D
module implemented.
The following two figures are device block diagrams
sorted by pin number; 28-pin for Figure 1-1 and 40-pin
for Figure 1-2. The 28-pin and 40-pin pinouts are listed
in Table 1-1 and Table 1-2 respectively.
FIGURE 1-1:
PIC16C63A/PIC16C73B BLOCK DIAGRAM
EPROM
Program
Memory
13
Data Bus
8
14
Program
Bus
Instruction reg
Program Counter
8 Level Stack
(13-bit)
RAM
File
Registers
Direct Addr
7
RAM Addr
(1)
9
Addr MUX
Indirect
Addr
FSR reg
STATUS reg
MUX
ALU
W reg
Power-up
Timer
Oscillator
Start-up Timer
Power-on
Reset
Watchdog
Timer
Instruction
Decode &
Control
Timing
Generation
OSC1/CLKIN
OSC2/CLKOUT
MCLR
V
DD
, V
SS
USART
PORTA
PORTB
PORTC
RB0/INT
RB7:RB1
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RC4/SDI/SDA
RC5/SDO
RC6/TX/CK
RC7/RX/DT
8
8
Brown-out
Reset
Note 1:
Higher order bits are from the STATUS register.
2:
The A/D module is not available on the PIC16C63A.
CCP1
CCP2
Synchronous
A/D
(2)
Timer0
Timer1
Timer2
Serial Port
RA4/T0CKI
RA5/SS/AN4
(2)
RA3/AN3/V
REF
(2)
RA2/AN2
(2)
RA1/AN1
(2)
RA0/AN0
(2)
8
3
4K x 14
192 x 8
background image
PIC16C63A/65B/73B/74B
DS30605A-page 6
©
1998 Microchip Technology Inc.
FIGURE 1-2:
PIC16C65B/PIC16C74B BLOCK DIAGRAM
EPROM
Program
Memory
13
Data Bus
8
14
Program
Bus
Instruction reg
Program Counter
8 Level Stack
(13-bit)
RAM
File
Registers
Direct Addr
7
RAM Addr
(1)
9
Addr MUX
Indirect
Addr
FSR reg
STATUS reg
MUX
ALU
W reg
Power-up
Timer
Oscillator
Start-up Timer
Power-on
Reset
Watchdog
Timer
Instruction
Decode &
Control
Timing
Generation
OSC1/CLKIN
OSC2/CLKOUT
MCLR
V
DD
, V
SS
PORTA
PORTB
PORTC
PORTD
PORTE
RA4/T0CKI
RA5/SS/AN4
(2)
RB0/INT
RB7:RB1
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RC4/SDI/SDA
RC5/SDO
RC6/TX/CK
RC7/RX/DT
RD7/PSP7:RD0/PSP0
RE0/RD/AN5
(2)
RE1/WR/AN6
(2)
RE2/CS/AN7
(2)
8
8
Brown-out
Reset
Note 1:
Higher order bits are from the STATUS register.
2:
The A/D module is not available on the PIC16C65B.
USART
CCP1