PIC16C781/782 PIC16C781.book Page 1 Tuesday, January 29, 2013 3:29 PM PIC16C781/782 8-Bit CMOS Microcontrollers with A/D, D/A, OPAMP, Comparators and PSMC Microcontroller Core Features: Microcontroller Core Features (Continued): High performance RISC CPU Low power, high speed CMOS EPROM technology Only 35 single word instructions to learn Fully static design All single cycle instructions except for program branches which are two cycle Low power consumption: Direct, indirect and relative addressing modes - < 2 mA 5V, 4 MHz - Operating speed: DC - 20 MHz clock input -< 1 A typical standby current. DC - 200 ns instruction cycle Pin Diagram Program Data Memory PDIP, Windowed CERDIP, SOIC, SSOP Device Memory X8 X14 RA0/AN0/OPA+ 1 20 RB3/AN7/OPA 1 20 PIC16C781 1K 128 RA1/AN1/OPA- 2 RB2/AN6 2 1919 RA4/T0CKI 33 1818 RA7/OSC1/CLKIN PIC16C782 2K 128 RA5/MCLR/VPP 44 RA6/OSC2/CLKOUT/T1CKI 1717 VSS 55 16 VDD 16 8-level deep hardware stack AVSS AVDD 66 15 15 RA2/AN2/VREF2 77 1414 RB7/C2/PSMC1B/T1G Interrupt capability (up to 8 internal/external RA3/AN3/VREF1 88 1313 RB6/C1/PSMC1A interrupt sources) 9 9 1212 RB5 RB0/INT/AN4/VR 10 11 RB1/AN5/VDAC 10 11 RB4 16 I/O pins: - Individual direction control (13 pins) - Input only (3 pins), low leakage (2 pins) Peripheral Features: - Digital/Analog inputs (8 pins) Timer0: 8-bit timer/counter with 8-bit prescaler Programmable PORTB interrupt-on-change (8 pins) Enhanced Timer1: Programmable PORTB weak pull-ups (8 pins) - 16-bit timer/counter with prescaler Power-on Reset (POR) - External Gate Input mode Power-up Timer (PWRT) and Oscillator Start-up Timer (OST) - Option to use OSC1 and OSC2 in LP mode as Timer1 oscillator, if INTRC oscillator mode Watchdog Timer (WDT) with a software enabled selected option and its own on-chip RC oscillator for Analog-to-Digital Converter (ADC): reliable operation Programmable Brown-out Reset (BOR) - 8-bit resolution Programmable Low Voltage Detection (LVD) - Programmable 8-channel input Internal/external MCLR - Internal voltages available for self- diagnostics Programmable code protection Digital-to-Analog Converter (DAC): Power saving SLEEP mode - 8-bit resolution Selectable oscillator options: HS, XT, LP, EC, RC, INTRC (4 MHz/37 kHz) - Reference from AVDD, VREF1, or VR module In-Circuit Serial Programming (ISCP) - Output configurable to VDAC pin, Compara- tors, and ADC reference Program Memory Read (PMR) capability Operational Amplifier module (OPA): Four user programmable ID locations - Firmware initiated input offset voltage Auto Wide operating voltage range: Calibration module - 2.5V to 5.5V for commercial and industrial - Low leakage inputs temperature ranges - Programmable Gain Bandwidth Product - Extended temperature range available (GBWP) 2001-2013 Microchip Technology Inc. Preliminary DS41171B-page 1PIC16C781.book Page 2 Tuesday, January 29, 2013 3:29 PM PIC16C781/782 Programmable Switch Mode Controller module: Peripheral Features (Continued): - PWM and PSM modes Dual Analog Comparator module with: - Programmable switching frequency - Individual enable and interrupt bits - Configurable for either single or dual - Programmable speed and output polarity feedback inputs - Fully configurable inputs and outputs - Configurable single or dual outputs - Reference from DAC, or VREF1/VREF2 - Slope compensation output available in - Low input offset voltage. single output mode VR voltage reference module: - 3.072V +/- 0.7% 25 C, AVDD = 5V - Configurable output to ADC reference, DAC reference, and VR pin - 5 mA sink/source Key Features PIC Mid-Range PIC16C781 PIC16C782 Reference Manual (DS33023) Operating Frequency DC - 20 MHz DC - 20 MHZ RESETS (and Delays) POR, BOR, MCLR, WDT (PWRT, OST) POR, BOR, MCLR, WDT (PWRT, OST) Program Memory (14 bit words) 1K 2K Data Memory (bytes) 128 128 Interrupts 8 8 I/O Ports 13 + 3 Input only 13 + 3 Input only Timers 2 2 Programmable Switch Mode Controller 1 1 8-bit Analog-to-Digital Module 1 1 ADC channels 8 External, 2 Internal 8 External, 2 Internal 8-bit Digital-to-Analog Module 1 1 Comparators 2 2 Comparator Channels 4 (AN<7:4>) 4 (AN<7:4>) Operational Amplifier 1 1 Voltage Reference 1 1 Brown-out Reset Yes Yes Programmable Low Voltage Detect Yes Yes Instruction Set 35 Instructions 35 Instructions DS41171B-page 2 Preliminary 2001-2013 Microchip Technology Inc.