- 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
- Core Independent
- Functional Safety
- PIC Hardware
- PIC Software
- AVR Hardware
- AVR Software
8-bit Development Tools
PIC18F K40 Product Family
Core Independent Peripherals now available on PIC18
The PIC18F K40 family continues our longstanding tradition of innovation in 8-bit MCUs by bringing the popular Core Independent Peripherals (CIPs) to the PIC18 product line. These cost optimized MCUs consist of 10 new devices ranging from 16-128 KB of flash memory with package options covering 28-64 pins. They are well suited for a broad range of applications and market segments including touch sensing, industrial control, consumer, automotive and Internet of Things (IoT). The devices include a full complement of Core Independent Peripherals for safety critical applications (CRC / Memory Scan, Windowed Watchdog Timer, and Hardware Limit Timer), up to seven hardware PWMs and multiple communications interfaces. Additionally, family offers Intelligent Analog peripherals including Zero Cross Detect (ZCD), on-chip comparator and ADC with Computation (ADC2).
Design in Man-Weeks, Not Man-Months
CIPs abstract commonly requested system functions into flexible on-chip hardware modules. This not only increases the PIC18F K40 family’s throughput and CPU bandwidth; it also enables a significant reduction in software design effort necessary to architect those functions. For example, the ADC2 is an intelligent Analog to Digital Converter which accelerates the data acquisition and signal analysis functions required in sensor interface applications, such as capacitive touch sensing. The ADC2 handles the signal analysis functions of averaging, filtering, oversampling and automatic threshold comparison independent of the CPU.
The PIC18F K40 product family is also supported by MPLAB® Code Configurator (MCC), a free software plug-in that provides a graphical interface to configure peripherals and functions specific to your application. MCC is incorporated into our award-winning Integrated Development Environments (IDEs), the downloadable MPLAB X IDE and the cloud-based MPLAB Xpress IDE. Additionally, several Xpress code examples are available to help designers start development immediately.
Building Blocks for Real-Time Control
The Analog to Digital Converter with Computation 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 module can monitor AC line voltage and indicate zero crossing activity. This information is made directly available to the on-board Waveform Generation peripherals for use in TRIAC control applications, greatly reducing both CPU demand and overall development cost by lowering the bill of materials.
The 10-bit PWM provides edge-aligned output which can be used with the Complementary Waveform Generator.
Complementary Waveform Generator 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, auto restart and can interface directly with other peripherals/external inputs.
The Hardware Limit Timer can detect faults in motors, power supplies, and other external devices. It can automatically notify the system to make provisions to shut down and/or safely restart.
The CRC/SCAN module and the Windowed Watchdog Timer work in tandem to provide engineers with the tools necessary to incorporate functional safety into their application. By ensuring the integrity of the program FLASH contents, PICF19197 devices support the implementation of safety standards such as Class B and UL 1998.
Peripheral Pin Select 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 users to maintain layout compatibility with older PIC® MCUs, even as new features are implemented.
PIC18F K40 Key Attributes
- 64MHz Internal Oscillator
- Up to 128KB Flash Program Memory
- Up to 1K Data EEPROM
- Up to 3728B Data SRAM
- 10-bit ADC2 (ADC with Computation), up to 35 channels
- Four 16-bit Timers
- Two Comparators
- Zero Cross Detect (ZCD)
- Windowed Watch Dog Timer (WWDT)
- Peripheral Pin Select (PPS)
- Temperature Indicator
- Complementary Waveform Generator (CWG)
- Data Signal Modulator (DSM)
- 5-bit DAC
- 10-bit PWMs with complement generation
- EUSART, SPI, and I2C
- Available in 28-, 40-, 44-, 48- and 64-pins