PIC18FXX39 Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel High Performance RISC CPU: Peripheral Features: Linear program memory addressing to 24 Kbytes High current sink/source 25 mA/25 mA Linear data memory addressing to 1.4 Kbytes Three external interrupt pins 20 MHz operation (5 MIPs): Timer0 module: 8-bit/16-bit timer/counter with 8-bit programmable prescaler - 20 MHz oscillator/clock input Timer1 module: 16-bit timer/counter - 5 MHz oscillator/clock input with PLL active Timer3 module: 16-bit timer/counter 16-bit wide instructions, 8-bit wide data path Secondary oscillator clock option - Timer1/Timer3 8 x 8 Single Cycle Hardware Multiplier Two PWM modules: Special Microcontroller Features: - Resolution is 1- to 10-bit, Max. PWM freq. 8-bit resolution = 156 kHz 100,000 erase/write cycle Enhanced FLASH 10-bit resolution = 39 kHz program memory typical 1,000,000 erase/write cycle Data EEPROM memory Single Phase Induction Motor Control kernel FLASH/Data EEPROM Retention: > 100 years - Programmable Motor Control Technology (ProMPT) provides open loop Variable Power-on Reset (POR), Power-up Timer (PWRT) and Oscillator Start-up Timer (OST) Frequency (VF) control Programmable code protection - User programmable Voltage vs. Frequency Power saving SLEEP mode curve Single supply 5V In-Circuit Serial Programming - Most suitable for shaded pole and permanent (ICSP) via two pins split capacitor type motors In-Circuit Debug (ICD) via two pins Master Synchronous Serial Port (MSSP) module with two modes of operation: Analog Features: - 3-wire SPI (supports all 4 SPI modes) Compatible 10-bit Analog-to-Digital Converter 2 -I C Master and Slave mode module (A/D) with: Addressable USART module: - Fast sampling rate - Supports RS-485 and RS-232 - Conversion available during SLEEP Parallel Slave Port (PSP) module - DNL = 1 LSb, INL = 1 LSb Programmable Low Voltage Detection (PLVD) CMOS Technology: - Supports interrupt on Low Voltage Detection Low power, high speed FLASH/EEPROM Programmable Brown-out Reset (BOR) technology Fully static design Wide operating voltage range (2.0V to 5.5V) Industrial and Extended temperature ranges Program Memory Data Memory MSSP I/O 10-bit PWM Timers Device AUSART SRAM EEPROM Master Pins A/D (ch) 10-bit 16-bit/WDT Bytes Words SPI 2 (Bytes) (Bytes) I C PIC18F2439 12K 6144 640 256 21 5 2 Yes Yes Yes 3/1 PIC18F2539 24K 12288 1408 256 21 5 2 Yes Yes Yes 3/1 PIC18F4439 12K 6144 640 256 32 8 2 Yes Yes Yes 3/1 PIC18F4539 24K 12288 1408 256 32 8 2 Yes Yes Yes 3/1 2002-2013 Microchip Technology Inc. Preliminary DS30485B-page 122 RA3/AN3/VREF+ 22 RA3/AN3/VREF+ 21 RA2/AN2/VREF- 21 RA2/AN2/VREF- 20 RA1/AN1 20 RA1/AN1 19 RA0/AN0 19 RA0/AN0 18 MCLR/VPP 18 MCLR/VPP 17 RB7/PGD 17 RB7/PGD 16 RB6/PGC 16 RB6/PGC 15 RB5/PGM 15 RB5/PGM 14 RB4 14 RB4 NC 13 NC 13 12 NC 12 RB3 PIC18FXX39 Pin Diagrams 44-Pin TQFP NC 33 RC7/RX/DT 1 RC0/T13CKI 32 RD4/PSP4 2 31 OSC2/CLKO/RA6 RD5/PSP5 3 30 OSC1/CLKI RD6/PSP6 4 PIC18F4439 29 VSS RD7/PSP7 5 28 VDD VSS 6 PIC18F4539 27 RE2/AN7/CS VDD 7 RE1/AN6/WR RB0/INT0 8 26 RE0/AN5/RD RB1/INT1 9 25 RA5/AN4/SS/LVDIN RB2/INT2 10 24 23 RA4/T0CKI RB3 11 44-Pin QFN RC7/RX/DT 1 OSC2/CLKO/RA6 33 RD4/PSP4 2 OSC1/CLKI 32 RD5/PSP5 3 VSS 31 RD6/PSP6 4 AVSS 30 RD7/PSP7 5 PIC18F4439 VDD 29 VSS 6 28 VDD PIC18F4539 VDD 7 RE2/AN7/CS 27 AVDD 8 RE1/AN6/WR 26 9 RB0/INT0 RE0/AN5/RD 25 RB1/INT1 10 24 RA5/AN4/SS/LVDIN RB2/INT2 11 23 RA4/T0CKI DS30485B-page 2 Preliminary 2002-2013 Microchip Technology Inc. 44 RC6/TX/CK 44 RC6/TX/CK 43 RC5/SDO 43 RC5/SDO 42 RC4/SDI/SDA 42 RC4/SDI/SDA 41 RD3/PSP3 41 RD3/PSP3 40 RD2/PSP2 40 RD2/PSP2 39 RD1/PSP1 39 RD1/PSP1 38 RD0/PSP0 38 RD0/PSP0 37 RC3/SCK/SCL 37 RC3/SCK/SCL 36 PWM2 36 PWM1 35 PWM1 35 PWM2 34 RC0/T13CKI 34 NC