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.
Building Blocks for Function Enablement
- 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
The 10-bit PWM provides edge-aligned output, which can be used with the Complementary Waveform Generator.
The Analog to Digital Converter with Computation (ADC2) helps accelerate common math tasks normally done in software by offering modes like averaging, low-pass filter, oversampling and threshold comparison.
The Hardware Limit Timer (HLT) 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.
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 users to maintain layout compatibility with older PIC® MCUs, even as new features are implemented.
The CRC/SCAN module and the Windowed Watchdog Timer (WWDT) 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, PIC18F "K40" devices support the implementation of safety standards such as Class B and UL 1998.
The Capture Compare PWM (CCP) provides 16-bit signal capture and compare, as well as 10-bit PWM output functionality.
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 Complementary Waveform Generator (CWG) provides a complementary waveform with rising and falling edge dead band control. It enables high-efficiency synchronous switching, with no processor overhead. CWG also incorporates auto shutdown, auto restart, and can interface directly with other peripherals/external inputs.