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

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

Скачать:  PDF   ZIP

Document Outline

1999 Microchip Technology Inc.
Advance Information
DS30275A-page 1
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,
256 x 8 bytes of Data Memory (RAM)
Interrupt capability (up to 14 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
TM
(ISCP
)
Wide operating voltage range: 2.5V to 5.5V
High Sink/Source Current 25/25 mA
Commercial and Industrial 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 max. resolution is 10-bit
12-bit multi-channel Analog-to-Digital converter
On-chip absolute bandgap voltage reference
generator
Synchronous Serial Port (SSP) with SPI
TM
(Master
Mode) and I
2
C
TM
Universal Synchronous Asynchronous Receiver
Transmitter, supports high/low speeds and 9-bit
address mode (USART/SCI)
Parallel Slave Port (PSP) 8-bits wide, with
external RD, WR and CS controls
Programmable Brown-out detection circuitry for
Brown-out Reset (BOR)
Programmable Low-voltage detection circuitry
600 mil. PDIP, Windowed CERDIP
RB7
RB6
RB5
RB4
RB3/AN9/LVDIN
RB2/AN8
RB1/SS
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/V
REF
-/VRL
RA3/AN3/V
REF
+/VRH
RA4/T0CKI
RA5/AN4
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
AV
DD
AV
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
PIC1
6C77
4
*
*
*
*
*
*
PIC16C77X
28/40-Pin, 8-Bit CMOS Microcontrollers w/ 12-Bit A/D
*
Enhanced features
This is an advanced copy of the data sheet and therefore the contents and
specifications are subject to change based on device characterization.
PIC16C77X
DS30275A-page 2
Advance Information
1999 Microchip Technology Inc.
Pin Diagrams
MCLR/V
PP
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-/VRL
RA3/AN3/VREF+/VRH
RA4/T0CKI
AV
DD
AV
SS
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RB7
RB6
RB5
RB4
RB3/AN9/LVDIN
RB2/AN8
RB1/SS
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
300 mil. SDIP, SOIC, Windowed CERDIP, SSOP
PIC
16C7
7
3
RB3/AN9/LVDIN
RB2/AN8
RB1/SS
RB0/INT
V
DD
V
SS
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RA4/T0CKI
RA5/AN4
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
AV
DD
AV
SS
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
NC
RA3
/
AN3
/
V
RE
F
+/VRH
RA2
/
AN2
/
V
RE
F
-/V
R
L
RA1
/
AN1
RA0
/
AN0
MC
L
R
/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
/T
X/CK
RC5
/SDO
RC4
/
S
DI
/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
AV
SS
AV
DD
RE2/CS/AN7
RE1/WR/AN6
RE0/RD/AN5
RA5/AN4
RA4/T0CKI
RC7/RX/DT
RD4/PSP4
RD5/PSP5
RD6/PSP6
RD7/PSP7
V
SS
V
DD
RB0/INT
RB1/SS
RB2/AN8
RB3/AN9/LVDIN
RC6
/T
X/CK
RC5
/SDO
RC4
/S
DI/S
D
A
RD3
/
PSP3
RD2
/
PSP2
RD1
/
PSP1
RD0
/
PSP0
RC3
/SCK/SCL
RC2
/CC
P
1
RC1
/
T
1
O
SI/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
RE
F
+/
V
R
H
R
A
2/A
N
2/
V
RE
F
-/V
R
L
RA
1
/
A
N
1
RA
0
/
A
N
0
MC
L
R
/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
TQFP
PIC16C774
PIC16C774
RC1
/T
1
O
SI/CCP2
PIC16C77X
1999 Microchip Technology Inc.
Advance Information
DS30275A-page 3
Key Features
PICmicroTM Mid-Range Reference Manual
(DS33023)
PIC16C773
PIC16C774
Operating Frequency
DC - 20 MHz
DC - 20 MHz
Resets (and Delays)
POR, BOR, MCLR, WDT
(PWRT, OST)
POR, BOR, MCLR, WDT
(PWRT, OST)
Program Memory (14-bit words)
4K
4K
Data Memory (bytes)
256
256
Interrupts
13
14
I/O Ports
Ports A,B,C
Ports A,B,C,D,E
Timers
3
3
Capture/Compare/PWM modules
2
2
Serial Communications
MSSP, USART
MSSP, USART
Parallel Communications
--
PSP
12-bit Analog-to-Digital Module
6 input channels
10 input channels
Instruction Set
35 Instructions
35 Instructions
PIC16C77X
DS30275A-page 4
Advance Information
1999 Microchip Technology Inc.
Table of Contents
1.0 Device Overview ............................................................................................................................................................................ 5
2.0 Memory Organization................................................................................................................................................................... 11
3.0 I/O Ports ....................................................................................................................................................................................... 27
4.0 Timer0 Module ............................................................................................................................................................................. 39
5.0 Timer1 Module ............................................................................................................................................................................. 41
6.0 Timer2 Module ............................................................................................................................................................................. 45
7.0 Capture/Compare/PWM (CCP) Module(s)................................................................................................................................... 47
8.0 Master Synchronous Serial Port (MSSP) Module ........................................................................................................................ 53
9.0 Addressable Universal Synchronous Asynchronous Receiver Transmitter (USART) ................................................................. 97
10.0 Voltage Reference Module and Low-voltage Detect.................................................................................................................. 113
11.0 Analog-to-Digital Converter (A/D) Module ................................................................................................................................. 117
12.0 Special Features of the CPU ..................................................................................................................................................... 127
13.0 Instruction Set Summary............................................................................................................................................................ 143
14.0 Development Support ................................................................................................................................................................ 145
15.0 Electrical Characteristics............................................................................................................................................................ 151
16.0 DC and AC Characteristics Graphs and Tables ........................................................................................................................ 173
17.0 Packaging Information ............................................................................................................................................................... 175
Appendix A:
Revision History ......................................................................................................................................................... 187
Appendix B:
Device Differences..................................................................................................................................................... 187
Appendix C:
Conversion Considerations........................................................................................................................................ 187
Index .................................................................................................................................................................................................. 189
Bit/Register Cross-Reference List...................................................................................................................................................... 196
On-Line Support................................................................................................................................................................................. 197
Reader Response .............................................................................................................................................................................. 198
PIC16C77X Product Identification System......................................................................................................................................... 199
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 liter-
ature 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.
PIC16C77X
1999 Microchip Technology Inc.
Advance Information
DS30275A-page 5
1.0
DEVICE OVERVIEW
This document contains device-specific information.
Additional information may be found in the PICmicroTM
Mid-Range Reference Manual, (DS33023), which may
be obtained from your local Microchip Sales Represen-
tative or downloaded from the Microchip website. 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 a two devices (PIC16C773 and PIC16C774)
covered by this datasheet. The PIC16C773 devices
come in 28-pin packages and the PIC16C774 devices
come in 40-pin packages. The 28-pin devices do not
have a Parallel Slave Port 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:
PIC16C773 BLOCK DIAGRAM
EPROM
Program
Memory
4K x 14
13
Data Bus
8
14
Program
Bus
Instruction reg
Program Counter
8 Level Stack
(13-bit)
RAM
File
Registers
256 x 8
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
OSC1/CLKIN
OSC2/CLKOUT
MCLR
V
DD
, V
SS
PORTA
PORTB
PORTC
RA4/T0CKI
RB0/INT
RB7:RB4
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.
USART
CCP1,2
Synchronous
Timer0
Timer1
Timer2
Serial Port
RA3/AN3/V
REF
+/VRH
RA2/AN2/V
REF
-/VRL
RA1/AN1
RA0/AN0
8
3
Timing
Generation
12-bit
ADC
Precision
Reference
RB1/SS
RB2/AN8
RB3/AN9/LVDIN
Low-voltage
Detect
AV
DD
AV
SS