PIC16C505 PIC16C505 14-Pin, 8-Bit CMOS Microcontroller Device included in this Data Sheet: Special Microcontroller Features: PIC16C505 In-Circuit Serial Programming (ICSP) Power-on Reset (POR) High-Performance RISC CPU: Device Reset Timer (DRT) Only 33 instructions to learn Watchdog Timer (WDT) with dedicated on-chip Operating speed: RC oscillator for reliable operation - DC - 20 MHz clock input Programmable Code Protection - DC - 200 ns instruction cycle Internal weak pull-ups on I/O pins Memory Wake-up from Sleep on pin change Device Power-saving Sleep mode Program Data Selectable oscillator options: PIC16C505 1024 x 12 72 x 8 - INTRC: Precision internal 4 MHz oscillator Direct, indirect and relative addressing modes for - EXTRC: External low-cost RC oscillator data and instructions - XT: Standard crystal/resonator 12-bit wide instructions - HS: High speed crystal/resonator 8-bit wide data path - LP: Power saving, low frequency 2-level deep hardware stack crystal Eight special function hardware registers CMOS Technology: Direct, indirect and relative addressing modes for Low-power, high-speed CMOS EPROM data and instructions technology All single cycle instructions (200 ns) except for Fully static design program branches which are two-cycle Wide operating voltage range (2.5V to 5.5V) Peripheral Features: Wide temperature ranges 11 I/O pins with individual direction control - Commercial: 0C to +70C 1 input pin - Industrial: -40C to +85C High current sink/source for direct LED drive - Extended: -40C to +125C Timer0: 8-bit timer/counter with 8-bit - < 1.0 m A typical standby current 5V programmable prescaler Low power consumption - < 2.0 mA 5V, 4 MHz Pin Diagram: -15 m A typical 3.0V, 32 kHz for TMR0 PDIP, SOIC, Ceramic Side Brazed running in SLEEP mode - < 1.0 m A typical standby current 5V VDD 1 14 VSS RB5/OSC1/CLKIN 2 13 RB0 3 12 RB1 RB4/OSC2/CLKOUT RB3/MCLR/VPP 4 11 RB2 RC5/T0CKI 5 10 RC0 RC4 6 9 RC1 RC3 7 8 RC2 1999 Microchip Technology Inc. DS40192C-page 1PIC16C505 TABLE OF CONTENTS 1.0 General Description..................................................................................................................................................................... 3 2.0 PIC16C505 Device Varieties....................................................................................................................................................... 5 3.0 Architectural Overview ................................................................................................................................................................ 7 4.0 Memory Organization ................................................................................................................................................................ 11 5.0 I/O Port ...................................................................................................................................................................................... 19 6.0 Timer0 Module and TMR0 Register .......................................................................................................................................... 23 7.0 Special Features of the CPU..................................................................................................................................................... 27 8.0 Instruction Set Summary ........................................................................................................................................................... 39 9.0 Development Support................................................................................................................................................................ 51 10.0 Electrical Characteristics - PIC16C505 ..................................................................................................................................... 57 11.0 DC and AC Characteristics - PIC16C505.................................................................................................................................. 71 11.0 Packaging Information............................................................................................................................................................... 75 Index .................................................................................................................................................................................................... 79 On-Line Support................................................................................................................................................................................... 81 Reader Response ................................................................................................................................................................................ 82 PIC16C505 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 register at our Worldwide Web site at: