PIC18F06/16Q40 14/20-Pin, Low-Power, High-Performance Microcontroller with XLP Technology Introduction The PIC18-Q40 microcontroller family is available in 14/20-pin devices for real-time control applications. This family features a 12-bit ADC with Computation (ADCC) automating Capacitive Voltage Divider (CVD) techniques for advanced capacitive touch sensing, averaging, filtering, oversampling and threshold comparison and two 8-bit DAC modules. The family showcases a 16-bit Pulse-Width Modulator (PWM) module which provides dual independent outputs on the same time base. Additional features include vectored interrupt controller with fixed latency for handling interrupts, system bus arbiter, Direct Memory Access (DMA) capabilities, UART with support for asynchronous, DMX, Digital Addressable Lighting Interface (DALI) and Local Interconnect Network (LIN) protocols, Serial Peripheral 2 Interface (SPI), I C and a programmable 32-bit Cyclic Redundancy Check (CRC) with memory scan. This family also includes memory features such as Memory Access Partition (MAP) to support users in data protection and bootloader applications and Device Information Area (DIA), which stores factory calibration values to help improve temperature sensor accuracy. PIC18-Q40 Family Types Table 1. Devices included in this data sheet PIC18F06Q40 64k 4096 512 Y/Y 12/Y 2/3 3/1 1 1 1 4 11 2 2/1 1 2/1 2/1 4 Y Y Y Y Y PIC18F16Q40 64k 4096 512 Y/Y 18/Y 2/3 3/1 1 1 1 4 17 2 2/1 1 2/1 2/1 4 Y Y Y Y Y Preliminary Datasheet DS40002216D-page 1 2020-2021 Microchip Technology Inc. and its subsidiaries Device Program Memory Flash (bytes) Data SRAM (bytes) Data EEPROM (bytes) Memory Access Partition/ Device Information Area I/O Pins/ Peripheral Pin Select 8-Bit Timer with HLT/ 16-Bit Timers 16-Bit Dual PWM/ CCP Complimentary Waveform Generator Signal Measurement Timer Numerically Controlled Oscillator Configurable Logic Cell 12-Bit ADCC (channels) 8-Bit DAC Comparator/ Zero-Cross Detect High-Low Voltage Detect 2 SPI / I C UART/ UART with Protocol Support Direct Memory Access (DMA) Windowed Watchdog Timer 32-Bit CRC with Scanner Vectored Interrupts Peripheral Module Disable Temperature Indicator PIC18F06/16Q40 Table 2. Devices not included in this data sheet PIC18F04Q40 16k 1024 512 Y/Y 12/Y 2/3 3/1 1 1 1 4 11 2 2/1 1 2/1 2/1 4 Y Y Y Y Y PIC18F05Q40 32k 2048 512 Y/Y 12/Y 2/3 3/1 1 1 1 4 11 2 2/1 1 2/1 2/1 4 Y Y Y Y Y PIC18F14Q40 16k 1024 512 Y/Y 18/Y 2/3 3/1 1 1 1 4 17 2 2/1 1 2/1 2/1 4 Y Y Y Y Y PIC18F15Q40 32k 2048 512 Y/Y 18/Y 2/3 3/1 1 1 1 4 17 2 2/1 1 2/1 2/1 4 Y Y Y Y Y Features C Compiler Optimized RISC Architecture Operating Speed: DC 64 MHz clock input 62.5 ns minimum instruction cycle Four Direct Memory Access (DMA) Controllers: Data transfers to SFR/GPR spaces from either Program Flash Memory, Data EEPROM or SFR/GPR spaces User programmable source and destination sizes Hardware and software triggered data transfers Vectored Interrupt Capability: Selectable high/low priority Fixed interrupt latency of three instruction cycles Programmable vector table base address Backwards compatible with previous interrupt capabilities 128-Level Deep Hardware Stack Low-Current Power-on Reset (POR) Configurable Power-up Timer (PWRT) Brown-out Reset (BOR) Low-Power BOR (LPBOR) Option Windowed Watchdog Timer (WWDT): Watchdog Reset on too long or too short interval between watchdog clear events Variable prescaler selection Variable window size selection Memory Up to 64 KB of Program Flash Memory Up to 4 KB of Data SRAM Memory 512 Bytes Data EEPROM Memory Access Partition: The Program Flash Memory can be partitioned into: Application Block Boot Block Storage Area Flash (SAF) Block Programmable Code Protection and Write Protection DS40002216D-page 2 Preliminary Datasheet 2020-2021 Microchip Technology Inc. and its subsidiaries Device Program Memory Flash (bytes) Data SRAM (bytes) Data EEPROM (bytes) Memory Access Partition/ Device Information Area I/O Pins/ Peripheral Pin Select 8-Bit Timer with HLT/ 16-Bit Timers 16-Bit Dual PWM/ CCP Complimentary Waveform Generator Signal Measurement Timer Numerically Controlled Oscillator Configurable Logic Cell 2 12-Bit ADC (channels) 8-Bit DAC Comparator/ Zero-Cross Detect High-Low Voltage Detect 2 SPI / I C UART/ UART with Protocol Support Direct Memory Access (DMA) Windowed Watchdog Timer 32-Bit CRC with Scanner Vectored Interrupts Peripheral Module Disable Temperature Indicator