- PIC MCUs
- AVR MCUs
- 8051 MCUs
- Angular Timer
- Configurable Logic Cell
- Cyclic Redundancy Check
- Complementary Waveform Generator
- Direct Memory Access
- Event System
- High Endurance Flash
- Math Accelerator
- Numerically Controlled Oscillator
- Peripheral Pin Select
- Pulse-Width Modulation
- Temperature Indicator
- Timer Peripheral
- Windowed Watch Dog Timer
- Intelligent Analog
- Input and Output Features
- Core Independent
- Functional Safety
- Development Tools
8-bit Development Tools
PIC18-Q40 Product Family
Robust MCUs for Compact Embedded Designs
The PIC18-Q40 family of microcontrollers (MCUs) makes it easy for you to customize your next space-constrained design. Packing a high level of sophistication into a small 14- or 20-pin package, these MCUs combine powerful, versatile and highly configurable
Core Independent Peripherals (CIPs) with advanced interconnection capabilities to allow you to create custom application functions. Our comprehensive development tool suite with its Graphical User Interface (GUI) environment makes it easy to quickly
customize combinations of CIPs and generate application code. These MCUs are well suited for remote medical care devices, wearables, consumer, automotive, industrial and Internet of Things (IoT). If you need the same level of MCU performance
with additional analog features, PIC18-Q41 MCUs are an ideal solution.
The PIC18-Q40 family is designed to integrate with MPLAB® Code Configurator (MCC), a free software plug-in for our award-winning MPLAB X Integrated Development Environment(IDE), that provides a graphical interface to easily configure peripherals and functions specific to your application. Code examples are also available to help you immediately start your development.
CIPs enable smaller, lower-power MCUs to accomplish many timing-critical and core-intensive tasks in hardware without any intervention from the CPU. This reduces the use of Flash memory and frees up the CPU to focus on more complex system tasks or go to sleep to save power. Because you don’t need to create any additional code or use any extra discrete components, they simplify your design while also reducing power consumption, allowing for deterministic response times and decreasing validation time.
The PIC18-Q40 family features four Direct Memory Access (DMA) controllers to perform data transfers between all memory spaces and peripherals to boost system performance and improve power consumption.
To create customized hardware-based logic functions, the four user-configurable Configurable Logic Cells (CLCs) let you specify combinations of signals as inputs to a logic function and internally connect peripherals such as timers, Pulse-Width Modulators (PWMs), serial ports and I/O pins for easy hardware customization. Because the CLC enables a higher level of integration without the need for any external components, you can reduce your PCB footprint and system costs.
Delivering advanced capabilities beyond those found on standard PWM modules, the integrated, high-resolution 16-bit PWMs allow you to easily vary phase, duty cycle and offset event count with greater precision. They offer dual independent outputs on the same time base, which helps simplify drive control in a variety of applications. The flexible serial communications interface options include a UART with support for Asynchronous, DMX, DALI and LIN protocols, plus higher-speed, stand-alone I 2C and SPI modules.
The on-chip intelligent analog peripherals enable you to develop simple, efficient solutions. They include a Zero Cross Detect (ZCD) module, comparators, two 8-bit Digital-to-Analog Converter (DACs) and a 12-bit Analog-to-Digital Converter with Computation (ADCC) that automates Capacitive Voltage Divider (CVD) techniques for implementing advanced touch sensing, averaging, filtering, oversampling and automatic threshold comparison.
Building Blocks for Function Enablement
The Analog to Digital Converter with Computation (ADCC) helps accelerate common math tasks normally done in software by providing post-processing functions like averaging, low-pass filter, oversampling and threshold comparison.
The Zero Cross Detect (ZCD) module can monitor AC line voltage and indicate zero crossing activity. This information is made directly available to on-board waveform generation peripherals for use in TRIAC control applications, greatly reducing both CPU demand and BOM cost.
The Configurable Logic Cell (CLC) offers hardware-based combinational and sequential logic functions to simplify and accelerate many common tasks. The CLC can also be used as glue logic between peripherals, eliminating the need for CPU intervention during steady-state activity in complex control loops.
The Complementary Waveform Generator (CWG) provides a complementary waveform with rising and falling edge dead band control, enabling high-efficiency synchronous switching with no processor overhead. The CWG also incorporates auto shutdown and auto restart and can interface directly with other peripherals/external inputs.
The Capture Compare PWM provides 16-bit signal capture and compare, as well as 10-bit PWM output functionality.
8-bit and 16-bit timers are available on the MCU. The 8-bit timers are equipped with a Hardware Limit Timer (HLT) to detect faults in motors, power supplies and other external devices. The HLT can automatically notify the system to make provisions to shut down and/or safely restart.
The CRC/SCAN module and the Windowed Watchdog Timer (WWDT) work in tandem to provide the necessary tools to incorporate functional safety into your application. By ensuring the integrity of the program Flash contents, the devices support the implementation of safety standards such as Class B and UL 1998.
Peripheral Pin Select (PPS) provides ultimate flexibility when routing digital signals to device pins. With PPS, any digital peripheral can be connected to any I/O pin on the fly for a customized layout. This allows you to maintain layout compatibility with older PIC® MCUs, even as new features are implemented.
Memory Access Partition (MAP) supports data protection and bootloader applications. Device Information Area (DIA) is a dedicated memory space for factory-programmed device ID and peripheral calibration values.
IDLE and DOZE low-power modes allow you to optimize your application for device performance and power consumption. The Peripheral Module Disable (PMD) allows unused peripherals to be turned off individually, further reducing power consumption.
PIC18-Q40 Key Attributes
- 64 MHz internal oscillator
- Up to 64 KB Flash program memory
- Up to 4 KB data SRAM
- 512B data EEPROM
- Two 8-bit buffered DACs
- 12-bit ADCC with up to 17 channels
- Four DMA channels
- Three 16-bit dual PWMs
- Four CLCs
- Three CWGs
- Two analog comparators
- 32-bit CRC
- Three UART, SPI and I2C interfaces
- Available in 14- and 20-pin packages