PIC17C7XX.pdf

(5419 KB) Pobierz
PIC17C7XX
High-Performance 8-bit CMOS EPROM Microcontrollers with 10-bit A/D
Microcontroller Core Features:
• Only 58 single word instructions to learn
• All single cycle instructions (121 ns), except for
program branches and table reads/writes which
are two-cycle
• Operating speed:
- DC - 33 MHz clock input
- DC - 121 ns instruction cycle
• 8 x 8 Single-Cycle Hardware Multiplier
• Interrupt capability
• 16 level deep hardware stack
• Direct, indirect, and relative addressing modes
• Internal/external program memory execution,
capable of addressing 64 K x 16 program memory
space
Memory
Device
Program (x16)
PIC17C752
PIC17C756A
PIC17C762
PIC17C766
8K
16 K
8K
16 K
Data (x8)
678
902
678
902
Pin Diagrams
RH1
RH0
RD2/AD10
RD3/AD11
RD4/AD12
RD5/AD13
RD6/AD14
RD7/AD15
RC0/AD0
V
DD
NC
V
SS
RC1/AD1
RC2/AD2
RC3/AD3
RC4/AD4
RC5/AD5
RC6/AD6
RC7/AD7
RJ7
RJ6
84 PLCC
RH2
RH3
RD1/AD9
RD0/AD8
RE0/ALE
RE1/OE
RE2/WR
RE3/CAP4
MCLR/V
PP
TEST
NC
V
SS
V
DD
RF7/AN11
RF6/AN10
RF5/AN9
RF4/AN8
RF3/AN7
RF2/AN6
RH4/AN12
RH5/AN13
1110 9 8 7 6 5 4 3 2 1 84 838281 807978777675
12
74
13
73
14
72
15
71
70
16
69
17
68
18
67
19
66
20
65
21
64
22
63
23
62
24
61
25
60
26
59
27
58
28
57
29
56
30
31
55
32
54
33343536373839404142434445 464748 49 50 51 52 53
PIC17C76X
RJ5
RJ4
RA0/INT
RB0/CAP1
RB1/CAP2
RB3/PWM2
RB4/TCLK12
RB5/TCLK3
RB2/PWM1
V
SS
NC
OSC2/CLKOUT
OSC1/CLKIN
V
DD
RB7/SDO
RB6/SCK
RA3/SDI/SDA
RA2/SS/SCL
RA1/T0CKI
RJ3
RJ2
Special Microcontroller Features:
• 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
• Brown-out Reset
• Code protection
• Power saving SLEEP mode
• Selectable oscillator options
Peripheral Features:
Up to 66 I/O pins with individual direction control
10-bit, multi-channel Analog-to-Digital converter
High current sink/source for direct LED drive
Four capture input pins
- Captures are 16-bit, max resolution 121 ns
Three PWM outputs (resolution is 1 to 10-bits)
TMR0: 16-bit timer/counter with
8-bit programmable prescaler
TMR1: 8-bit timer/counter
TMR2: 8-bit timer/counter
TMR3: 16-bit timer/counter
Two Universal Synchronous Asynchronous
Receiver Transmitters (USART/SCI) with
independent baud rate generators
Synchronous Serial Port (SSP) with SPI™ and
I
2
C™ modes (including I
2
C Master mode)
CMOS Technology:
• Low power, high speed CMOS EPROM
technology
• Fully static design
• Wide operating voltage range (3.0V to 5.5V)
• Commercial and Industrial temperature ranges
• Low power consumption
- < 5 mA @ 5V, 4 MHz
- 100 µA typical @ 4.5V, 32 kHz
- < 1 µA typical standby current @ 5V
2000 Microchip Technology Inc.
RH6/AN14
RH7/AN15
RF1/AN5
RF0/AN4
AV
DD
AV
SS
RG3/AN0/V
REF
+
RG2/AN1/V
REF
-
RG1/AN2
RG0/AN3
NC
V
SS
V
DD
RG4/CAP3
RG5/PWM3
RG7/TX2/CK2
RG6/RX2/DT2
RA5/TX1/CK1
RA4/RX1/DT1
RJ0
RJ1
DS30289B-page 1
PIC17C7XX
Pin Diagrams cont.’d
68-Pin PLCC
RD2/AD10
RD3/AD11
RD4/AD12
RD5/AD13
RD6/AD14
RD7/AD15
RC0/AD0
V
DD
NC
V
SS
RC1/AD1
RC2/AD2
RC3/AD3
RC4/AD4
RC5/AD5
RC6/AD6
RC7/AD7
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
9
8
7
6
5
4
3
2
1
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
RD1/AD9
RD0/AD8
RE0/ALE
RE1/OE
RE2/WR
RE3/CAP4
MCLR/V
PP
TEST
NC
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T2
RA5/TX1/CK1
RA4/RX1/DT1
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
DS30289B-page 2
2000 Microchip Technology Inc.
PIC17C7XX
Pin Diagrams cont.’d
84-pin PLCC
RH1
RH0
RD2/AD10
RD3/AD11
RD4/AD12
RD5/AD13
RD6/AD14
RD7/AD15
RC0/AD0
V
DD
NC
V
SS
RC1/AD1
RC2/AD2
RC3/AD3
RC4/AD4
RC5/AD5
RC6/AD6
RC7/AD7
RJ7
RJ6
RH2
RH3
RD1/AD9
RD0/AD8
RE0/ALE
RE1/OE
RE2/WR
RE3/CAP4
MCLR/V
PP
TEST
NC
V
SS
V
DD
RF7/AN11
RF6/AN10
RF5/AN9
RF4/AN8
RF3/AN7
RF2/AN6
RH4/AN12
RH5/AN13
11 10 9 8 7 6 5 4 3 2 1 84 83828180 79787776 75
12
74
13
73
14
72
15
71
16
70
69
17
68
18
67
19
66
20
65
21
64
22
63
23
62
24
61
25
60
26
59
27
58
28
57
29
56
30
31
55
32
54
333435363738394041424344 4546 4748 49 50 51 52 53
PIC17C76X
RJ5
RJ4
RA0/INT
RB0/CAP1
RB1/CAP2
RB3/PWM2
RB4/TCLK12
RB5/TCLK3
RB2/PWM1
V
SS
NC
OSC2/CLKOUT
OSC1/CLKIN
V
DD
RB7/SDO
RB6/SCK
RA3/SDI/SDA
RA2/SS/SCL
RA1/T0CKI
RJ3
RJ2
RH2
RH3
RD1/AD9
RD0/AD8
RE0/ALE
RE1/OE
RE2/WR
RE3/CAP4
MCLR/V
PP
TEST
V
SS
V
DD
RF7/AN11
RF6/AN10
RF5/AN9
RF4/AN8
RF3/AN7
RF2/AN6
RH4/AN12
RH5/AN13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
RH1
RH0
RD2/AD10
RD3/AD11
RD4/AD12
RD5/AD13
RD6/AD14
RD7/AD15
RC0/AD0
V
DD
V
SS
RC1/AD1
RC2/AD2
RC3/AD3
RC4/AD4
RC5/AD5
RC6/AD6
RC7/AD7
RJ7
RJ6
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
RJ5
RJ4
RA0/INT
RB0/CAP1
RB1/CAP2
RB3/PWM2
RB4/TCLK12
RB5/TCLK3
RB2/PWM1
V
SS
OSC2/CLKOUT
OSC1/CLKIN
V
DD
RB7/SDO
RB6/SCK
RA3/SDI/SDA
RA2/SS/SCL
RA1/T0CKI
RJ3
RJ2
80-Pin TQFP
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 3637 38 39 40
2000 Microchip Technology Inc.
RH6/AN14
RH7/AN15
RF1/AN5
RF0/AN4
AV
DD
AV
SS
RG3/AN0/V
REF
+
RG2/AN1/V
REF
-
RG1/AN2
RG0/AN3
V
SS
V
DD
RG4/CAP3
RG5/PWM3
RG7/TX2/CK2
RG6/RX2/DT2
RA5/TX1/CK1
RA4/RX1/DT1
RJ0
RJ1
RH6/AN14
RH7/AN15
RF1/AN5
RF0/AN4
AV
DD
AV
SS
RG3/AN0/V
REF
+
RG2/AN1/V
REF
-
RG1/AN2
RG0/AN3
NC
V
SS
V
DD
RG4/CAP3
RG5/PWM3
RG7/TX2/CK2
RG6/RX2/DT2
RA5/TX1/CK1
RA4/RX1/DT1
RJ0
RJ1
PIC17C76X
DS30289B-page 3
PIC17C7XX
Table of Contents
1.0
Overview ........................................................................................................................................................ 7
2.0
Device Varieties ............................................................................................................................................. 9
3.0
Architectural Overview ................................................................................................................................. 11
4.0
On-chip Oscillator Circuit ............................................................................................................................. 17
5.0
Reset............................................................................................................................................................ 23
6.0
Interrupts...................................................................................................................................................... 33
7.0
Memory Organization................................................................................................................................... 43
8.0
Table Reads and Table Writes .................................................................................................................... 59
9.0
Hardware Multiplier ...................................................................................................................................... 67
10.0
I/O Ports....................................................................................................................................................... 71
11.0
Overview of Timer Resources...................................................................................................................... 95
12.0
Timer0.......................................................................................................................................................... 97
13.0
Timer1, Timer2, Timer3, PWMs and Captures .......................................................................................... 101
14.0
Universal Synchronous Asynchronous Receiver Transmitter (USART) Modules...................................... 117
15.0
Master Synchronous Serial Port (MSSP) Module...................................................................................... 133
16.0
Analog-to-Digital Converter (A/D) Module ................................................................................................. 179
17.0
Special Features of the CPU ..................................................................................................................... 191
18.0
Instruction Set Summary............................................................................................................................ 197
19.0
Development Support ................................................................................................................................ 233
20.0
PIC17C7XX Electrical Characteristics ....................................................................................................... 239
21.0
PIC17C7XX DC and AC Characteristics.................................................................................................... 267
22.0
Packaging Information ............................................................................................................................... 281
Appendix A: Modifications ....................................................................................................................................... 287
Appendix B: Compatibility........................................................................................................................................ 287
Appendix C: What’s New ......................................................................................................................................... 288
Appendix D: What’s Changed.................................................................................................................................. 288
Index .......................................................................................................................................................................... 289
On-Line Support .......................................................................................................................................................... 299
Reader Response ....................................................................................................................................................... 300
Product Identification System...................................................................................................................................... 301
DS30289B-page 4
2000 Microchip Technology Inc.
PIC17C7XX
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Micro-
chip products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined
and enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department
via E-mail at
docerrors@mail.microchip.com
or fax the
Reader Response Form
in the back of this data sheet to (480) 792-
4150. We welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at 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 document DS30000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. 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; http://www.microchip.com
• Your local Microchip sales office (see last page)
• The Microchip Corporate Literature Center; U.S. FAX: (480) 792-7277
When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet (include lit-
erature number) you are using.
Customer Notification System
Register on our web site at
www.microchip.com/cn
to receive the most current information on all of our products.
2000 Microchip Technology Inc.
DS30289B-page 5
Zgłoś jeśli naruszono regulamin