PIC16F882 Microcontroller
This powerful yet easy-to-program (only 35 single word instructions) CMOS FLASH-based 8-bit microcontroller packs Microchip’s powerful PIC® architecture into a 28 pin package.The PIC16F882 features 128 bytes of EEPROM data memory, self programming, an ICD, 2 Comparators, 11 channels of 10-bit Analog-to-Digital (A/D) converter, 1 capture/compare/PWM and 1 Enhanced capture/compare/PWM functions, a synchronous serial port that can be configured as either 3-wire Serial Peripheral Interface (SPI™) or the 2-wire Inter-Integrated Circuit (I²C™) bus and an Enhanced Universal Asynchronous Receiver Transmitter (EUSART). All of these features make it ideal for more advanced level A/D applications in automotive, industrial, appliances or consumer applications.
- Special Microcontroller Features:
- Precision Internal Oscillator:- Factory calibrated to ±1%- Software selectable frequency range of8 MHz to 32 kHz- Software tunable- Two-Speed Start-Up mode- Fail-safe clock monitoring for criticalapplications- Clock mode switching during operation forlow-power operation
- Power-Saving Sleep mode
- Power-on Reset (POR)
- Selectable Brown-out Reset (BOR) voltage
- Extended Watchdog Timer (WDT) with its ownon-chip RC oscillator for reliable operation
- In-Circuit Serial Programming™ (ICSP™) via twopins
- In-Circuit Debug (ICD) via two pins
- High-endurance Flash/EEPROM cell:- 100,000 erase/write cycle enhanced Flashprogram memory, typical- 1,000,000 erase/write cycle data EEPROMmemory, typical- Data EEPROM retention > 40 years
- Self-reprogrammable under software control
- Programmable code protection
- Peripheral Features: Device Features:- 1 input only pin- 25 I/O- High sink/source current 25 mA- Interrupt-on-pin change option
- Timers:- TMR0: 8-bit timer/counter with 8-bit prescaler- TMR1 enhanced: 16-bit timer/counter withprescaler, External Gate Input mode anddedicated low-power 32 kHz oscillator- TMR2: 8-bit timer/counter with 8-bit periodregister, prescaler and postscaler
- Capture/Compare/PWM (CCP) module
- Enhanced Capture/Compare/PWM (ECCP)module with auto-shutdown and PWM steering
- Master Synchronous Serial Port (MSSP) moduleSPI™ mode, I2C™ mode with address maskcapability
- Enhanced Universal Synchronous AsynchronousReceiver Transmitter (EUSART) module:- Supports RS-485, RS-232 and LINcompatibility- Auto-Baud Detect- Auto-wake-up on Start bit
- Ultra Low-Power Wake-up (ULPWU)Analog Features:
- 10-bit 11 channel Analog-to-Digital (A/D)Converter
- 2 Analog Comparator modules with:- Programmable on-chip Voltage Reference(CVREF) module (% of VDD)- Fixed 0.6 Vref- Comparator inputs and outputs externallyaccessible- SR Latch mode