ChipFind - Datasheet

Part Number PIC16C745

Download:  PDF   ZIP
PIC16C745/765, 8-Bit CMOS Microcontrollers with USB
background image
©
1999 Microchip Technology Inc.
Advanced Information
DS41124A-page 1
Devices included in this data sheet:
Microcontroller Core Features:
· High-performance RISC CPU
· Only 35 single word instructions
· All single cycle instructions except for program
branches which are two cycle
· 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
· Brown-out detection circuitry for
Brown-out Reset (BOR)
· Programmable code-protection
· Power saving SLEEP mode
· Selectable oscillator options
- EC - External clock (24 MHz)
- E4 - External clock with PLL (6 MHz)
- HS - Crystal/Resonator (24 MHz)
- H4 - Crystal/Resonator with PLL (6 MHz)
· Processor clock of 24MHz derived from 6 MHz
crystal or resonator
· Fully static low-power, high-speed CMOS
· In-Circuit Serial Programming
TM
(ICSP)
· Operating voltage range
- 4.35 to 5.25V
· High Sink/Source Current 25/25 mA
· Wide temperature range
- Industrial (-40
°
C - 85
°
C)
· Low-power consumption:
- < TBD @ 5V, 6 MHz
- < TBD typical standby current
Pin Diagrams
Peripheral Features:
· Universal Serial Bus (USB 1.1)
· 64 bytes of USB dual port RAM
· 22 (PIC16C745) or 33 (PIC16C765) I/O pins
- Individual direction control
- 1 high voltage open drain (RA4)
- 8 PORTB pins with:
- Interrupt on change control (RB<7:4> only)
- Weak pull up control
- 3 pins dedicated to USB
· 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
· 2 Capture, Compare and PWM modules
- Capture is 16 bit, max. resolution is 10.4 ns
- Compare is 16 bit, max. resolution is 167 ns
- PWM maximum resolution is 10 bit
· 8-bit multi-channel Analog-to-Digital converter
· Universal Synchronous Asynchronous Receiver
Transmitter (USART/SCI)
· Parallel Slave Port (PSP) 8-bits wide, with exter-
nal RD, WR and CS controls (PIC16C765 only)
· PIC16C745
· PIC16C765
Device
Memory
Pins
A/D
Resolution
A/D
Channels
Program
x14
Data
x8
PIC16C745
8K
256
28
8
5
PIC16C765
8K
256
40
8
8
MCLR/V
PP
RA0/AN0
RA1/AN1
RA2/AN2
RA3/AN3/V
REF
RA4/T0CKI
RA5/AN4
Vss
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
V
USB
RB7
RB6
RB5
RB4
RB3
RB2
RB1
RB0/INT
V
DD
Vss
RC7/RX/DT
RC6/TX/CK
D+
D-
· 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
PIC
1
6
C
745
28-Pin DIP, SOIC
PIC16C745/765
8-Bit CMOS Microcontrollers with USB
background image
PIC16C745/765
DS41124A-page 2
Advanced Information
©
1999 Microchip Technology Inc.
RB3
RB2
RB1
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
V
DD
V
SS
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
NC
R
A
3/A
N
3/
V
RE
F
RA2
/
AN2
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
RC
6
/
T
X
/CK
D+
D-
RD3
/
P
S
P
3
RD2
/
P
S
P
2
RD1
/
P
S
P
1
RD0
/
P
S
P
0
V
US
B
RC2
/CCP1
6 5 4 3 2 1
44 43 42 41 40
28
27
26
25
24
23
22
21
20
19
18
PIC16C765
44-Pin PLCC
RC1
/T
1
O
SI/CCP2
NC
RC0/T1OSO/T1CKI
OSC2/CLKOUT
OSC1/CLKIN
V
SS
V
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
RB2
RB3
RC6
/T
X
/
CK
D+ D- RD3
/
PSP3
RD2
/
PSP2
RD1
/
PSP1
RD0
/
PSP0
V
US
B
RC2
/CCP1
RC1
/T
1
O
SI/
CCP
2
NC
1
2
3
4
5
6
7
8
9
10
11
33
32
31
30
29
28
27
26
25
24
23
RA3
/
A
N
3
/
V
RE
F
RA2
/
AN2
RA1
/
AN1
RA0
/
AN0
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
PIC16C765
44-Pin TQFP
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
D+
D-
RD3/PSP3
RD2/PSP2
MCLR/V
PP
RA0/AN0
RA1/AN1
RA2/AN2
RA3/AN3/V
REF
RA4/T0CKI
RA5/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
V
USB
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
P
I
C
1
6C
76
5
40-Pin PDIP
Key Features
PICmicro
TM
Mid-Range Reference Manual
(DS33023)
PIC16C745
PIC16C765
Operating Frequency
6 MHz or 24 MHz
6 MHz or 24 MHz
Resets (and Delays)
POR, BOR (PWRT, OST)
POR, BOR (PWRT, OST)
Program Memory (14-bit words)
8K
8K
Data Memory (bytes)
256
256
Dual Port Ram
64
64
Interrupt Sources
11
12
I/O Ports
22 (Ports A, B, C)
33 (Ports A, B, C, D, E)
Timers
3
3
Capture/Compare/PWM modules
2
2
Analog-to-Digital Converter Module
5 channel x 8 bit
8 channel x 8 bit
Parallel Slave Port
--
Yes
Serial Communication
USB, USART/SCI
USB, USART/SCI
Brown Out Detect Reset
Yes
Yes
background image
©
1999 Microchip Technology Inc.
Advanced Information
DS41124A-page 3
PIC16C745/765
Table of Contents
1.0
General Description .............................................................................................................................................. 5
2.0
PIC16C745/765 Device Varieties ......................................................................................................................... 7
3.0
Architectural Overview .......................................................................................................................................... 9
4.0
Memory Organization.......................................................................................................................................... 15
5.0
I/O Ports.............................................................................................................................................................. 31
6.0
Timer0 Module .................................................................................................................................................... 43
7.0
Timer1 Module .................................................................................................................................................... 45
8.0
Timer2 Module .................................................................................................................................................... 49
9.0
Capture/Compare/PWM Modules ....................................................................................................................... 51
10.0 Universal Serial Bus............................................................................................................................................ 57
11.0 Universal Synchronous Asynchronous Receiver Transmitter (USART) ............................................................. 75
12.0 Analog-to-Digital Converter (A/D) Module .......................................................................................................... 89
13.0 Special Features of the CPU .............................................................................................................................. 95
14.0 Instruction Set Summary................................................................................................................................... 109
15.0 Development Support ....................................................................................................................................... 117
16.0 Electrical Characteristics................................................................................................................................... 123
17.0 DC and AC Characteristics Graphs and Tables ............................................................................................... 141
18.0 Packaging Information ...................................................................................................................................... 143
Index .......................................................................................................................................................................... 151
On-Line Support.......................................................................................................................................................... 155
Reader Response ....................................................................................................................................................... 156
Product Identification System ..................................................................................................................................... 157
To Our Valued Customers
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.
New Customer Notification System
Register on our web site (www.microchip.com/cn) to receive the most current information on our products.
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: (480) 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.
background image
PIC16C745/765
DS41124A-page 4
Advanced Information
©
1999 Microchip Technology Inc.
NOTES:
background image
©
1999 Microchip Technology Inc.
Advanced Information
DS41124A-page 5
PIC16C745/765
1.0
GENERAL DESCRIPTION
The PIC16C745/765 devices are
low-cost, high-perfor-
mance, CMOS, fully-static, 8-bit microcontrollers in the
PIC16CXX mid-range family.
All PICmicro
®
microcontrollers employ an advanced
RISC architecture. The PIC16CXX microcontroller fam-
ily has enhanced core features, eight-level deep stack
and multiple internal and external interrupt sources.
The separate instruction and data buses of the Harvard
architecture allow a 14-bit wide instruction word with
the separate 8-bit wide data. The two stage instruction
pipeline allows all instructions to execute in a single
cycle, except for program branches, which require two
cycles. A total of 35 instructions (reduced instruction
set) are available. Additionally, a large register set gives
some of the architectural innovations used to achieve a
very high performance.
The PIC16C745 device has 22 I/O pins. The
PIC16C765 device has 33 I/O pins. Each device has
256 bytes of RAM. In addition, several peripheral fea-
tures are available including: three timer/counters, two
Capture/Compare/PWM modules and two serial ports.
The Universal Serial Bus (USB 1.1) peripheral pro-
vides bus communications. The Universal Synchro-
nous Asynchronous Receiver Transmitter (USART) is
also known as the Serial Communications Interface or
SCI. Also, a 5-channel high-speed 8-bit A/D is pro-
vided on the PIC16C745, while the PIC16C765 offers
8 channels. The 8-bit resolution is ideally suited for
applications requiring a low-cost analog interface,
(e.g., thermostat control, pressure sensing, etc).
The PIC16C745/765 devices have special features to
reduce external components, thus reducing cost,
enhancing system reliability and reducing power con-
sumption. There are 4 oscillator options, of which EC is
for the external regulated clock source, E4 is for the
external regulated clock source with PLL, HS is for the
high speed crystals/resonators and H4 is for high
speed crystals/resontators with PLL. The SLEEP
(power-down) feature provides a power-saving mode.
The user can wake up the chip from SLEEP through
several external and internal interrupts and resets.
A highly reliable Watchdog Timer (WDT), with a dedi-
cated on-chip RC oscillator, provides protection against
software lock-up, and also provides one way of waking
the device from SLEEP.
A UV erasable CERDIP packaged version is ideal for
code development, while the cost-effective One-Time-
Programmable (OTP) version is suitable for production
in any volume.
The PIC16C745/765 devices fit nicely in many applica-
tions ranging from security and remote sensors to appli-
ance controls and automotives. The EPROM
technology makes customization of application pro-
grams (data loggers, industrial controls, UPS) extremely
fast and convenient. The small footprint packages make
this microcontroller series perfect for all applications
with space limitations. Low cost, low power, high perfor-
mance, ease of use and I/O flexibility make the
PIC16C745/765 devices very versatile, even in areas
where no microcontroller use has been considered
before (e.g., timer functions, serial communication, cap-
ture and compare, PWM functions and coprocessor
applications).
1.1
Family and Upward Compatibility
Users familiar with the PIC16C5X microcontroller fam-
ily will realize that this is an enhanced version of the
PIC16C5X architecture. Code written for the
PIC16C5X can be easily ported to the PIC16CXX fam-
ily of devices.
1.2
Development Support
PICmicro
®
devices are supported by the complete line
of Microchip Development tools.
Please refer to Section 15.0 for more details about
Microchip's development tools.

Document Outline