Datasheet PIC16F13256, PIC16F13276 (Microchip) - 2

HerstellerMicrochip
BeschreibungLow‑Power MCUs with Integrated Configurable Logic Block for Smarter Embedded Designs
Seiten / Seite645 / 2 — PIC16F13256/76. Table 2. (2). (1). CCP. CLB. CLC. FVR. Device. (bytes). …
Dateiformat / GrößePDF / 10.5 Mb
DokumentenspracheEnglisch

PIC16F13256/76. Table 2. (2). (1). CCP. CLB. CLC. FVR. Device. (bytes). PDID. I2C/SPI. CMP. PMD. EUSART. Data SRAM. I/O Pins. 10-bit DAC. Data EEPROM

PIC16F13256/76 Table 2 (2) (1) CCP CLB CLC FVR Device (bytes) PDID I2C/SPI CMP PMD EUSART Data SRAM I/O Pins 10-bit DAC Data EEPROM

Modelllinie für dieses Datenblatt

Textversion des Dokuments

PIC16F13256/76 Table 2.
Devices Not Included in This Data Sheet
/ (2) (1) CCP CLB CLC FVR Device (bytes) (bytes) (bytes) PDID I2C/SPI CMP PMD EUSART Data SRAM I/O Pins 10-bit DAC Data EEPROM 16-Bit Timers 16-Bit Dual PWM/ (External/Internal) Watchdog Timer Program Flash Memory Peripheral Pin Select 8-Bit Timers with HLT/ 10-Bit ADCC Channels External Interrupt Pins Memory Access Partition/ Device Information Area Interrupt-on-Change Pins 32-Bit CRC with NVM Scanner
PIC16F13214 7k 512 256 Y Y/Y Y 6/Y 2/3 2/2 5/5 1/1 2 1 4 2 2 1 Y 1 6 Y PIC16F13215 14k 1k 256 Y Y/Y Y 6/Y 2/3 2/2 5/5 1/1 2 1 4 2 2 1 Y 1 6 Y PIC16F13224 7k 512 256 Y Y/Y Y 12/Y 2/3 2/2 11/5 1/1 2 1 4 2 2 1 Y 1 12 Y PIC16F13225 14k 1k 256 Y Y/Y Y 12/Y 2/3 2/2 11/5 1/1 2 1 4 2 2 1 Y 1 12 Y PIC16F13226 28k 2k 256 Y Y/Y Y 12/Y 2/3 2/2 11/5 1/1 2 1 4 2 2 1 Y 1 12 Y PIC16F13244 7k 512 256 Y Y/Y Y 18/Y 2/3 2/2 17/5 1/1 2 1 4 2 2 1 Y 1 18 Y PIC16F13245 14k 1k 256 Y Y/Y Y 18/Y 2/3 2/2 17/5 1/1 2 1 4 2 2 1 Y 1 18 Y PIC16F13246 28k 2k 256 Y Y/Y Y 18/Y 2/3 2/2 17/5 1/1 2 1 4 2 2 1 Y 1 18 Y PIC16F13254 7k 512 256 Y Y/Y Y 25/Y 2/3 2/2 24/5 2/2 2 1 4 2 2 1 Y 1 25 Y PIC16F13255 14k 1k 256 Y Y/Y Y 25/Y 2/3 2/2 24/5 2/2 2 1 4 2 2 1 Y 1 25 Y PIC16F13274 7k 512 256 Y Y/Y Y 36/Y 2/3 2/2 35/5 2/2 2 1 4 2 2 1 Y 1 36 Y PIC16F13275 14k 1k 256 Y Y/Y Y 36/Y 2/3 2/2 35/5 2/2 2 1 4 2 2 1 Y 1 36 Y
Notes: 
1. Total I/O count includes one pin (MCLR) that is input-only. 2. Timer0 can be configured as either an 8-bit or 16-bit timer.
Core Features
• C Compiler Optimized RISC Architecture • Operating Speed: – DC-32 MHz clock input – 125 ns minimum instruction time • 16-Level Deep Hardware Stack • Low-Current Power-on Reset (POR) • Configurable Power-up Timer (PWRT) • Brown-out Reset (BOR) • Low-Power Brown-out Reset (LPBOR) • Windowed Watchdog Timer (WWDT)
Memory
• Up to 28 KB of Program Flash Memory • Up to 2 KB of Data SRAM Memory • 256 Bytes Data EEPROM • Memory Access Partition (MAP) with Program Flash Memory Partitioned into: – Application block – Boot block – Storage Area Flash (SAF) block • Programmable Code Protection and Write Protection  Preliminary Data Sheet DS40002664B - 2 © 2026 Microchip Technology Inc. and its subsidiaries Document Outline Introduction PIC16F13276 Family Summary Core Features Memory Operating Characteristics Power-Saving Functionality Digital Peripherals Analog Peripherals Clocking Structure Programming/Debug Features Table of Contents 1.  Packages 2.  Pin Diagrams 3.  Pin Allocation Tables 4.  Guidelines for Getting Started with PIC16F13276 Microcontrollers 4.1.  Basic Connection Requirements 4.2.  Power Supply Pins 4.2.1.  Decoupling Capacitors 4.2.2.  Tank Capacitors 4.3.  Master Clear (MCLR) Pin 4.4.  In-Circuit Serial Programming™ (ICSP™) Pins 4.5.  Unused I/Os 5.  Register and Bit Naming Conventions 5.1.  Register Names 5.2.  Bit Names 5.2.1.  Short Bit Names 5.2.2.  Long Bit Names 5.2.3.  Bit Fields 5.3.  Register and Bit Naming Exceptions 5.3.1.  Status, Interrupt and Mirror Bits 6.  Register Legend 7.  Enhanced Mid-Range CPU 7.1.  Automatic Interrupt Context Saving 7.2.  16-Level Stack with Overflow and Underflow 7.3.  File Select Registers 7.4.  Instruction Set 8.  Device Configuration 8.1.  Configuration Words 8.2.  Enhanced Code Protection 8.2.1.  Program Flash Memory Code Protection 8.2.2.  Data EEPROM Code Protection 8.2.3.  Write Protection 8.2.4.  Programming and Debugging Interface Disable (PDID) 8.2.4.1.  Software ICSP Enable 8.3.  User ID 8.4.  Device ID and Revision ID 8.5.  Register Definitions: Configuration Settings 8.5.1.  Configuration Word 1 8.5.2.  Configuration Word 2 8.5.3.  Configuration Word 3 8.5.4.  Configuration Word 4 8.5.5.  Configuration Word 5 8.5.6.  Configuration Word 6 8.5.7.  Configuration Word 7 8.6.  Register Definitions: Device ID and Revision ID 8.6.1.  Device ID 8.6.2.  Revision ID 8.7.  Register Definitions: Software ICSP Enable 8.7.1.  ICSPEN Lock Register 8.7.2.  In-Circuit Serial Programming Interface Enable Register 9.  Memory Organization 9.1.  Program Memory Organization 9.1.1.  Reading Program Memory as Data 9.1.1.1.  RETLW Instruction 9.1.1.2.  Indirect Read with FSR 9.1.2.  Memory Access Partition (MAP) 9.1.2.1.  Application Block 9.1.2.2.  Boot Block 9.1.2.3.  Storage Area Flash 9.1.2.4.  Memory Write Protection 9.1.2.5.  Memory Violation 9.1.3.  Device Information Area (DIA) 9.1.3.1.  Microchip Unique Identifier (MUI) 9.1.3.2.  External Unique Identifier (EUI) 9.1.3.3.  Standard Parameters for the Temperature Sensor 9.1.3.4.  Fixed Voltage Reference Data 9.1.4.  Device Configuration Information (DCI) 9.1.4.1.  DIA and DCI Access 9.2.  Data Memory Organization 9.2.1.  Bank Selection 9.2.2.  Core Registers 9.2.3.  Special Function Register 9.2.4.  General Purpose RAM 9.2.5.  Common RAM 9.2.6.  Device Memory Maps 9.3.  STATUS Register 9.4.  PCL and PCLATH 9.4.1.  Modifying PCL 9.4.2.  Computed GOTO 9.4.3.  Computed Function Calls 9.4.4.  Branching 9.5.  Stack 9.5.1.  Accessing the Stack 9.5.2.  Overflow/Underflow Reset 9.6.  Indirect Addressing 9.6.1.  Traditional/Banked Data Memory 9.6.2.  Linear Data Memory 9.6.3.  Program Flash Memory 9.6.4.  Data EEPROM Memory 9.7.  Register Definitions: Memory Organization 9.7.1.  INDF0 9.7.2.  INDF1 9.7.3.  PCL 9.7.4.  STATUS 9.7.5.  FSR0 9.7.6.  FSR1 9.7.7.  BSR 9.7.8.  WREG 9.7.9.  PCLATH 9.8.  Register Summary - Memory Organization 10.  Resets 10.1.  Power-on Reset (POR) 10.1.1.  Programming Mode Exit 10.2.  Brown-out Reset (BOR) 10.2.1.  BOR Is Always On 10.2.2.  BOR Is Off in Sleep 10.2.3.  BOR Controlled by Software 10.2.4.  BOR Is Always Off 10.3.  Low-Power Brown-out Reset (LPBOR) 10.3.1.  Enabling LPBOR 10.3.2.  LPBOR Module Output 10.4.  MCLR Reset 10.4.1.  MCLR Enabled 10.4.2.  MCLR Disabled 10.5.  Windowed Watchdog Timer (WWDT) Reset 10.6.  Watchdog Timer (WDT) Reset 10.7.  RESET Instruction 10.8.  Stack Overflow/Underflow Reset 10.9.  Power-Up Timer (PWRT) 10.10.  Start-Up Sequence 10.11.  Memory Execution Violation 10.12.  Determining the Cause of a Reset 10.13.  Power Control (PCONx) Register 10.14.  Register Definitions: Power Control 10.14.1.  Brown-out Reset Control Register 10.14.2.  Power Control Register 0 10.14.3.  Power Control Register 1 10.15.  Register Summary - Power Control 11.  OSC - Oscillator Module (With Fail-Safe Clock Monitor) 11.1.  Clock Source Types 11.1.1.  External Clock Sources 11.1.1.1.  EC Mode 11.1.1.2.  LP, XT, HS Modes 11.1.1.3.  Oscillator Start-Up Timer (OST) 11.1.1.4.  4x PLL 11.1.1.5.  Secondary Oscillator 11.1.1.5.1.  SOSC Power Modes 11.1.1.5.2.  SOSC Start-Up Timing 11.1.2.  Internal Clock Sources 11.1.2.1.  HFINTOSC 11.1.2.1.1.  HFINTOSC Frequency Tuning 11.1.2.2.  MFINTOSC 11.1.2.3.  SFINTOSC 11.1.2.4.  LFINTOSC 11.1.2.5.  ADCRC 11.1.3.  Oscillator Status and Manual Enable 11.2.  Clock Switching 11.2.1.  NOSC and NDIV Bits 11.2.2.  COSC and CDIV Bits 11.2.3.  CSWHOLD 11.2.4.  PLL Input Switch 11.2.5.  Clock Switch and Sleep 11.3.  Fail-Safe Clock Monitor (FSCM) 11.3.1.  Fail-Safe Detection 11.3.2.  Fail-Safe Operation 11.3.3.  Fail-Safe Condition Clearing 11.3.4.  Reset or Wake-Up from Sleep 11.4.  Active Clock Tuning (ACT) 11.4.1.  ACT Lock Status 11.4.2.  ACT Out-of-Range Status 11.4.3.  ACT Update Disable 11.4.4.  ACT Interrupts 11.5.  Register Definitions: Oscillator Module 11.5.1.  Active Clock Tuning Control Register 11.5.2.  Oscillator Control Register 1 11.5.3.  Oscillator Control Register 2 11.5.4.  Oscillator Control Register 3 11.5.5.  HFINTOSC Frequency Tuning Register 11.5.6.  HFINTOSC Frequency Selection Register 11.5.7.  Oscillator Status Register 11.5.8.  Oscillator Enable Register 11.6.  Register Summary - Oscillator Module 12.  INT - Interrupts 12.1.  Overview 12.2.  INTCON Register 12.3.  PIE Registers 12.4.  PIR Registers 12.5.  Operation 12.6.  Interrupt Latency 12.7.  Interrupts During Sleep 12.8.  INT Pin 12.9.  Automatic Context Saving 12.10.  Register Definitions: Interrupt Control 12.10.1.  INTCON 12.10.2.  Peripheral Interrupt Enable Register 0 12.10.3.  Peripheral Interrupt Enable Register 1 12.10.4.  Peripheral Interrupt Enable Register 2 12.10.5.  Peripheral Interrupt Enable Register 3 12.10.6.  Peripheral Interrupt Enable Register 4 12.10.7.  Peripheral Interrupt Enable Register 5 12.10.8.  Peripheral Interrupt Enable Register 6 12.10.9.  Peripheral Interrupt Enable Register 7 12.10.10.  Peripheral Interrupt Request Register 0 12.10.11.  Peripheral Interrupt Request Register 1 12.10.12.  Peripheral Interrupt Request Register 2 12.10.13.  Peripheral Interrupt Request Register 3 12.10.14.  Peripheral Interrupt Request Register 4 12.10.15.  Peripheral Interrupt Request Register 5 12.10.16.  Peripheral Interrupt Request Register 6 12.10.17.  Peripheral Interrupt Request Register 7 12.11.  Register Summary - Interrupt Control 13.  Power-Saving Modes 13.1.  Doze Mode 13.1.1.  Doze Operation 13.1.2.  Interrupts During Doze 13.2.  Sleep Mode 13.2.1.  Wake-Up from Sleep 13.2.2.  Wake-Up Using Interrupts 13.3.  Idle Mode 13.3.1.  Idle and Interrupts 13.3.2.  Idle and WWDT 13.4.  Peripheral Operation in Power-Saving Modes 13.5.  Register Definitions: Power-Savings Control 13.5.1.  Doze and Idle Register 13.6.  Register Summary - Power-Savings Control 14.  WWDT - Windowed Watchdog Timer 14.1.  Independent Clock Source 14.2.  WWDT Operating Modes 14.2.1.  WWDT Is Always On 14.2.2.  WWDT Is Off in Sleep 14.2.3.  WWDT Controlled by Software 14.3.  Time-Out Period 14.4.  Watchdog Window 14.5.  Clearing the Watchdog Timer 14.5.1.  CLRWDT Considerations (Windowed Mode) 14.6.  Operation During Sleep 14.7.  Register Definitions: Windowed Watchdog Timer Control 14.7.1.  Watchdog Timer Control Register 0 14.7.2.  Watchdog Timer Control Register 1 14.7.3.  WWDT Prescaler Select Register 14.7.4.  WWDT Prescaler Select Register 14.7.5.  WDT Timer Register 14.8.  Register Summary - WDT Control 15.  NVM - Nonvolatile Memory Control 15.1.  Program Flash Memory (PFM) 15.1.1.  FSR and INDF Access 15.1.1.1.  FSR Read 15.1.1.2.  FSR Write 15.1.2.  NVMREG Access 15.1.2.1.  NVMREG Read Operation 15.1.2.2.  NVM Unlock Sequence 15.1.2.3.  NVMREG Erase of Program Memory 15.1.2.4.  NVMREG Write to Program Memory 15.1.2.5.  Modifying Flash Program Memory 15.1.2.6.  NVMREG Access to DIA, DCI, User ID, Device ID, Revision ID, and Configuration Words 15.1.2.7.  Write Verify 15.1.2.8.  WRERR Bit 15.2.  Data Flash Memory (DFM) 15.2.1.  FSR and INDF Access 15.2.1.1.  FSR DFM Read 15.2.1.2.  FSR DFM Write 15.2.2.  NVMREG Access 15.2.2.1.  NVMREG Read Operation 15.2.2.2.  NVM Unlock Sequence 15.2.2.3.  NVMREG Erase of DFM 15.2.2.4.  NVMREG Write to DFM 15.2.2.5.  WRERR Bit 15.3.  Register Definitions: Nonvolatile Memory Control 15.3.1.  NVMADR 15.3.2.  NVMDAT 15.3.3.  NVMCON1 15.3.4.  NVMCON2 15.4.  Register Summary - NVM Control 16.  I/O Ports 16.1.  Overview 16.2.  PORTx - Data Register 16.3.  LATx - Output Latch 16.4.  TRISx - Direction Control 16.5.  ANSELx - Analog Control 16.6.  WPUx - Weak Pull-Up Control 16.7.  INLVLx - Input Threshold Control 16.8.  SLRCONx - Slew Rate Control 16.9.  ODCONx - Open-Drain Control 16.10.  Edge Selectable Interrupt-on-Change 16.11.  I2C Pad Control 16.12.  I/O Priorities 16.13.  MCLR/VPP/RE3 Pin 16.14.  Register Definitions: Port Control 16.14.1.  PORTx 16.14.2.  LATx 16.14.3.  TRISx 16.14.4.  ANSELx 16.14.5.  WPUx 16.14.6.  INLVLx 16.14.7.  SLRCONx 16.14.8.  ODCONx 16.14.9.  RxyI2C 16.15.  Register Summary - I/O Ports 17.  IOC - Interrupt-on-Change 17.1.  Overview 17.2.  Enabling the Module 17.3.  Individual Pin Configuration 17.4.  Interrupt Flags 17.5.  Clearing Interrupt Flags 17.6.  Operation in Sleep 17.7.  Register Definitions: Interrupt-on-Change Control 17.7.1.  IOCxF 17.7.2.  IOCxN 17.7.3.  IOCxP 17.8.  Register Summary - Interrupt-on-Change 18.  PPS - Peripheral Pin Selection Module 18.1.  Overview 18.2.  PPS Inputs 18.3.  PPS Outputs 18.4.  TRISxyPPS Register 18.5.  Bidirectional Pins 18.6.  PPS Lock 18.6.1.  PPS One-Way Lock 18.7.  Operation During Sleep 18.8.  Effects of a Reset 18.9.  Register Definitions: Peripheral Pin Select (PPS) 18.9.1.  Peripheral Input Selection Register 18.9.2.  Pin Rxy Output Source Selection Register 18.9.3.  TRISxy Source Selection Register 18.9.4.  PPS Lock Register 18.10.  Register Summary - Peripheral Pin Select Module 19.  CRC - Cyclic Redundancy Check Module with Memory Scanner 19.1.  Module Overview 19.2.  Polynomial Implementation 19.3.  Data Sources 19.3.1.  CRC from User Data 19.3.2.  CRC from Flash 19.4.  CRC Check Value 19.5.  CRC Interrupt 19.6.  Configuring the CRC Module 19.6.1.  Register Overlay 19.7.  Scanner Module Overview 19.8.  Scanning Modes 19.8.1.  Concurrent Mode 19.8.2.  Burst Mode 19.8.3.  Peek Mode 19.8.4.  Triggered Mode 19.9.  Configuring the Scanner 19.10.  Scanner Interrupts 19.10.1.  Operation During Interrupts 19.11.  WWDT Interaction 19.12.  Operation During Sleep 19.13.  Peripheral Module Disable 19.14.  Register Definitions: CRC and Scanner Control 19.14.1.  CRCCON0 19.14.2.  CRCCON1 19.14.3.  CRCCON2 19.14.4.  CRCDATA 19.14.5.  CRCOUT 19.14.6.  CRCSHIFT 19.14.7.  CRCXOR 19.14.8.  SCANCON0 19.14.9.  SCANLADR 19.14.10.  SCANHADR 19.14.11.  SCANDPS 19.14.12.  SCANTRIG 19.15.  Register Summary - CRC 20.  PMD - Peripheral Module Disable 20.1.  Overview 20.2.  Disabling a Module 20.3.  Enabling a Module 20.4.  Register Definitions: Peripheral Module Disable 20.4.1.  PMD Control Register 0 20.4.2.  PMD Control Register 1 20.4.3.  PMD Control Register 2 20.4.4.  PMD Control Register 3 20.4.5.  PMD Control Register 4 20.5.  Register Summary - PMD 21.  CLKREF - Reference Clock Output Module 21.1.  Clock Source 21.1.1.  Clock Synchronization 21.2.  Programmable Clock Divider 21.3.  Selectable Duty Cycle 21.4.  Operation in Sleep Mode 21.5.  Register Definitions: Reference Clock 21.5.1.  CLKRCON 21.5.2.  CLKRCLK 21.6.  Register Summary - Reference CLK 22.  TMR0 - Timer0 Module 22.1.  Timer0 Operation 22.1.1.  8-Bit Mode 22.1.2.  16-Bit Mode 22.2.  Clock Selection 22.2.1.  Synchronous Mode 22.2.2.  Asynchronous Mode 22.2.3.  Programmable Prescaler 22.2.4.  Programmable Postscaler 22.3.  Timer0 Output and Interrupt 22.3.1.  Timer0 Output 22.3.2.  Timer0 Interrupt 22.3.3.  Timer0 Example 22.4.  Operation During Sleep 22.5.  Register Definitions: Timer0 Control 22.5.1.  T0CON0 22.5.2.  T0CON1 22.5.3.  TMR0H 22.5.4.  TMR0L 22.6.  Register Summary - Timer0 23.  TMR1 - Timer1 Module with Gate Control 23.1.  Timer1 Operation 23.2.  Clock Source Selection 23.2.1.  Internal Clock Source 23.2.2.  External Clock Source 23.3.  Timer1 Prescaler 23.4.  Secondary Oscillator 23.5.  Timer1 Operation in Asynchronous Counter Mode 23.5.1.  Reading and Writing TMRx in Asynchronous Counter Mode 23.6.  Timer1 16-Bit Read/Write Mode 23.7.  Timer1 Gate 23.7.1.  Timer1 Gate Enable 23.7.2.  Timer1 Gate Source Selection 23.7.3.  Timer1 Gate Toggle Mode 23.7.4.  Timer1 Gate Single Pulse Mode 23.7.5.  Timer1 Gate Value Status 23.7.6.  Timer1 Gate Event Interrupt 23.8.  Timer1 Interrupt 23.9.  Timer1 Operation During Sleep 23.10.  CCP Capture/Compare Time Base 23.11.  CCP Special Event Trigger 23.12.  Peripheral Module Disable 23.13.  Register Definitions: Timer1 Control 23.13.1.  TxCON 23.13.2.  TxGCON 23.13.3.  TxCLK 23.13.4.  TxGATE 23.13.5.  TMRx 23.14.  Register Summary - Timer1 24.  TMR2 - Timer2 Module 24.1.  Timer2 Operation 24.1.1.  Free-Running Period Mode 24.1.2.  One Shot Mode 24.1.3.  Monostable Mode 24.2.  Timer2 Output 24.3.  External Reset Sources 24.4.  Timer2 Interrupt 24.5.  PSYNC Bit 24.6.  CSYNC Bit 24.7.  Operating Modes 24.8.  Operation Examples 24.8.1.  Software Gate Mode 24.8.2.  Hardware Gate Mode 24.8.3.  Edge Triggered Hardware Limit Mode 24.8.4.  Level Triggered Hardware Limit Mode 24.8.5.  Software Start One Shot Mode 24.8.6.  Edge Triggered One Shot Mode 24.8.7.  Edge Triggered Hardware Limit One Shot Mode 24.8.8.  Level Reset, Edge Triggered Hardware Limit One Shot Modes 24.8.9.  Edge Triggered Monostable Modes 24.8.10.  Level Triggered Hardware Limit One Shot Modes 24.9.  Timer2 Operation During Sleep 24.10.  Register Definitions: Timer2 Control 24.10.1.  TxTMR 24.10.2.  TxPR 24.10.3.  TxCON 24.10.4.  TxHLT 24.10.5.  TxCLKCON 24.10.6.  TxRST 24.11.  Register Summary - Timer2 25.  CCP - Capture/Compare/PWM Module 25.1.  CCP Module Configuration 25.1.1.  CCP Modules and Timer Resources 25.1.2.  Open-Drain Output Option 25.2.  Capture Mode 25.2.1.  Capture Sources 25.2.2.  Timer1 Mode for Capture 25.2.3.  Software Interrupt Mode 25.2.4.  CCP Prescaler 25.2.5.  Capture During Sleep 25.3.  Compare Mode 25.3.1.  CCPx Pin Configuration 25.3.2.  Timer1 Mode for Compare 25.3.3.  Compare During Sleep 25.4.  PWM Overview 25.4.1.  Standard PWM Operation 25.4.2.  Setup for PWM Operation 25.4.3.  Timer2 Timer Resource 25.4.4.  PWM Period 25.4.5.  PWM Duty Cycle 25.4.6.  PWM Resolution 25.4.7.  Operation in Sleep Mode 25.4.8.  Changes in System Clock Frequency 25.4.9.  Effects of Reset 25.5.  Register Definitions: CCP Control 25.5.1.  CCPxCON 25.5.2.  CCPxCAP 25.5.3.  CCPRx 25.6.  Register Summary - CCP Control 26.  Capture, Compare, and PWM Timers Selection 26.1.  Register Definitions: Capture, Compare, and PWM Timers Selection 26.1.1.  CCP Timers Selection Register 26.2.  Register Summary - Capture, Compare, and PWM Timers Selection 27.  PWM - Pulse-Width Modulator with Compare 27.1.  Output Slices 27.1.1.  Output Polarity 27.1.2.  Operating Modes 27.1.2.1.  Left Aligned Mode 27.1.2.2.  Right Aligned Mode 27.1.2.3.  Center-Aligned Mode 27.1.2.4.  Variable Alignment Mode 27.1.2.5.  Compare Modes 27.1.2.5.1.  Pulsed Compare Mode 27.1.2.5.2.  Toggled Compare 27.1.3.  Push-Pull Mode 27.2.  Period Timer 27.3.  Clock Sources 27.3.1.  Clock Prescaler 27.4.  External Period Resets 27.5.  Buffered Period and Parameter Registers 27.6.  Synchronizing Multiple PWMs 27.7.  Interrupts 27.7.1.  Period Interrupt 27.7.1.1.  Period Interrupt Postscaler 27.7.2.  Parameter Interrupts 27.8.  Operation During Sleep 27.9.  Register Definitions: PWM Control 27.9.1.  PWMxERS 27.9.2.  PWMxCLK 27.9.3.  PWMxLDS 27.9.4.  PWMxPR 27.9.5.  PWMxCPRE 27.9.6.  PWMxPIPOS 27.9.7.  PWMxGIR 27.9.8.  PWMxGIE 27.9.9.  PWMxCON 27.9.10.  PWMxSaCFG 27.9.11.  PWMxSaP1 27.9.12.  PWMxSaP2 27.9.13.  PWMLOAD 27.9.14.  PWMEN 27.10.  Register Summary - PWM 28.  CLC - Configurable Logic Cell 28.1.  CLC Setup 28.1.1.  Data Selection 28.1.2.  Data Gating 28.1.3.  Logic Function 28.1.4.  Output Polarity 28.2.  CLC Interrupts 28.3.  Effects of a Reset 28.4.  Output Mirror Copies 28.5.  Operation During Sleep 28.6.  CLC Setup Steps 28.7.  Register Overlay 28.8.  Register Definitions: Configurable Logic Cell 28.8.1.  CLCSELECT 28.8.2.  CLCnCON 28.8.3.  CLCnPOL 28.8.4.  CLCnSEL0 28.8.5.  CLCnSEL1 28.8.6.  CLCnSEL2 28.8.7.  CLCnSEL3 28.8.8.  CLCnGLS0 28.8.9.  CLCnGLS1 28.8.10.  CLCnGLS2 28.8.11.  CLCnGLS3 28.8.12.  CLCDATA 28.9.  Register Summary - CLC Control 29.  CLB - Configurable Logic Block 29.1.  CLB Module Enable 29.2.  Basic Logic Element (BLE) 29.3.  Dedicated 3-Bit Counter 29.4.  CLB Module Inputs 29.4.1.  CLB Software Input Registers 29.4.2.  Programmable Edge Detectors 29.5.  CLB Module Outputs 29.5.1.  CLB Software Outputs 29.5.2.  CLB Peripheral Connections 29.5.3.  CLB PPS Outputs 29.6.  CLB Clock Selection 29.7.  CLB Interrupts 29.8.  Operation During Sleep Mode 29.9.  CLB Configuration 29.9.1.  CLB Automatic Configuration 29.10.  CLB Debug 29.11.  Register Definitions: Configurable Logic Block 29.11.1.  CLB Control Register 29.11.2.  CLB Software Input Register Upper Byte 29.11.3.  CLB Software Input Register High Byte 29.11.4.  CLB Software Input Register Middle Byte 29.11.5.  CLB Software Input Register Low Byte 29.11.6.  CLB Clock Selection 29.11.7.  CLB Software Output Register High Byte 29.11.8.  CLB Software Output Register Low Byte 29.11.9.  CLB Debug Selection 0 Register 29.12.  Register Summary - CLB Control 30.  MSSP - Host Synchronous Serial Port Module 30.1.  SPI Mode Overview 30.1.1.  SPI Mode Registers 30.1.2.  SPI Mode Operation 30.1.2.1.  SPI Host Mode 30.1.2.2.  SPI Client Mode 30.1.2.3.  Daisy-Chain Configuration 30.1.2.4.  Client Select Synchronization 30.1.2.5.  SPI Operation in Sleep Mode 30.2.  I2C Mode Overview 30.2.1.  I2C Mode Registers 30.2.2.  I2C Mode Operation 30.2.2.1.  Definition of I2C Terminology 30.2.2.2.  Byte Format 30.2.2.3.  SDA and SCL Pins 30.2.2.4.  SDA Hold Time 30.2.2.5.  Clock Stretching 30.2.2.6.  Arbitration 30.2.2.7.  Start Condition 30.2.2.8.  Stop Condition 30.2.2.9.  Start/Stop Condition Interrupt Masking 30.2.2.10.  Restart Condition 30.2.2.11.  Acknowledge Sequence 30.2.3.  I2C Client Mode Operation 30.2.3.1.  Client Mode Addresses 30.2.3.1.1.  I2C Client 7-Bit Addressing Mode 30.2.3.1.2.  I2C Client 10-Bit Addressing Mode 30.2.3.2.  Clock Stretching 30.2.3.2.1.  Normal Clock Stretching 30.2.3.2.2.  10-Bit Addressing Mode 30.2.3.2.3.  Byte NACKing 30.2.3.3.  Clock Synchronization and the CKP Bit 30.2.3.4.  General Call Address Support 30.2.3.5.  SSP Mask Register 30.2.3.6.  Client Reception 30.2.3.6.1.  7-Bit Addressing Reception 30.2.3.6.2.  7-Bit Reception with AHEN and DHEN 30.2.3.6.3.  Client Mode 10-Bit Address Reception 30.2.3.6.4.  10-Bit Addressing with Address or Data Hold 30.2.3.7.  Client Transmission 30.2.3.7.1.  Client Mode Bus Collision 30.2.3.7.2.  7-Bit Transmission 30.2.3.7.3.  7-Bit Transmission with Address Hold Enabled 30.2.4.  I2C Host Mode 30.2.4.1.  I2C Host Mode Operation 30.2.4.1.1.  Clock Arbitration 30.2.4.1.2.  WCOL Status Flag 30.2.4.1.3.  I2C Host Mode Start Condition Timing 30.2.4.1.4.  I2C Host Mode Repeated Start Condition Timing 30.2.4.1.5.  Acknowledge Sequence Timing 30.2.4.1.5.1.  Acknowledge Write Collision 30.2.4.1.6.  Stop Condition Timing 30.2.4.1.6.1.  Write Collision on Stop 30.2.4.1.7.  Sleep Operation 30.2.4.1.8.  Effects of a Reset 30.2.4.2.  I2C Host Mode Transmission 30.2.4.2.1.  BF Status Flag 30.2.4.2.2.  WCOL Status Flag 30.2.4.2.3.  ACKSTAT Status Flag 30.2.4.2.4.  Typical Transmit Sequence 30.2.4.3.  I2C Host Mode Reception 30.2.4.3.1.  BF Status Flag 30.2.4.3.2.  SSPOV Status Flag 30.2.4.3.3.  WCOL Status Flag 30.2.4.3.4.  Typical Receive Sequence 30.2.5.  Multi-Host Mode 30.2.5.1.  Multi-Host Communication, Bus Collision and Bus Arbitration 30.2.5.1.1.  Bus Collision During a Start Condition 30.2.5.1.2.  Bus Collision During a Repeated Start Condition 30.2.5.1.3.  Bus Collision During a Stop Condition 30.3.  Baud Rate Generator 30.4.  Register Definitions: MSSP Control 30.4.1.  SSPxBUF 30.4.2.  SSPxADD 30.4.3.  SSPxMSK 30.4.4.  SSPxSTAT 30.4.5.  SSPxCON1 30.4.6.  SSPxCON2 30.4.7.  MSSP Control Register 3 30.5.  Register Summary - MSSP Control 31.  EUSART - Enhanced Universal Synchronous Asynchronous Receiver Transmitter 31.1.  EUSART Asynchronous Mode 31.1.1.  EUSART Asynchronous Transmitter 31.1.1.1.  Enabling the Transmitter 31.1.1.2.  Transmitting Data 31.1.1.3.  Transmit Data Polarity 31.1.1.4.  Transmit Interrupt Flag 31.1.1.5.  TSR Status 31.1.1.6.  Transmitting 9-Bit Characters 31.1.1.7.  Asynchronous Transmission Setup 31.1.2.  EUSART Asynchronous Receiver 31.1.2.1.  Enabling the Receiver 31.1.2.2.  Receiving Data 31.1.2.3.  Receive Interrupts 31.1.2.4.  Receive Framing Error 31.1.2.5.  Receive Overrun Error 31.1.2.6.  Receiving 9-Bit Characters 31.1.2.7.  Address Detection 31.1.2.8.  Asynchronous Reception Setup 31.1.2.9.  9-Bit Address Detection Mode Setup 31.2.  Clock Accuracy with Asynchronous Operation 31.3.  EUSART Baud Rate Generator (BRG) 31.3.1.  Auto-Baud Detect 31.3.2.  Auto-Baud Overflow 31.3.3.  Auto-Wake-Up on Break 31.3.3.1.  Special Considerations 31.3.4.  Break Character Sequence 31.3.4.1.  Break and Sync Transmit Sequence 31.3.5.  Receiving a Break Character 31.4.  EUSART Synchronous Mode 31.4.1.  Synchronous Host Mode 31.4.1.1.  Host Clock 31.4.1.2.  Clock Polarity 31.4.1.3.  Synchronous Host Transmission 31.4.1.4.  Synchronous Host Transmission Setup 31.4.1.5.  Synchronous Host Reception 31.4.1.6.  Client Clock 31.4.1.7.  Receive Overrun Error 31.4.1.8.  Receiving 9-Bit Characters 31.4.1.9.  Synchronous Host Reception Setup 31.4.2.  Synchronous Client Mode 31.4.2.1.  EUSART Synchronous Client Transmit 31.4.2.2.  Synchronous Client Transmission Setup 31.4.2.3.  EUSART Synchronous Client Reception 31.4.2.4.  Synchronous Client Reception Setup 31.5.  EUSART Operation During Sleep 31.5.1.  Synchronous Receive During Sleep 31.5.2.  Synchronous Transmit During Sleep 31.6.  Register Definitions: EUSART Control 31.6.1.  TXxSTA 31.6.2.  RCxSTA 31.6.3.  BAUDxCON 31.6.4.  RCxREG 31.6.5.  TXxREG 31.6.6.  SPxBRG 31.7.  Register Summary - EUSART 32.  ADC - Analog-to-Digital Converter with Computation Module 32.1.  ADC Configuration 32.1.1.  Port Configuration 32.1.2.  Channel Selection 32.1.2.1.  Channel Grouping 32.1.3.  ADC Voltage Reference 32.1.4.  Conversion Clock 32.1.5.  Interrupts 32.1.6.  Result Formatting 32.2.  ADC Operation 32.2.1.  Starting a Conversion 32.2.2.  Completion of a Conversion 32.2.3.  ADC Operation During Sleep 32.2.4.  External Trigger During Sleep 32.2.5.  Auto-Conversion Trigger 32.2.6.  ADC Conversion Procedure (Basic Mode) 32.3.  ADC Acquisition Requirements 32.4.  Computation Operation 32.4.1.  Digital Filter/Average 32.4.2.  Basic Mode 32.4.3.  Accumulate Mode 32.4.4.  Average Mode 32.4.5.  Burst Average Mode 32.4.6.  Low-Pass Filter Mode 32.4.7.  Threshold Comparison 32.4.8.  Repetition and Sampling Options 32.4.8.1.  Continuous Sampling Mode 32.4.8.2.  Double Sample Conversion 32.4.9.  Capacitive Voltage Divider (CVD) Features 32.4.9.1.  CVD Operation 32.4.9.2.  Precharge Control 32.4.9.3.  Acquisition Control for CVD (ADPRE > 0) 32.4.9.4.  Guard Ring Outputs 32.4.9.5.  Additional Sample-and-Hold Capacitance 32.5.  Register Definitions: ADC Control 32.5.1.  ADCON0 32.5.2.  ADCON1 32.5.3.  ADCON2 32.5.4.  ADCON3 32.5.5.  ADSTAT 32.5.6.  ADCLK 32.5.7.  ADREF 32.5.8.  ADPCH 32.5.9.  ADPRE 32.5.10.  ADACQ 32.5.11.  ADCAP 32.5.12.  ADRPT 32.5.13.  ADCNT 32.5.14.  ADFLTR 32.5.15.  ADRES 32.5.16.  ADPREV 32.5.17.  ADACC 32.5.18.  ADSTPT 32.5.19.  ADERR 32.5.20.  ADLTH 32.5.21.  ADUTH 32.5.22.  ADACT 32.5.23.  ADCGxA 32.5.24.  ADCGxB 32.5.25.  ADCGxC 32.5.26.  ADCGxD 32.5.27.  ADCGxE 32.6.  Register Summary - ADC 33.  DAC - Digital-to-Analog Converter Module 33.1.  Output Voltage Selection 33.2.  Ratiometric Output Level 33.3.  Buffered DAC Output Range Selection 33.4.  Operation During Sleep 33.5.  Effects of a Reset 33.6.  Register Definitions: DAC Control 33.6.1.  DACxCON 33.6.2.  DACxDAT 33.7.  Register Summary - DAC 34.  CMP - Comparator Module 34.1.  Comparator Overview 34.2.  Comparator Control 34.2.1.  Comparator Enable 34.2.2.  Comparator Output 34.2.3.  Comparator Output Polarity 34.2.4.  Comparator Output Synchronization 34.2.5.  Comparator Speed/Power Selection 34.3.  Comparator Hysteresis 34.4.  Comparator Interrupt 34.5.  Comparator Positive Input Selection 34.6.  Comparator Negative Input Selection 34.7.  Comparator Response Time 34.8.  Analog Input Connection Considerations 34.9.  Operation in Sleep Mode 34.10.  ADC Auto-Trigger Source 34.11.  Register Definitions: Comparator Control 34.11.1.  CMxCON0 34.11.2.  CMxCON1 34.11.3.  CMxNCH 34.11.4.  CMxPCH 34.11.5.  CMOUT 34.12.  Register Summary - Comparator 35.  HLVD - High/Low-Voltage Detect 35.1.  Operation 35.2.  Setup 35.3.  Current Consumption 35.4.  HLVD Start-Up Time 35.5.  Applications 35.6.  Operation During Sleep 35.7.  Operation During Idle and Doze Modes 35.8.  Effects of a Reset 35.9.  Register Definitions: HLVD Control 35.9.1.  High/Low-Voltage Detect Control Register 0 35.9.2.  High/Low-Voltage Detect Control Register 1 35.10.  Register Summary - HLVD 36.  FVR - Fixed Voltage Reference 36.1.  Independent Gain Amplifiers 36.2.  FVR Stabilization Period 36.3.  Register Definitions: FVR 36.3.1.  FVRCON 36.4.  Register Summary - FVR 37.  Temperature Indicator Module 37.1.  Module Operation 37.1.1.  Temperature Indicator Range 37.1.2.  Minimum Operating VDD 37.2.  Temperature Calculation 37.3.  ADC Acquisition Time 37.4.  Register Definitions: Temperature Indicator 37.4.1.  FVRCON 37.5.  Register Summary - Temperature Indicator 38.  Charge Pump 38.1.  Manually Enabled 38.2.  Automatically Enabled 38.3.  Disabled 38.4.  Charge Pump Oscillator 38.5.  Charge Pump Threshold 38.6.  Charge Pump Ready 38.7.  Register Definitions: Charge Pump 38.7.1.  CPCON 38.8.  Register Summary - Charge Pump 39.  Instruction Set Summary 39.1.  Read-Modify-Write Operations 39.2.  Standard Instruction Set 39.2.1.  Standard Instruction Set
 40.  ICSP™ - In-Circuit Serial Programming™ 40.1.  High-Voltage Programming Entry Mode 40.2.  Low-Voltage Programming Entry Mode 40.3.  Common Programming Interfaces 41.  Register Summary 42.  Electrical Specifications 42.1.  Absolute Maximum Ratings 42.2.  Standard Operating Conditions 42.3.  DC Characteristics 42.3.1.  Supply Voltage 42.3.2.  Supply Current (IDD)(1) 42.3.3.  Power-Down Current (IPD)(1,2,3) 42.3.4.  I/O Ports 42.3.5.  Memory Programming Specifications 42.3.6.  Thermal Characteristics 42.4.  AC Characteristics 42.4.1.  External Clock/Oscillator Timing Requirements 42.4.2.  Internal Oscillator Parameters(1) 42.4.3.  PLL Specifications 42.4.4.  I/O and CLKOUT Timing Specifications 42.4.5.  Reset, WDT, Power-up Timer, and Brown-Out Reset Specifications 42.4.6.  High/Low-Voltage Detect Characteristics 42.4.7.  10-Bit Analog-to-Digital Converter (ADC) Accuracy Specifications(1,2) 42.4.8.  10-Bit Analog-to-Digital Converter (ADC) Conversion Timing Specifications 42.4.9.  10-Bit DAC Specifications 42.4.10.  Comparator Specifications 42.4.11.  Fixed Voltage Reference (FVR) Specifications 42.4.12.  Temperature Indicator Requirements 42.4.13.  Timer0 and Timer1 External Clock Requirements 42.4.14.  Capture/Compare/PWM Requirements (CCP) 42.4.15.  EUSART Synchronous Transmission Requirements 42.4.16.  EUSART Synchronous Receive Requirements 42.4.17.  SPI Mode Requirements 42.4.18.  I2C Bus Start/Stop Bits Requirements 42.4.19.  I2C Bus Data Requirements 42.4.20.  Configurable Logic Cell (CLC) Characteristics 42.4.21.  Configurable Logic Block (CLB) Characteristics 43.  DC and AC Characteristics Graphs and Tables 44.  Packaging Information 44.1.  Package Details 45.  Appendix A: Revision History Product Identification System Microchip Information Trademarks Legal Notice Microchip Devices Code Protection Feature Product Page Links