© 2007 Microchip Technology Inc. Preliminary DS39616C PIC18F2331/2431/4331/4431 Data Sheet 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D DS39616C-page ii Preliminary © 2007 Microchip Technology Inc. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights. Trademarks The Microchip name and logo, the Microchip logo, Accuron, dsPIC, K EELOQ, KEELOQ logo, microID, MPLAB, PIC, PICmicro, PICSTART, PRO MATE, rfPIC and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. AmpLab, FilterLab, Linear Active Thermistor, Migratable Memory, MXDEV, MXLAB, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. Analog-for-the-Digital Age, Application Maestro, CodeGuard, dsPICDEM, dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Smart Serial, SmartTel, Total Endurance, UNI/O, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. © 2007, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. • Microchip is willing to work with the customer who is concerned about the integrity of their code. • Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.” Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Microchip received ISO/TS-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company’s quality system processes and procedures are for its PIC ® MCUs and dsPIC ® DSCs, KEELOQ ® code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. © 2007 Microchip Technology Inc. Preliminary DS39616C-page 1 14-Bit Power Control PWM Module: • Up to 4 Channels with Complementary Outputs • Edge or Center-Aligned Operation • Flexible Dead-Band Generator • Hardware Fault Protection Inputs • Simultaneous Update of Duty Cycle and Period: - Flexible Special Event Trigger output Motion Feedback Module: • Three Independent Input Capture Channels: - Flexible operating modes for period and pulse-width measurement - Special Hall sensor interface module - Special Event Trigger output to other modules • Quadrature Encoder Interface: - 2-phase inputs and one index input from encoder - High and low position tracking with direction status and change of direction interrupt - Velocity measurement High-Speed, 200 ksps 10-Bit A/D Converter: • Up to 9 Channels • Simultaneous, Two-Channel Sampling • Sequential Sampling: 1, 2 or 4 Selected Channels • Auto-Conversion Capability • 4-Word FIFO with Selectable Interrupt Frequency • Selectable External Conversion Triggers • Programmable Acquisition Time Flexible Oscillator Structure: • Four Crystal modes up to 40 MHz • Two External Clock modes up to 40 MHz • Internal Oscillator Block: - 8 user-selectable frequencies: 31 kHz to 8 MHz - OSCTUNE can compensate for frequency drift • Secondary Oscillator using Timer1 @ 32 kHz • Fail-Safe Clock Monitor: - Allows for safe shutdown of device if clock fails Power-Managed Modes: • Run: CPU on, Peripherals on • Idle: CPU off, Peripherals on • Sleep: CPU off, Peripherals off • Idle mode Currents Down to 5.8 μA, Typical • Sleep Current Down to 0.1 μA, Typical • Timer1 Oscillator, 1.8 μA, Typical, 32 kHz, 2V • Watchdog Timer (WDT), 2.1 μA, typical • Oscillator Two-Speed Start-up Peripheral Highlights: • High-Current Sink/Source 25 mA/25 mA • Three External Interrupts • Two Capture/Compare/PWM (CCP) modules: - Capture is 16-bit, max. resolution 6.25 ns (T CY/16) - Compare is 16-bit, max. resolution 100 ns (T CY) - PWM output: PWM resolution is 1 to 10 bits • Enhanced USART module: - Supports RS-485, RS-232 and LIN 1.2 - Auto-wake-up on Start bit - Auto-Baud Detect • RS-232 Operation using Internal Oscillator Block (no external crystal required) Special Microcontroller Features: • 100,000 Erase/Write Cycle Enhanced Flash Program Memory, Typical • 1,000,000 Erase/Write Cycle Data EEPROM Memory, Typical • Flash/Data EEPROM Retention: 100 Years • Self-Programmable under Software Control • Priority Levels for Interrupts • 8 x 8 Single-Cycle Hardware Multiplier • Extended Watchdog Timer (WDT): - Programmable period from 41 ms to 131s • Single-Supply In-Circuit Serial Programming™ (ICSP™) via Two Pins • In-Circuit Debug (ICD) via Two Pins: - Drives PWM outputs safely when debugging Device Program Memory Data Memory I/O 10-Bit A/D (ch) CCP SSP EUSART Quadrature Encoder 14-Bit PWM (ch) Timers 8/16-Bit Flash (bytes) # Single-Word Instructions SRAM (bytes) EEPROM (bytes) SPI Slave I 2 C™ PIC18F2331 8192 4096 768 256 24 5 2 Y Y Y Y 6 1/3 PIC18F2431 16384 8192 768 256 24 5 2 Y Y Y Y 6 1/3 PIC18F4331 8192 4096 768 256 36 9 2 Y Y Y Y 8 1/3 PIC18F4431 16384 8192 768 256 36 9 2 Y Y Y Y 8 1/3 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D PIC18F2331/2431/4331/4431 PIC18F2331/2431/4331/4431 DS39616C-page 2 Preliminary © 2007 Microchip Technology Inc. Pin Diagrams 28-Pin SPDIP, SOIC MCLR/VPP/RE3 RA0/AN0 RA1/AN1 RA2/AN2/V REF-/CAP1/INDX RA3/AN3/V REF+/CAP2/QEA RA4/AN4/CAP3/QEB AV DD AVSS OSC1/CLKI/RA7 OSC2/CLKO/RA6 RC0/T1OSO/T1CKI RC1/T1OSI/CCP2/FLTA RC2/CCP1/FLTB RC3/T0CKI/T5CKI/INT0 RB7/KBI3/PGD RB6/KBI2/PGC RB5/KBI1/PWM4/PGM (1) RB4/KBI0/PWM5 RB3/PWM3 RB2/PWM2 RB1/PWM1 RB0/PWM0 V DD VSS RC7/RX/DT/SDO RC6/TX/CK/SS RC5/INT2/SCK/SCL RC4/INT1/SDI/SDA 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 PIC18F2331/2431 Note 1: Low-Voltage Programming must be enabled. 28-Pin QFN PIC18F2331 2 3 6 1 18 19 20 21 15 7 16 17 RC0/T1OSO/T1CKI 5 4 RB7/KBI3/PGD RB6/KBI2/PGC RB5/KBI1/PWM4/PGM (1) RB4/KBI0/PWM5 RB3/PWM3 RB2/PWM2 RB1/PWM1 RB0/PWM0 V DD VSS RC7/RX/DT/SDO RC6/TX/CK/SS RC5/INT2/SCK/SCL RC4/INT1/SDI/SDA RA0/AN0 RA1/AN1 RA2/AN2/VREF-/CAP1/INDX RA3/AN3/V REF+/CAP2/QEA RA4/AN4/CAP3/QEB V DD VSS OSC1/CLKI/RA7 OSC2/CLKO/RA6 RC1/T1OSI/CCP2/FLTA RC2/CCP1/FLTB RC3/T0CKI/T5CKI/INT0 10 11 12 13 14 8 9 22 23 24 25 26 27 28 PIC18F2431 MCLR/VPP/RE3 Note 1: Low-Voltage Programming must be enabled. © 2007 Microchip Technology Inc. Preliminary DS39616C-page 3 PIC18F2331/2431/4331/4431 Pin Diagrams (Continued) 40-Pin PDIP RB7/KBI3/PGD RB6/KBI2/PGC RB5/KBI1/PWM4/PGM (2) RB4/KBI0/PWM5 RB3/PWM3 RB2/PWM2 RB1/PWM1 RB0/PWM0 V DD VSS RD7/PWM7 RD6/PWM6 RD5/PWM4 (4) RD4/FLTA (3) RC7/RX/DT/SDO RC6/TX/CK/SS RC5/INT2/SCK (1) /SCL (1) RC4/INT1/SDI (1) /SDA (1) RD3/SCK/SCL RD2/SDI/SDA MCLR/VPP/RE3 RA0/AN0 RA1/AN1 RA2/AN2/V REF-/CAP1/INDX RA3/AN3/V REF+/CAP2/QEA RA4/AN4/CAP3/QEB RA5/AN5/LVDIN RE0/AN6 RE1/AN7 RE2/AN8 AV DD AVSS OSC1/CLKI/RA7 OSC2/CLKO/RA6 RC0/T1OSO/T1CKI RC1/T1OSI/CCP2/FLTA RC2/CCP1/FLTB RC3/T0CKI (1) /T5CKI (1) /INT0 RD0/T0CKI/T5CKI RD1/SDO 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 PIC18F4331/4431 Note 1: RC3 is the alternate pin for T0CKI/T5CKI; RC4 is the alternate pin for SDI/SDA; RC5 is the alternate pin for SCK/SCL. 2: Low-Voltage Programming must be enabled. 3: RD4 is the alternate pin for FLTA . 4: RD5 is the alternate pin for PWM4. PIC18F2331/2431/4331/4431 DS39616C-page 4 Preliminary © 2007 Microchip Technology Inc. Pin Diagrams (Continued) 44-Pin TQFP 10 11 2 3 4 5 6 1 18 19 20 21 22 12 13 14 15 38 8 7 44 43 42 41 40 39 16 17 29 30 31 32 33 23 24 25 26 27 28 36 34 35 9 PIC18F4331 37 RA3/AN3/VREF+/CAP2/QEA RA2/AN2/V REF-/CAP1/INDX RA1/AN1 RA0/AN0 MCLR /VPP/RE3 NC RB7/KBI3/PGD RB6/KBI2/PGC RB5/KBI1/PWM4/PGM (2) RB4/KBI0/PWM5 NC RC6/TX/CK/SS RC5/INT2/SCK (1) /SCL (1) RC4/INT1/SDI (1) /SDA (1) RD3/SCK/SCL RD2/SDI/SDA RD1/SDO RD0/T0CKI/T5CKI RC3/T0CKI (1) /T5CKI (1) /INT0 RC2/CCP1/FLTB RC1/T1OSI/CCP2/FLTA NC NC RC0/T1OSO/T1CKI OSC2/CLKO/RA6 OSC1/CLKI/RA7 AV SS AVDD RE2/AN8 RE1/AN7 RE0/AN6 RA5/AN5/LVDIN RA4/AN4/CAP3/QEB RC7/RX/DT/SDO RD4/FLTA (3) RD5/PWM4 (4) RD6/PWM6 RD7/PWM7 V SS VDD RB0/PWM0 RB1/PWM1 RB2/PWM2 RB3/PWM3 PIC18F4431 Note 1: RC3 is the alternate pin for T0CKI/T5CKI; RC4 is the alternate pin for SDI/SDA; RC5 is the alternate pin for SCK/SCL. 2: Low-Voltage Programming must be enabled. 3: RD4 is the alternate pin for FLTA . 4: RD5 is the alternate pin for PWM4. © 2007 Microchip Technology Inc. Preliminary DS39616C-page 5 PIC18F2331/2431/4331/4431 Pin Diagrams (Continued) 44-Pin QFN 10 11 2 3 4 5 6 1 18 19 20 21 22 12 13 14 15 38 8 7 44 43 42 41 40 39 16 17 29 30 31 32 33 23 24 25 26 27 28 36 34 35 9 PIC18F4331 37 RA3/AN3/VREF+/CAP2/QEA RA2/AN2/V REF-/CAP1/INDX RA1/AN1 RA0/AN0 MCLR /VPP/RE3 RB3/PWM3 RB7/KBI3/PGD RB6/KBI2/PGC RB5/KBI1/PWM4/PGM (2) RB4/KBI0/PWM5 NC RC6/TX/CK/SS RC5/INT2/SCK (1) /SCL (1) RC4/INT1/SDI (1) /SDA (1) RD3/SCK/SCL RD2/SDI/SDA RD1/SDO RD0/T0CKI/T5CKI RC3/T0CKI (1) /T5CKI (1) /INT0 RC2/CCP1/FLTB RC1/T1OSI/CCP2/FLTA RC0/T1OSO/T1CKI OSC2/CLKO/RA6 OSC1/CLKI/RA7 V SS AVDD VDD RE2/AN8 RE1/AN7 RE0/AN6 RA5/AN5/LVDIN RA4/AN4/CAP3/QEB RC7/RX/DT/SDO RD4/FLTA (3) RD5/PWM4 (4) RD6/PWM6 RD7/PWM7 V SS VDD AVDD RB0/PWM0 RB1/PWM1 RB2/PWM2 PIC18F4431 AVSS Note 1: RC3 is the alternate pin for T0CKI/T5CKI; RC4 is the alternate pin for SDI/SDA; RC5 is the alternate pin for SCK/SCL. 2: Low-Voltage Programming must be enabled. 3: RD4 is the alternate pin for FLTA . 4: RD5 is the alternate pin for PWM4. PIC18F2331/2431/4331/4431 DS39616C-page 6 Preliminary © 2007 Microchip Technology Inc. Table of Contents 1.0 Device Overview 9 2.0 Oscillator Configurations 23 3.0 Power-Managed Modes 33 4.0 Reset 47 5.0 Memory Organization 59 6.0 Flash Program Memory 77 7.0 Data EEPROM Memory 87 8.0 8 x 8 Hardware Multiplier 91 9.0 Interrupts 93 10.0 I/O Ports 109 11.0 Timer0 Module 135 12.0 Timer1 Module 139 13.0 Timer2 Module 145 14.0 Timer5 Module 147 15.0 Capture/Compare/PWM (CCP) Modules 153 16.0 Motion Feedback Module 159 17.0 Power Control PWM Module 181 18.0 Synchronous Serial Port (SSP) Module 213 19.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) 223 20.0 10-Bit High-Speed Analog-to-Digital Converter (A/D) Module 245 21.0 Low-Voltage Detect 263 22.0 Special Features of the CPU 269 23.0 Instruction Set Summary 289 24.0 Development Support 331 25.0 Electrical Characteristics 335 26.0 DC and AC Characteristics Graphs and Tables 371 27.0 Packaging Information 373 Appendix A: Revision History 381 Appendix B: Device Differences 381 Appendix C: Conversion Considerations 382 Appendix D: Migration from Baseline to Enhanced Devices 382 Appendix E: Migration From Mid-Range to Enhanced Devices 383 Appendix F: Migration From High-End to Enhanced Devices 383 Index 385 The Microchip Web Site 395 Customer Change Notification Service 395 Customer Support 395 Reader Response 396 Product Identification System 397 © 2007 Microchip Technology Inc. Preliminary DS39616C-page 7 PIC18F2331/2431/4331/4431 TO OUR VALUED CUSTOMERS It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and enhanced as new volumes and updates are introduced. If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via E-mail at docerrors@microchip.com or fax the Reader Response Form in the back of this data sheet to (480) 792-4150. We welcome your feedback. Most Current Data Sheet To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at: http://www.microchip.com You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page. The last character of the literature number is the version number, (e.g., DS30000A is version A of document DS30000). Errata An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision of silicon and revision of document to which it applies. To determine if an errata sheet exists for a particular device, please check with one of the following: • Microchip’s Worldwide Web site; http://www.microchip.com • Your local Microchip sales office (see last page) When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are using. Customer Notification System Register on our web site at www.microchip.com to receive the most current information on all of our products. PIC18F2331/2431/4331/4431 DS39616C-page 8 Preliminary © 2007 Microchip Technology Inc. NOTES: [...]... activities and return to Sleep without returning to full power operation Preliminary DS39616C-page 9 PIC18F2331/2431/4331/4431 1.2 Other Special Features • Memory Endurance: The enhanced Flash cells for both program memory and data EEPROM are rated to last for many thousands of erase/write cycles – up to 100,000 for program memory and 1,000,000 for EEPROM Data retention without refresh is conservatively... Crystal/Resonator High-Speed Crystal/Resonator with PLL Enabled External Resistor/Capacitor with FOSC/4 Output on RA6 External Resistor/Capacitor with I/O on RA6 Internal Oscillator with FOSC/4 Output on RA6 and I/O on RA7 Internal Oscillator with I/O on RA6 and RA7 External Clock with FOSC/4 Output External Clock with I/O on RA6 OSC1 XTAL C2(1) Note 1: To Internal Logic RF(3) Sleep RS(2) PIC18FXXXX OSC2.. .PIC18F2331/2431/4331/4431 1.0 DEVICE OVERVIEW This document contains device specific information for the following devices: • PIC18F2331 • PIC18F2431 • PIC18F4331 • PIC18F4431 This family offers the advantages of all PIC18 microcontrollers – namely, high computational performance at an economical price, with the addition of high endurance enhanced Flash program memory and a... DS39616C-page 11 PIC18F2331/2431/4331/4431 FIGURE 1-1: PIC18F2331/2431 BLOCK DIAGRAM Data Bus PORTA 21 Table Pointer 8 8 21 RA0/AN0 RA1/AN1 RA2/AN2/VREF-/CAP1/INDX RA3/AN3/VREF+/CAP2/QEA RA4/AN4/CAP3/QEB OSC2/CLKO/RA6 OSC1/CLKI/RA7 Data Latch Data RAM (768 bytes) inc/dec logic 21 Address Latch Address Latch 20 Program Memory PCLATU PCLATH 12 Address PCU PCH PCL Program Counter Data Latch 4 12... state for electrically commutated motor applications using Hall sensor feedback, such as BLDC motor drives PIC18F2331/2431/4331/4431 devices also feature Flash program memory and an internal RC oscillator with built-in LP modes 1.1 1.1.1 New Core Features nanoWatt Technology All of the devices in the PIC18F2331/2431/4331/4431 family incorporate a range of features that can significantly reduce power consumption... Digital I/O SPI data in I2C™ data I/O I/O O 3 ST ST ST I/O I 2 Digital I/O SPI data out I/O I/O I/O 41 ST — I/O I I/O 40 Digital I/O Timer0 external clock input Timer5 input clock I/O O 39 ST ST ST ST TTL Digital I/O PWM output 6 I/O O ST TTL Digital I/O PWM output 7 39 40 41 2 3 4 5 Legend: TTL = TTL compatible input CMOS = CMOS compatible input or output ST = Schmitt Trigger input with CMOS levels... Module (Input Capture/Quadrature Encoder Interface) 1 QEI or 3x IC 1 QEI or 3x IC 1 QEI or 3x IC 1 QEI or 3x IC Operating Frequency I/O Ports Serial Communications SSP, SSP, SSP, SSP, Enhanced USART Enhanced USART Enhanced USART Enhanced USART 10-Bit High-Speed 5 Input Channels Analog-to-Digital Converter module Resets (and Delays) Ports A, B, C, D, E Ports A, B, C, D, E 5 Input Channels 9 Input Channels... VSS Timer0 Timer1 Timer2 Timer5 Data EE CCP1 CCP2 Synchronous Serial Port EUSART Note 1: 2: HS 10-Bit ADC PCPWM AVDD, AVSS MFM RE3 input pin is only enabled when MCLRE fuse is programmed to ‘0’ RE3 is available only when MCLR is disabled DS39616C-page 12 Preliminary © 2007 Microchip Technology Inc PIC18F2331/2431/4331/4431 FIGURE 1-2: PIC18F4331/4431 BLOCK DIAGRAM Data Bus PORTA 21 Table Pointer... 21 RA0/AN0 RA1/AN1 RA2/AN2/VREF-/CAP1/INDX RA3/AN3/VREF+/CAP2/QEA RA4/AN4/CAP3/QEB RA5/AN5/LVDIN OSC2/CLKO/RA6 OSC1/CLKI/RA7 Data Latch Data RAM (768 bytes) inc/dec logic 21 Address Latch Address Latch 20 Program Memory PCLATU PCLATH 12 Address PCU PCH PCL Program Counter Data Latch 4 12 BSR 31 Level Stack 16 Decode Table Latch PORTB 4 FSR0 FSR1 FSR2 Bank 0, F 12 inc/dec logic RB0/PWM0 RB1/PWM1... Digital I/O Interrupt-on-change pin In-Circuit Debugger and ICSP programming data pin 19 20 21 22 23 24 25 = TTL compatible input = Schmitt Trigger input with CMOS levels = Output = Open-Drain (no diode to VDD) © 2007 Microchip Technology Inc Preliminary CMOS = CMOS compatible input or output I = Input P = Power DS39616C-page 15 PIC18F2331/2431/4331/4431 TABLE 1-2: PIC18F2331/2431 PINOUT I/O DESCRIPTIONS . 2007 Microchip Technology Inc. Preliminary DS39616C PIC18F2331/2431/4331/4431 Data Sheet 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D DS39616C-page. 768 256 36 9 2 Y Y Y Y 8 1/3 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D PIC18F2331/2431/4331/4431 PIC18F2331/2431/4331/4431 DS39616C-page. Microcontroller Features: • 100,000 Erase/Write Cycle Enhanced Flash Program Memory, Typical • 1,000,000 Erase/Write Cycle Data EEPROM Memory, Typical • Flash /Data EEPROM Retention: 100 Years • Self-Programmable