ChipFind - документация

Электронный компонент: PIC17C766

Скачать:  PDF   ZIP

Document Outline

1998 Microchip Technology Inc.
DS30289A-page 1
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 64K x 16 program memory
space
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 Indepen-
dent baud rate generators
Synchronous Serial Port (SSP) with SPITM and
I
2
CTM modes (including I
2
C master mode)
Device
Memory
Program (x16)
Data (x8)
PIC17C752
8K
678
PIC17C756A
16K
902
PIC17C762
8K
678
PIC17C766
16K
902
Pin Diagrams
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
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
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
RA4/RX1/DT1
RA5/TX1/CK1
RJ0
RJ1
RH6/AN14
RH7/AN15
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
NC
RH2
RH3
RH4/AN12
RH5/AN13
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
9 8 7 6 5 4 3 2 1
27
28
29
30
31
32
33 34 35 36 37 38 39 40 41 42 43
PIC17C76X
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
RA3/SDI/SDA
RA2/SS/SCL
RA1/T0CKI
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
RB6/SCK
RJ5
RJ4
RJ7
RJ6
RJ3
RJ2
RH1
RH0
67
66
65
64
63
62
61
68
74
73
72
71
70
76
79 78 77
80
83 82 81
84
75
69
84 LCC
PIC17C7XX
High-Performance 8-Bit CMOS EPROM Microcontrollers with 10-bit A/D
PIC17C7XX
DS30289A-page 2
1998 Microchip Technology Inc.
Pin Diagrams cont.'d
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
9
8
7
6
5
4
3
2
1
68
67
66
65
64
63
62
61
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
RA3/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
V
SS
V
DD
RG4/CAP3
RG5/PWM3
RG7/TX2/CK2
RG6/RX2/DT2
RA4/RX1/DT1
RA5/TX1/CK1
RB6/SCK
PIC17C75X
68-Pin LCC
64-Pin TQFP
1998 Microchip Technology Inc.
DS30289A-page 3
PIC17C7XX
PIN DIAGRAMS cont.'d
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
RA4/RX1/DT1
RA5/TX1/CK1
RJ0
RJ1
RH6/AN14
RH7/AN15
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
NC
RH2
RH3
RH4/AN12
RH5/AN13
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
9 8 7 6 5 4 3 2 1
27
28
29
30
31
32
3334353637383940414243
PIC17C76X
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
RA3/SDI/SDA
RA2/SS/SCL
RA1/T0CKI
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
RB6/SCK
RJ5
RJ4
RJ7
RJ6
RJ3
RJ2
RH1
RH0
67
66
65
64
63
62
61
68
74
73
72
71
70
76
797877
80
838281
84
75
69
84-pin LCC
3
4
5
6
7
8
9
10
11
12
13
14
15
16
48
47
46
45
44
43
42
41
40
39
64 63 62 61
21 22 23 24 25 26 27 28 29 30 31 32
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
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
RA0/INT
RB0/CAP1
RB1/CAP2
RB3/PWM2
RB4/TCLK12
RB5/TCLK3
RB2/PWM1
V
SS
OSC2/CLKOUT
OSC1/CLKIN
V
DD
RB7/SDO
RA3/SDI/SDA
RA2/SS/SCL
RA1/T0CKI
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
RA4/RX1/DT1
RA5/TX1/CK1
RB6/SCK
RJ7
RJ6
RH1
RH0
1
2
RH2
RH3
17
18
RH4/AN12
RH5/AN13
RH6/AN14
RH7/AN15
RJ1
RJ0
37
RJ3
RJ2
50
49
RJ5
RJ4
19
20
33 34 35 36
38
58
57
56
55
54
53
52
51
60
59
68 67 66 65
72 71 70 69
74 73
78 77 76 75
79
80
PIC17C76X
80-Pin QFP
PIC17C7XX
DS30289A-page 4
1998 Microchip Technology Inc.
Table of Contents
1.0
Overview ........................................................................................................................................................... 5
2.0
Device Varieties ................................................................................................................................................ 7
3.0
Architectural Overview ...................................................................................................................................... 9
4.0
On-chip Oscillator Circuit ................................................................................................................................ 15
5.0
Reset............................................................................................................................................................... 21
6.0
Interrupts......................................................................................................................................................... 31
7.0
Memory Organization...................................................................................................................................... 41
8.0
Table Reads and Table Writes ....................................................................................................................... 57
9.0
Hardware Multiplier ......................................................................................................................................... 65
10.0
I/O Ports.......................................................................................................................................................... 69
11.0
Overview of Timer Resources......................................................................................................................... 93
12.0
Timer0............................................................................................................................................................. 95
13.0
Timer1, Timer2, Timer3, PWMs and Captures ............................................................................................... 99
14.0
Universal Synchronous Asynchronous Receiver Transmitter (USART) Modules......................................... 115
15.0
Master Synchronous Serial Port (MSSP) Module......................................................................................... 131
16.0
Analog-to-Digital Converter (A/D) Module .................................................................................................... 177
17.0
Special Features of the CPU ........................................................................................................................ 189
18.0
Instruction Set Summary............................................................................................................................... 195
19.0
Development Support ................................................................................................................................... 231
20.0
PIC17C7XX Electrical Characteristics .......................................................................................................... 235
21.0
PIC17C7XX DC and AC Characteristics....................................................................................................... 265
22.0
Packaging Information .................................................................................................................................. 277
Appendix A: Modifications.......................................................................................................................................... 283
Appendix B: Compatibility .......................................................................................................................................... 283
Appendix C: What's New............................................................................................................................................ 284
Appendix D: What's Changed .................................................................................................................................... 284
Appendix E: I
2
C
TM
Overview....................................................................................................................................... 285
Appendix F: Status and Control Registers................................................................................................................. 291
On-Line Support .......................................................................................................................................................... 321
Reader Response ....................................................................................................................................................... 322
PIC17C7XX Product Identification System ................................................................................................................. 323
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 document DS30000.
Errata
An errata sheet may exist for current devices, describing minor operational differences (from the data sheet) and recommended
workarounds. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revi-
sion 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: (602) 786-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.
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.
E-mail us at webmaster@microchip.com.
We appreciate your assistance in making this a better document.
1998 Microchip Technology Inc.
DS30289A-page 5
PIC17C7XX
1.0
OVERVIEW
This data sheet covers the PIC17C7XX group of the
PIC17CXXX family of microcontrollers. The following
devices are discussed in this data sheet:
PIC17C752
PIC17C756A
PIC17C762
PIC17C766
The PIC17C7XX devices are 68/84-pin,
EPROM-based members of the versatile PIC17CXXX
family of low-cost, high-performance, CMOS,
fully-static, 8-bit microcontrollers.
All PICmicroTM microcontrollers employ an advanced
RISC architecture. The PIC17CXXX has enhanced
core features, 16-level deep stack, and multiple internal
and external interrupt sources. The separate instruc-
tion and data buses of the Harvard architecture allow a
16-bit wide instruction word with a separate 8-bit wide
data path. The two stage instruction pipeline allows all
instructions to execute in a single cycle, except for pro-
gram branches (which require two cycles). A total of 58
instructions (reduced instruction set) are available.
Additionally, a large register set gives some of the
architectural innovations used to achieve a very high
performance. For mathematical intensive applications
all devices have a single cycle 8 x 8 Hardware Multi-
plier.
PIC17CXXX microcontrollers typically achieve a 2:1
code compression and a 4:1 speed improvement over
other 8-bit microcontrollers in their class.
PIC17C7XX devices have up to 902 bytes of RAM and
66
I/O
pins. In addition, the PIC17C7XX adds several
peripheral features useful in many high performance
applications including:
Four timer/counters
Four capture inputs
Three PWM outputs
Two independent Universal Synchronous Asyn-
chronous Receiver Transmitters (USARTs)
An A/D converter (multi-channel, 10-bit resolu-
tion)
A Synchronous Serial Port
(SPI and I
2
C w/ Master mode)
These special features reduce external components,
thus reducing cost, enhancing system reliability and
reducing power consumption.
There are four oscillator options, of which the single pin
RC oscillator provides a low-cost solution, the LF oscil-
lator is for low frequency crystals and minimizes power
consumption, XT is a standard crystal, and the EC is for
external clock input.
The SLEEP (power-down) mode offers additional
power saving. Wake-up from SLEEP can occur
through several external and internal interrupts and
device resets.
A highly reliable Watchdog Timer with its own on-chip
RC oscillator provides protection against software mal-
function.
There are four configuration options for the device
operational mode:
Microprocessor
Microcontroller
Extended microcontroller
Protected microcontroller
The microprocessor and extended microcontroller
modes allow up to 64K-words of external program
memory.
The device also has Brown-out Reset circuitry. This
allows a device reset to occur if the device V
DD
falls
below the Brown-out voltage trip point (BV
DD
). The
chip will remain in Brown-out Reset until V
DD
rises
above BV
DD
.
A UV-erasable CERQUAD-packaged version (compat-
ible with PLCC) is ideal for code development while the
cost-effective One-Time Programmable (OTP) version
is suitable for production in any volume.
The PIC17C7XX fits perfectly in applications that
require extremely fast execution of complex software
programs. These include applications ranging from
precise motor control and industrial process control to
automotive, instrumentation, and telecom applications.
The EPROM technology makes customization of appli-
cation programs (with unique security codes, combina-
tions, model numbers, parameter storage, etc.) fast and
convenient. Small footprint package options (including
die sales) make the PIC17C7XX ideal for applications
with space limitations that require high performance.
High speed execution, powerful peripheral features,
flexible I/O, and low power consumption all at low cost
make the PIC17C7XX ideal for a wide range of embed-
ded control applications.
1.1
Family and Upward Compatibility
The PIC17CXXX family of microcontrollers have archi-
tectural enhancements over the PIC16C5X and
PIC16CXX families. These enhancements allow the
device to be more efficient in software and hardware
requirements. Refer to Appendix A for a detailed list of
enhancements and modifications. Code written for
PIC16C5X or PIC16CXX can be easily ported to
PIC17CXXX devices (
Appendix B
).
1.2
Development Support
The PIC17CXXX family is supported by a full-featured
macro assembler, a software simulator, an in-circuit
emulator, a universal programmer, a "C" compiler, and
fuzzy logic support tools. For additional information
see
Section 19.0
.