We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X
Maximize Your Experience: Reap the Personalized Advantages by Completing Your Profile to Its Fullest! Update Here
Stay in the loop with the latest from Microchip! Update your profile while you are at it. Update Here
Complete your profile to access more resources.Update Here!
Item Qty
Your cart is empty.

Compact Microcontroller (MCU) With Advanced Logic Customization 

The PIC16F13145 family of MCUs addresses the demand for on-chip digital logic through the new Configurable Logic Block (CLB) module, which removes the need for external logic chips. This peripheral expands upon integrated hardware-based logic through software reconfiguration and peripheral interconnections. The CLB can be quickly configured using the GUI-based tool offered as part of MPLAB® Code Configurator (MCC).

Configurable Logic Block (CLB) Module


Operating autonomously from the CPU, the CLB ensures rapid and consistent response times by performing hardware-based digital logic. The CLB accommodates an array of 32 fundamental logic elements, each capable of simulating an AND/OR/NAND/NOR gate, buffer/inverting buffer, D flip-flop, JK flip-flop, multiplexers or four-input LUT. The CLB also supports dynamic configuration for on-the-fly changes and tri-state logic. It is especially proficient in automotive and industrial environments while remaining versatile enough to suit a broad array of applications.

Configurable Logic Block (CLB) Traffic Light Demo

Discover the CLB in action with Microchip Try. Explore the state monitoring logic designed for a European traffic light system. Take control of the light and observe how the CLB recalculates to ensure a safe state. 

Getting Started


Unleash your dream logic configurations with the PIC16F13145 Curiosity Nano Evaluation Kit, a comprehensive solution for your next design. It is equipped with full on-board program and debug capabilities, so you can dive in immediately.

The PIC16F13145 family seamlessly integrates with MPLAB Code Configurator (MCC), a complimentary software plug-in for our acclaimed MPLAB X Integrated Development Environment (IDE). This tool offers a user-friendly graphical interface to effortlessly tailor peripherals and application-specific functions. It even includes a specialized CLB graphical interface to harness the CLB's unparalleled customization abilities. You can also access a range of code examples to immediately begin your development journey.

Image of MPLAB® Code Configurator logo

System Features


Configurable Logic Block (CLB)

Advanced Logic Customization 

The CLB module allows for the creation of hardware-based, custom combinational logic functions directly within the MCU. With this seamless integration, the CLB presents designers with a straightforward route to enhance the speed and responsiveness of their embedded control systems. Its independent operation from the CPU clock speed enhances system latency and delivers a low-power solution.

CLB Synthesizer

Configure Without Code

The CLB module brings a new level of customization to embedded systems. The on-chip logic blocks can be customized by the CLB graphical synthesizer in MPLAB Code Configurator (MCC). This allows you to visualize your designs without having to code.

Configurable Analog

10-bit ADCC

The high-speed Analog-to-Digital Converter with Computation (ADCC) automates signal analysis and data acquisition functions simplifying real-time control and capacitive sensing designs.  

Improved Data Acquisition

Fast Comparators

Our comparators boast a 50 ns response time, serving a wide range of applications requiring high-speed instrumentation, logic level shifting, threshold detection and various comparator-based commands. The on-chip configurable peripheral, a versatile and universally applicable feature, reduces costs and design time, providing all essential features for sophisticated embedded designs.

Family Offering (Pin Count Versus Memory)


Key Features


  • 32 MHz PIC16 CPU core
  • Up to 14 KB Flash program with independent control for code protection
  • Configurable boot memory and SAF area for storing data
  • Device Information Area (DIA) and Device Configuration Information (DCI)
  • Up to 1 KB User SRAM
  • One CLB module with 32 Basic Logic Elements (BLEs) and built-in counter
  • 32-bit Cyclic Redundancy Check (CRC) with built-in memory scanner that can operate from the core independently
  • 10-bit single-ended Analog-to-Digital Converter (ADC) with computation (300 ksps) and channel grouping, which allows multiple, simultaneous input connections to the ADC
  • One 8-bit programmable Digital-to-Analog Converter (DAC) with two buffered outputs    
  • Two high-speed comparators
  • Fixed Voltage Reference (FVR)
  • Temperature sensor with factory calibration
  • High precision internal oscillator (+/- 2% accuracy) with clock switching
  • Capabilities for external crystal oscillators and external clock
  • One MSSP module that can be configured as SPI or I2C (up to 400 KHz only)
  • One EUSART with auto baud
  • Three timers (combination of 8- and 16-bit timers with hardware limit features)

PIC16F131xx Product Family