PIC16HV540 PIC16HV540 PIC16HV540 Enhanced PIC16C54 EPROM-Based 8-Bit CMOS Microcontroller With On-Chip Voltage Regulator High-Performance RISC CPU: Pin Configurations Only 33 single word instructions to learn PDIP, SOIC, Windowed CERDIP All instructions are single cycle (200 ns) except for program branches which are two-cycle RA2 1 18 RA1 RA3 2 17 RA0 Operating speed: DC - 20 MHz clock input T0CKI 3 OSC1/CLKIN 16 DC - 200 ns instruction cycle MCLR/VPP 4 15 OSC2/CLKOUT VSS 5 14 VDD 12-bit wide instructions RB0 6 13 RB7 8-bit wide data path RB1 7 12 RB6 RB2 8 11 RB5 Seven special function hardware registers 10 RB3 RB4 9 Four-level deep hardware stack Direct, indirect and relative addressing modes for data and instructions SSOP Peripheral Features: RA2 1 20 RA1 RA3 2 19 RA0 8-bit real time clock/counter (TMR0) with 8-bit pro- T0CKI 3 18 OSC1/CLKIN grammable prescaler MCLR/VPP 4 17 OSC2/CLKOUT Power-On Reset (POR) VSS 5 16 VDD VSS 6 15 VDD Brown-Out Protection RB0 7 14 RB7 Device Reset Timer (DRT) with short RC oscilla- RB1 8 13 RB6 tor start-up time RB2 9 12 RB5 RB3 10 11 RB4 Programmable Watchdog Timer (WDT) with its own on-chip RC oscillator for reliable operation Sleep Timer CMOS Technology: 8 High Voltage I/O Selectable on-chip 3V/5V Regulator 4 Regulated I/O Low-power, high-speed CMOS EPROM technol- Wake up from SLEEP on-pin change ogy Programmable code protection Fully static design Power saving SLEEP mode Wide-operating voltage range: Selectable oscillator options: - 3.5V to 15V - RC: Low-cost RC oscillator Temperature range: - XT: Standard crystal/resonator - Commercial: 0C to 70C - HS: High speed crystal/resonator - Industrial: -40C to 85C - LP: Power saving, low frequency crystal Low-power consumption Glitch filtering on MCLR and pin change inputs - < 2 mA typical 5V, 4 MHz -15 A typical 3V, 32 kHz -< 4.5 A typical standby current 15V (with WDT disabled), 0C to 70C 2000 Microchip Technology Inc. Preliminary DS40197B-page 1PIC16HV540 Table of Contents 1.0 General Description ..................................................................................................................................... 3 2.0 PIC16HV540 Device Varieties..................................................................................................................... 5 3.0 Architectural Overview................................................................................................................................. 7 4.0 Memory Organization ................................................................................................................................ 11 5.0 I/O Ports..................................................................................................................................................... 19 6.0 Timer0 Module and TMR0 Register........................................................................................................... 25 7.0 Special Features of the CPU ..................................................................................................................... 31 8.0 Instruction Set Summary ........................................................................................................................... 43 9.0 Development Support ................................................................................................................................ 55 10.0 Electrical Characteristics - PIC16HV540 ................................................................................................... 61 11.0 DC and AC Characteristics - PIC16HV540................................................................................................ 69 12.0 Packaging Information ............................................................................................................................... 73 Index ........................................................................................................................................................................ 79 On-Line Support....................................................................................................................................................... 81 Reader Response .................................................................................................................................................... 82 PIC16HV540 Product Identification System............................................................................................................. 83 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: