Cet ouvrage fait partie de la bibliothèque YouScribe
Obtenez un accès à la bibliothèque pour le lire en ligne
En savoir plus

Microcontrol High perform Only sing

De
165 pages
Niveau: Secondaire, CAP
? 2000 Microchi Devices inclu Microcontrol • High-perform  Only 35 sing  All single cyc branches wh  Interrupt cap interrupt sou  Eight level d  Direct, indire  Power-on Re  Power-up Tim Timer (OST)  Watchdog Ti oscillator for  Brown-out de Brown-out R  Programmab  Power savin  Selectable o - EC - Exter - E4 - Extern - HS - Cryst - H4 - Cryst  Processor cl crystal or res  Fully static lo  In-Circuit Se  Operating vo - 4.35 to 5.2  High Sink/So  Wide temper - Industrial (  Low-power c - ~ 16 mA @ - 100 µA typ  PIC16C745 Device Pr PIC16C745 PIC16C765 745cov.book Page 1 Wednesday, Augus ded in this data sheet: ler Core Features: ance RISC CPU le word instructions le instructions except for program ich are two cycle ability (up to 12 internal/external rces) eep hardware stack ct and relative addressing modes set (POR) er (PWRT) and Oscillator Start-up mer (WDT) with its own on-chip RC reliable operation tection circuitry for eset (BOR) le code-protection g SLEEP mode scillator options nal clock (24 MHz) al clock with PLL (6 MHz) al/Resonator (24 MHz) al/Resonator with PLL (6 MHz) Pin Diagrams Peripheral Features:  Universal Serial Bus (

  • channel high-speed

  • bit

  • software lock-up

  • high-perform 

  • rb3 rb2

  • bit prescaler 

  • cmos pic16cxx mid

  • ec - exter - e4 - extern - hs - cryst - h4 - cryst


Voir plus Voir moins

Vous aimerez aussi

745cov.book Page 1 Wednesday, August 2, 2000 8:24 AM
PIC16C745/765
8-Bit CMOS Microcontrollers with USB
Devices included in this data sheet: Pin Diagrams
PIC16C745 PIC16C765 28-Pin DIP, SOIC
Microcontroller Core Features: 1 28 RB7MCLR/VPP
2 27 RB6RA0/AN0• High-performance RISC CPU
RA1/AN1 3 26 RB5
RB4 Only 35 single word instructions RA2/AN2 4 25
RA3/AN3/VREF 5 24 RB3
RB2Memory RA4/T0CKI 6 23
RA5/AN4 RB1A/D A/D 7 22
Device Pins RB0/INTVss 8 21Program Data Resolution Channels
VDDOSC1/CLKIN 9 20x14 x8
VssOSC2/CLKOUT 10 19
11 18 RC7/RX/DTPIC16C745 8K 256 28 8 5 RC0/T1OSO/T1CKI
RC6/TX/CKRC1/T1OSI/CCP2 12 17
PIC16C765 8K 256 40 8 8 13 16 D+RC2/CCP1
14 15 D-VUSB All single cycle instructions except for program
branches which are two cycle
Interrupt capability (up to 12 internal/external Peripheral Features:
interrupt sources)
Universal Serial Bus (USB 1.1)
Eight level deep hardware stack
- Soft attach/detach
Direct, indirect and relative addressing modes 64 bytes of USB dual port RAM
Power-on Reset (POR)
22 (PIC16C745) or 33 (PIC16C765) I/O pins
Power-up Timer (PWRT) and Oscillator Start-up
- Individual direction control
Timer (OST)
- 1 high voltage open drain (RA4)
Watchdog Timer (WDT) with its own on-chip RC
- 8 PORTB pins with:
oscillator for reliable operation
- Interrupt-on-change control (RB<7:4> only) Brown-out detection circuitry for
- Weak pull-up controlBrown-out Reset (BOR)
- 3 pins dedicated to USB Programmable code-protection
Timer0: 8-bit timer/counter with 8-bit prescaler Power saving SLEEP mode
Timer1: 16-bit timer/counter with prescaler Selectable oscillator options
can be incremented during SLEEP via external
- EC - External clock (24 MHz)
crystal/clock
- E4 - External clock with PLL (6 MHz)
Timer2: 8-bit timer/counter with 8-bit period
- HS - Crystal/Resonator (24 MHz)
register, prescaler and postscaler
- H4 - Crystal/Resonator with PLL (6 MHz)
2 Capture, Compare and PWM modules
Processor clock of 24 MHz derived from 6 MHz - Capture is 16-bit, max. resolution is 10.4 ns
crystal or resonator
- Compare is 16-bit, max. resolution is 167 ns
Fully static low-power, high-speed CMOS
- PWM maximum resolution is 10-bit
In-Circuit Serial Programming (ICSP)
8-bit multi-channel Analog-to-Digital converter
Operating voltage range
Universal Synchronous Asynchronous Receiver
- 4.35 to 5.25V
Transmitter (USART/SCI)
High Sink/Source Current 25/25 mA
Parallel Slave Port (PSP) 8-bits wide, with exter-
Wide temperature range nal RD, WR and CS controls (PIC16C765 only)
- Industrial (-40°C - 85°C)
Low-power consumption:
- ~ 16 mA @ 5V, 24 MHz
-100 µA typical standby current
 2000 Microchip Technology Inc. Preliminary DS41124C-page 1
PIC16C745745cov.book Page 2 Wednesday, August 2, 2000 8:24 AM
PIC16C745/765
44-Pin PLCC 44-Pin TQFP
RA4/T0CKI 7 39 RB3
RA5/AN4 8 38 RB2
RC7/RX/DT 1RE0/RD/AN5 RB1 33 NC9 37
RD4/PSP4 2 32RE1/WR/AN6 RB0/INT10 36 RC0/T1OSO/T1CKI
RD5/PSP5 3 31RE2/CS/AN7 VDD11 35 OSC2/CLKOUT4RD6/PSP6 30VDD 12 34 VSS OSC1/CLKINPIC16C765 RD7/PSP7 5 29VSS 13 33 RD7/PSP7 VSS
VSS 6 28OSC1/CLKIN 14 32 RD6/PSP6 PIC16C765 VDD
VDD 7 27OSC2/CLKOUT 15 31 RD5/PSP5 RE2/CS/AN7
RB0/INT 8 26RD4/PSP4 RE1/WR/AN6RC0/T1OSO/T1CKI 16 30
RB1 9 25RC7/RX/DT RE0/RD/AN5NC 17 29 RB2 10 24 RA5/AN4
RB3 11 23 RA4/T0CKI
40-Pin DIP
MCLR/VPP 1 40 RB7
RA0/AN0 2 39 RB6
RA1/AN1 3 38 RB5
RA2/AN2 4 37 RB4
RA3/AN3/VREF 5 36 RB3
RA4/T0CKI RB26 35
RA5/AN4 7 34 RB1
RE0/RD/AN5 8 33 RB0/INT
RE1/WR/AN6 9 32 VDD
RE2/CS/AN7 10 31 VSS
VDD 11 30 RD7/PSP7
VSS 12 29 RD6/PSP6
OSC1/CLKIN 13 28 RD5/5
OSC2/CLKOUT RD4/PSP414 27
RC0/T1OSO/T1CKI 15 26 RC7/RX/DT
RC1/T1OSI/CCP2 RC6/TX/CK16 25
RC2/CCP1 D+17 24
VUSB 18 23 D-
RD0/PSP0 RD3/PSP319 22
RD1/1 20 21 RD2/2
Key Features
TM PIC16C745 PIC16C765PICmicro Mid-Range Reference Manual
(DS33023)
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
DS41124C-page 2 Preliminary  2000 Microchip Technology Inc.
RA3/AN3/VREF
RC1/T1OSI/CCP2
18 6
RA2/AN2
RC2/CCP1
19 5
RA1/AN1
VUSB 4
20
RA0/AN0
RD0/PSP0 3
21
MCLR/VPP
RD1/PSP1 2
22
PIC16C765
RD2/PSP2 1 NC
23
RB7
RD3/PSP3 24 44
RB6
D- 25 43
RB5
D+ 26 42
41 RB4
RC6/TX/CK 27
40 NC
NC 28
RC6/TX/CK
NC 12 44
D+
NC 13 43
D-
RB4 14 42
RD3/PSP3
RB5 15 41
RD2/PSP2
RB6 16
40
RD1/PSP1
RB7 17 39
RD0/PSP0
MCLR/VPP 18
38
VUSB
RA0/AN0 19 37
RC2/CCP1
RA1/AN1 20 36
RC1/T1OSI/CCP2
RA2/AN2 21 35
NC
RA3/AN3/VREF 22 34745cov.book Page 3 Wednesday, August 2, 2000 8:24 AM
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 Timer1e.............................. 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) ...................................77
12.0 Analog-to-Digital Converter (A/D) Module .............................................................................. 91
13.0 Special Features of the CPU .............................................................................................................................. 99
14.0 Instruction Set Summary....................... 113
15.0 Development Support ............................................................................................................................. 121
16.0 Electrical Characteristics....................... 127
17.0 DC and AC Characteristics Graphs and Tables ............................................................................................... 145
18.0 Packaging Information .................................................................. 147
Index .................................................................................................................................. 157
On-Line Support........................................................................ 161
Reader Response .............................................................................................................. 162
Product Identification System ..................................................................................................................................... 163
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.
 2000 Microchip Technology Inc. Preliminary DS41124C-page 3745cov.book Page 4 Wednesday, August 2, 2000 8:24 AM
PIC16C745/765
NOTES:
DS41124C-page 4 Preliminary  2000 Microchip Technology Inc.745cov.book Page 5 Wednesday, August 2, 2000 8:24 AM
PIC16C745/765
A highly reliable Watchdog Timer (WDT), with a dedi-1.0 GENERAL DESCRIPTION
cated on-chip RC oscillator, provides protection against
The PIC16C745/765 devices are low cost, high-perfor-
software lock-up, and also provides one way of waking
mance, CMOS, fully-static, 8-bit microcontrollers in the
the device from SLEEP.
PIC16CXX mid-range family.
A UV erasable CERDIP packaged version is ideal for
®All PICmicro microcontrollers employ an advanced code development, while the cost-effective One-Time-
RISC architecture. The PIC16C745/765 microcontrol- Programmable (OTP) version is suitable for production
ler family has enhanced core features, eight-level deep in any volume.
stack and multiple internal and external interrupt
The PIC16C745/765 devices fit nicely in many applica-sources. The separate instruction and data buses of
tions ranging from security and remote sensors to appli-the Harvard architecture allow a 14-bit wide instruction
ance controls and automotives. The EPROMword with the separate 8-bit wide data. The two stage
technology makes customization of application pro-instruction pipeline allows all instructions to execute in
grams (data loggers, industrial controls, UPS)a single cycle, except for program branches, which
extremely fast and convenient. The small footprint pack-require two cycles. A total of 35 instructions (reduced
ages make this microcontroller series perfect for allinstruction set) are available. Additionally, a large reg-
applications with space limitations. Low-cost, low-ister set gives some of the architectural innovations
power, high-performance, ease of use and I/O flexibilityused to achieve a very high performance.
make the PIC16C745/765 devices very versatile, even
The PIC16C745 device has 22 I/O pins. The
in areas where no microcontroller use has been consid-
PIC16C765 device has 33 I/O pins. Each device has
ered before (e.g., timer functions, serial communication,
256 bytes of RAM. In addition, several peripheral fea-
capture and compare, PWM functions and coprocessor
tures are available including: three timer/counters, two
applications).
Capture/Compare/PWM modules and two serial ports.
The Universal Serial Bus (USB 1.1) low speed periph- 1.1 Family and Upward Compatibility
eral provides bus communications. The Universal
Synchronous Asynchronous Receiver Transmitter Users familiar with the PIC16C5X microcontroller fam-
(USART) is also known as the Serial Communications ily will realize that this is an enhanced version of the
Interface or SCI. Also, a 5-channel high-speed 8-bit PIC16C5X architecture. Code written for the
PIC16C5X can be easily ported to the PIC16C745/765A/D is provided on the PIC16C745, while the
family of devices.PIC16C765 offers 8 channels. The 8-bit resolution is
ideally suited for applications requiring a low cost ana-
1.2 Development Supportlog interface (e.g., thermostat control, pressure sens-
ing, etc.). ®PICmicro devices are supported by the complete line
The PIC16C745/765 devices have special features to of Microchip Development tools.
reduce external components, thus reducing cost,
Please refer to Section 15.0 for more details about
enhancing system reliability and reducing power con-
Microchip’s development tools.
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 the PLL enabled,
HS is for the high speed crystals/resonators and H4 is
for high speed crystals/resonators with the PLL
enabled. 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.
 2000 Microchip Technology Inc. Preliminary DS41124C-page 5745cov.book Page 6 Wednesday, August 2, 2000 8:24 AM
PIC16C745/765
NOTES:
DS41124C-page 6 Preliminary  2000 Microchip Technology Inc.745cov.book Page 7 Wednesday, August 2, 2000 8:24 AM
PIC16C745/765
2.3 Quick-Turnaround-Production (QTP)2.0 PIC16C745/765 DEVICE
DevicesVARIETIES
A variety of frequency ranges and packaging options Microchip offers a QTP Programming Service for fac-
are available. Depending on application and production tory production orders. This service is made available
requirements, the proper device option can be selected for users who choose not to program a medium to high
using the information in the PIC16C745/765 Product quantity of units and whose code patterns have stabi-
Identification System section at the end of this data lized. The devices are identical to the OTP devices but
sheet. When placing orders, please use that page of with all EPROM locations and configuration options
the data sheet to specify the correct part number. already programmed by the factory. Certain code and
prototype verification procedures apply before produc-
2.1 UV Erasable Devices tion shipments are available. Please contact your local
Microchip Technology sales office for more details.
The UV erasable version, offered in windowed CERDIP
packages, is optimal for prototype development and 2.4 Serialized Quick-Turnaround
pilot programs. This version can be erased and SMProduction (SQTP ) Devices
reprogrammed to any of the supported oscillator
modes. Microchip offers a unique programming service where
  a few user-defined locations in each device are pro-Microchip’s PICSTART Plus and PROMATE II
grammed with different serial numbers. The serial num-programmers both support programming of the
bers may be random, pseudo-random or sequential.PIC16C745/765.
Serial programming allows each device to have a
2.2 One-Time-Programmable (OTP) unique number, which can serve as an entry-code,
Devices password or ID number.
The availability of OTP devices is especially useful for
customers who need the flexibility for frequent code
updates and small volume applications.
The OTP devices, packaged in plastic packages, per-
mit the user to program them once. In addition to the
program memory, the configuration bits must also be
programmed.
 2000 Microchip Technology Inc. Preliminary DS41124C-page 7745cov.book Page 8 Wednesday, August 2, 2000 8:24 AM
PIC16C745/765
NOTES:
DS41124C-page 8 Preliminary  2000 Microchip Technology Inc.745cov.book Page 9 Wednesday, August 2, 2000 8:24 AM
PIC16C745/765
PIC16C745/765 devices contain an 8-bit ALU and3.0 ARCHITECTURAL OVERVIEW
working register. The ALU is a general purpose arith-
The high performance of the PIC16C745/765 family
metic unit. It performs arithmetic and Boolean functions
can be attributed to a number of architectural features
between the data in the working register and any regis-
commonly found in RISC microprocessors. To begin
ter file.
with, the PIC16C745/765 uses a Harvard architecture,
The ALU is 8-bits wide and capable of addition, sub-in which program and data are accessed from separate
traction, shift and logical operations. Unless otherwisememories using separate buses. This improves band-
mentioned, arithmetic operations are two's comple-width over traditional von Neumann architecture in
ment in nature. In two-operand instructions, typicallywhich program and data are fetched from the same
one operand is the working register (W register). Thememory using the same bus. Separating program and
other operand is a file register or an immediate con-data buses further allows instructions to be sized differ-
stant. In single operand instructions, the operand isently than the 8-bit wide data word. Instruction opcodes
either the W register or a file register.are 14-bits wide making it possible to have all single
word instructions. A 14-bit wide program memory The W register is an 8-bit working register used for ALU
access bus fetches a 14-bit instruction in a single cycle. operations. It is not an addressable register.
A two-stage pipeline overlaps fetch and execution of
Depending on the instruction executed, the ALU may
instructions (Example3-1). Consequently, most
affect the values of the Carry (C), Digit Carry (DC), and
instructions execute in a single cycle (166.6667 ns @
Zero (Z) bits in the STATUS register. The C and DC bits
24 MHz) except for program branches.
operate as a borrow bit and a digit borrow out bit,
respectively, in subtraction. See the SUBLW and SUBWFMemory
A/D A/D instructions for examples.Device PinsProgram Data Resolution Channels
x14 x8
PIC16C745 8K 256 28 8 5
PIC16C765 8K 256 40 8 8
The PIC16C745/765 can directly or indirectly address
its register files or data memory. All special function
registers, including the program counter, are mapped in
the data memory. The PIC16C745/765 has an orthog-
onal (symmetrical) instruction set that makes it possible
to carry out any operation on any register using any
addressing mode. This symmetrical nature and lack of
‘special optimal situations’ make programming with the
PIC16C745/765 simple yet efficient. In addition, the
learning curve is reduced significantly.
 2000 Microchip Technology Inc. Preliminary DS41124C-page 9745cov.book Page 10 Wednesday, August 2, 2000 8:24 AM
PIC16C745/765
FIGURE 3-1: PIC16C745/765 BLOCK DIAGRAM
13 8 PORTA
Data Bus
EPROM Program Counter
RA0/AN0
Program RA1/AN1
RAM RA2/AN2Memory
8 Level Stack RA3/AN3/VREFFile
8K x 14 (13 bit) RA4/T0CKI
Registers
RA5/AN4
256 x 8
Program
14
Bus RAM Addr(1) 9 PORTB
Addr MUX
Instruction reg
RB0/INT
Indirect7Direct Addr
8 Addr
RB<7:1>FSR reg
STATUS reg
8
PORTC
RC0/T1OSO/T1CKI
3 RC1/T1OSI/CCP2MUXPower-up
RC2/CCP1Timer
RC6/TX/CK
OscillatorInstruction RC7/RX/DT
Decode & Start-up Timer
ALU
Control
Power-on
8Reset PORTDOSC1/
CLKIN Timing Watchdog
W regGeneration (2)Timer RD3:0/PSP3:0
OSC2/ x4 PLL Brown-out (2)CLKOUT RD4/PSP4
Reset (2)RD5/PSP5
(2)RD6/PSP6
(2)RD7/PSP7
(2)
Parallel Slave Port
MCLR VDD, VSS PORTE
(2)
RE0/AN5/RD
(2)RE1/AN6/WR
(2)
RE2/AN7/CSTimer0 Timer1 Timer2 8-bit A/D
Dual Port VUSB
RAM USB D-CCP2 CCP1 USART XCVR
64 x 8 D+
Note 1: Higher order bits are from the STATUS register.
2: Not available on PIC16C745.
DS41124C-page 10 Preliminary  2000 Microchip Technology Inc.