Microchip logo
  • All
  • Products
  • Documents
  • Applications Notes
×

8-Bit MCUs

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.

PIC18F16Q40-REB-FlipFlop2

Take your next idea to market with a cost-effective development board that you can keep in your pocket. With its full programming and debugging capabilities, the PIC18F16Q40 Curiosity Nano Evaluation kit (EV70C97A) offers complete support for your next design. 

 

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.

 

Responsive Operation

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.

Improved System Performance

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.

Reduced Costs and Board Space

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.

Design Flexibility

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.

Intelligent Analog

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

Analog-to-Digital Converter with Computation (ADCC)
+

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.

More Information

Digital-to-Analog Converter (DAC)
+

The 8-bit buffered Digital-to-Analog Converter (DAC) provides an accurate reference to an on-board comparator module in closed-loop control applications.

More Information

Zero Cross Detect (ZCD)
+

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.

More Information

Configurable Logic Cell (CLC)
+

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.

More Information

16-bit Pulse-Width Modulator (PWM)
+

The 16-bit Pulse-Width Modulator (PWM) provides high-resolution performance with an independent time base for flexible use in a variety of applications.

More Information

Complementary Waveform Generator (CWG)
+

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. 

More Information

Capture Compare PWM (CCP)
+

The Capture Compare PWM provides 16-bit signal capture and compare, as well as 10-bit PWM output functionality.

Data Signal Modulator (DSM)
+

The Data Signal Modulator (DSM) offers smooth signal switching. It can be paired with the 16-bit PWM to create LED dimming engine functionality.

More Information

Hardware Limit Timer (HLT)
+

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.

More Information

CRC/SCAN Module and Windowed Watchdog Timer (WWDT)
+

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.

More Information on CRC/SCAN

More Information on WWDT

Peripheral Pin Select (PPS)
+

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. 

More Information

Direct Memory Access (DMA)
+

Direct Memory Access (DMA) is used to move data among Flash, EEPROM, RAM and peripherals without intervention from the CPU.

More Information

Advanced Memory Features
+

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.

Power-Conserving Functionality
+

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
  • ZCD
  • 32-bit CRC
  • WWDT
  • PPS
  • Three UART, SPI and I2C interfaces
  • Available in 14- and 20-pin packages