English
Language : 

PIC16HV540 Datasheet, PDF (2/36 Pages) Microchip Technology – Enhanced PIC16C54 EPROM-Based 8-Bit CMOS Microcontroller With On-Chip Voltage Regulator
PIC16HV540
1.0 GENERAL DESCRIPTION
The PIC16HV540 from Microchip Technology is a
low-cost, high-performance, 8-bit, fully-static,
EPROM-based CMOS microcontroller. It is pin and soft-
ware compatible with the PIC16C5X family of devices. It
employs a RISC architecture with only 33 single word/sin-
gle cycle instructions. All instructions are single cycle
except for program branches which take two cycles. The
PIC16HV540 delivers performance an order of magnitude
higher than its competitors in the same price category. The
12-bit wide instructions are highly orthogonal resulting in
2:1 code compression over other 8-bit microcontrollers in
its class. The easy-to-use and easy-to-remember instruc-
tion set reduces development time significantly.
The PIC16HV540 is the first One-Time-Programmable
(OTP) microcontroller with an on-chip 3 Volt and 5 Volt reg-
ulator. This eliminates the need for an external regulator in
many applications powered from 9 Volt or 12 Volt batteries
or unregulated 6 Volt, 9 Volt or 12 Volt mains adapters. The
PIC16HV540 is ideally suited for applications that require
very low standby current at high voltages. These typically
require expensive low current regulators.
The PIC16HV540 is equipped with special features that
reduce system cost and power requirements. The
Power-On Reset (POR) and Device Reset Timer (DRT)
eliminate the need for external reset circuitry.There are four
oscillator configurations to choose from, including the
power-saving LP (Low Power) oscillator, cost saving RC
oscillator, and XT and HS for crystal oscillators. Power sav-
ing SLEEP mode, Watchdog Timer and code protection
features improve system cost, power and reliability.
The UV erasable CERDIP packaged versions are ideal for
code development, while the cost-effective OTP versions are
suitable for production in any volume. The customer can take
full advantage of Microchip’s price leadership in OTP micro-
controllers while benefiting from the OTP’s flexibility.
The PIC16HV540 will in future be supported by a
full-featured macro assembler, a software simulator, an
in-circuit emulator, a ‘C’ compiler, fuzzy logic support
tools, a low-cost development programmer, and a full fea-
tured programmer. All the tools are supported on IBM®
PC and compatible machines. Functions that correspond
to the PIC16C54 (such as assembly and programming)
can utilize existing tools.
1.1 Applications
The PIC16HV540 fits perfectly in low-power battery appli-
cations such as CO and smoke detection, toys, games,
security systems and automobile modules. The EPROM
technology makes customizing of application programs
(transmitter codes, receiver frequencies, etc.) extremely
fast and convenient. The small footprint package, for
through hole or surface mounting, make this microcontrol-
ler perfect for applications with space limitations.
Low-cost, low-power, high-performance, ease of use and
I/O flexibility make the PIC16HV540 very versatile even in
areas where no microcontroller use has been considered
before (e.g., timer functions, replacement of “glue” logic in
larger systems, coprocessor applications).
1.2 Enhanced Features
1.2.1 REGULATED I/O PORTA INDEPENDENT
OF CORE REGULATOR
PORTA I/O pads and OSC2 output are powered by the
regulated internal voltage VIO. A maximum of 10mA per
output is allowed, or a total of 40mA. The core itself is
powered from the independently regulated supply
VREG.
1.2.2 HIGH VOLTAGE I/O PORTB
All eight PORTB I/Os are high voltage I/O. The inputs
will tolerate input voltages as high as the VDD and out-
puts will swing from VSS to the VDD. The input threshold
voltages vary with supply voltage. (See DC character-
istics.)
1.2.3 WAKE UP ON PIN CHANGE ON PORTB [0:3]
Four of the PORTB inputs latch the status of the pin at
the onset of sleep mode. A level change on the inputs
resets the device, implementing wake up on pin change
(via warm reset). The PC bit in the status register is
reset to indicate that a pin change caused the reset
condition. Any pin change (glitch insensitive) of the
opposite level of the initial value wakes up the device.
This option can be enabled/disabled in OPTION2 reg-
ister. (See OPTION2 register, Figure 4-3.)
1.2.4 WAKE UP ON PIN CHANGE WITH A
SLOWLY-RISING VOLTAGE ON PORTB [7]
PORTB [7] also implements wake up from sleep, how-
ever this input is specifically adapted so that a slowly
rising voltage does not cause excessive power con-
sumption. This input can be used with external RC cir-
cuits for long sleep periods without using the internal
timer and prescaler. This option is also enabled/dis-
abled in OPTION2 register. (The enable/disable bit is
shared with the other 4 wake up inputs.) The new wake
up status bit in the status register is also shared with
the other four wake up inputs.
1.2.5 LOW-VOLTAGE (BROWN-OUT)
DETECTION
A low voltage (Brown-out) detect circuit optionally
resets the device at a voltage level higher than that at
which Brown-out events occur. The nominal trip volt-
ages are 3.1 Volt (for 5 Volt operation) and 2.2 Volt (for
3 Volt operation), respectively. The core remains in the
reset state as long as this condition holds (as if a MCLR
external reset was given). The Brown-out trip level is
user selectable, with built-in interlocks. The Brown-out
detector is disabled at power-up and is activated by
clearing the appropriate bit (BE) in OPTION2 register.
1.2.6 INCREASED STACK DEPTH
The stack depth is 4 levels to allow modular program
implementation by using functions and subroutines.
DS40197A-page 2
Preliminary
© 1998 Microchip Technology Inc.