PIC18F87J90 LCD-drive Microcontrollers - Microchip
Posted in Microchip, PIC, User InterfaceOn Friday, March 13, 2009
Microchip’s new PIC18F87J90 is a low-power 8-bit direct LCD-drive PIC microcontroller family which is pin-to-pin compatible with existing similar device family, the PIC18F85J90. PIC18F87J90 LCD-drive microcontrollers feature 64KB-128 KB Flash, 4 KB RAM, RTCC (Real-Time Clock and Calendar), CTMU (Charge Time Measurement Unit) peripheral for precise time measurement or capacitive touch sensing and programmable LCD contrast controller. PIC18F87J90 LCD-drive microcontrollers employ Microchip’s nanoWatt Technology , which help maintain the system’s low-power ratings, and can even drive the display in sleep mode to conserve power. These new PIC18F87J90 LCD-drive microcontrollers are ideal for portable, handheld devices which require simple display interface such as thermostats, game controllers, power meters, data loggers, home security, sport & exercise equipments, automotive control panels and medical devices.

Microchip PIC18F87J90 LCD PIC Microcontrollers
|
The new released LCD PIC Microcontrollers:
| Flash Program (Bytes) |
SRAM Data (Bytes) |
I/O | LCD(Pixels) | |
| PIC18F66J90 | 64K | 3923 | 51 | 132 |
| PIC18F67J90 | 128K | 3923 | 51 | 132 |
| PIC18F86J90 | 64K | 3923 | 67 | 192 |
| PIC18F87J90 | 128K | 3923 | 67 | 192 |
Block Diagram of PIC18F87J90 LCD Microcontroller:

Microchip PIC18F87J90 LCD-drive PIC Microcontroller - Block Diagram
Features of PIC18F87J90 LCD-drive Microcontroller:
- Microcontroller Features
- 10,000 Erase/Write Cycle Flash Program Memory, Typical
- Flash Retention 20 Years, Minimum
- Self-Programmable under Software Control
- Word Write Capability for Flash Program Memory for Data EEPROM Emulators
- Priority Levels for Interrupts
- 8 x 8 Single-Cycle Hardware Multiplier
- Extended Watchdog Timer (WDT) with 4 ms to 131s programmable period
- In-Circuit Serial Programming (ICSP) via Two Pins
- In-Circuit Debug via Two Pins
- Operating Voltage Range: 2.0V to 3.6V
- 5.5V Tolerant Input (digital pins only)
- Selectable Open-Drain Configuration for Serial Communication and CCP Pins for Driving Outputs up to 5V
- On-Chip 2.5V Regulator
- LCD Driver and Keypad Interface
- Direct LCD Panel Drive Capability and able to drive LCD in Sleep mode
- Up to 48 Segments and 192 Pixels, Software Selectable
- Programmable LCD Timing module:
- Multiple LCD timing sources available
- Up to four commons: static, 1/2, 1/3 or 1/4 multiplex
- Static, 1/2 or 1/3 bias configuration
- On-Chip LCD Boost Voltage Regulator for Contrast Control
- Charge Time Measurement Unit (CTMU) for Capacitive Touch Sensing
- ADC for Resistive Touch Sensing
- Peripheral
- High-Current Sink/Source 25 mA/25 mA (PORTB and PORTC)
- Up to Four External Interrupts
- Four 8-Bit/16-Bit Timer/Counter modules
- Two Capture/Compare/PWM (CCP) modules
- Master Synchronous Serial Port (MSSP) module with Two Modes of Operation:
- 3-Wire/4-Wire SPI (supports all four SPI modes)
- I2C Master and Slave mode
- One Addressable USART module
- One Enhanced Addressable USART module:
- LIN/J2602 support
- Auto-wake-up on Start bit and Break character
- Auto-Baud Detect (ABD)
- 10-Bit, up to 12-Channel A/D Converter:
- Auto-acquisition
- Conversion available during Sleep
- Two Analog Comparators
- Programmable Reference Voltage for Comparators
- Hardware Real-Time Clock and Calendar (RTCC) with Clock, Calendar and Alarm Functions
- Charge Time Measurement Unit (CTMU):
- Capacitance measurement
- Time measurement with 1 ns typical resolution
- Oscillator
- Two Crystal modes, 4-25 MHz
- Two External Clock modes, up to 48 MHz
- 4x Phase Lock Loop (PLL)
- Internal Oscillator Block with PLL:
- Eight user-selectable frequencies from 31.25 kHz to 8 MHz
- Secondary Oscillator using Timer1 at 32 kHz
- Fail-Safe Clock Monitor:
- Allows for safe shutdown if peripheral clock fails
- Low-Power
- Power-Managed modes:
- Run: CPU On, Peripherals On
- Idle: CPU Off, Peripherals On
- Sleep: CPU Off, Peripherals Off
- Two-Speed Oscillator Start-up
- Power-Managed modes:
Migration from PIC18F85J90 to PIC18F87J90
PIC18F87J90 and PIC18F85J90 are similar in functions and features. Program code writen for PIC18F85J90 can be migrated to the new PIC18F87J90 with minimum effort. The differences between the two device families are listed in following table.
| Parameters | PIC18F87J90 | 18F85J90 |
| Max Operating frequency | 48 MHz | 40 MHz |
| Max Program Memory | 128 Kbytes | 32 Kbytes |
| Data Memory | 3,923 Bytes | 2,048 Bytes |
| Program Memory Endurance | 10,000 Write/Erase (minimum) | 1,000 Write/Erase (minimum) |
| Single Word write for Flash | Yes | No |
| Oscillator options | PLL can be used with INTOSC | PLL cannot be used with INTOSC |
| CTMU | Yes | No |
| RTCC | Yes | No |
| Timer1 Oscillator Options |
Low-power oscillator option for Timer1 |
No |
| TICKI Clock |
T1CKI can be used as a clock without enabling the Timer1 oscillator |
No |
Development Tools for PIC18F87J90 LCD Microcontrollers
As many other PIC microcontrollers, the PIC18F87J90 LCD Microcontroller family is supported with a full range of Microchip’s hardware and software development tools:
- Integrated Development Environment
- MPLAB IDE Software
- Assemblers/Compilers/Linkers
- MPASMTM Assembler
- MPLAB C18 and MPLAB C30 C Compilers
- MPLINKTM Object Linker/MPLIBTM Object Librarian
- MPLAB ASM30 Assembler/Linker/Library
- Simulators
- MPLAB SIM Software Simulator
- Emulators
- MPLAB ICE 2000 In-Circuit Emulator
- MPLAB REAL ICE™ In-Circuit Emulator
- In-Circuit Debugger
- MPLAB ICD 2
- Device Programmers
- PICSTART Plus Development Programmer
- MPLAB PM3 Device Programmer
- PICkit 2 Development Programmer
- Low-Cost Demonstration and Development Boards and Evaluation Kits

Microchip PICDEM LCD 2 Demo Board
For quick start, developers are encouraged to use Microchip PICDEM LCD 2 Demo Board in combination with the PIC18F87J90 Processor Plug-in Module (PIM). The PIC18F87J90 PIM is an accessory to the PICDEM LCD 2 Demo Board that allows users to easily experiment with the PIC18F87J90 on the demo board. PIC18F87J90 PIM features two capacitive touch buttons implemented using the Charge Time Measurement Unit on the PIC18F87J90. The module will plug into the PICDEM LCD 2 Demonstration Board or it can be used stand-alone in a custom application.

Microchip PIC18F87J90 PIM (Plug-in Module) with Capacitive Touch Buttons
for PICDEM LCD 2 Demo Board
Prices for the PIC18F87J90 start at $2.58 for 10K unit qty. Samples and volume products of these LCD-drive microcontrollers are available already. Microchip also offers the PICDEM LCD 2 Demo Board (part no: DM163030) at $125 and the PIC18F87J90 PIM (Plug-in Module) (part no: MA180025) at $25.
Resources:
- Press release: Microchip Technology Introduces PIC18F87J90 Family: Memory Extension for 8-bit LCD PIC Microcontrollers (_http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2018&mcparam=en539850#)
- PIC18F87J90 (_http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en536103)
- LCD Design with PIC® Microcontrollers (_http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2091¶m=en022834&redirects=lcd)
- PIC18F87J90 LCD PIC Microcontroller Family Data Sheet, PDF, 6.7MB (_http://ww1.microchip.com/downloads/en/DeviceDoc/39933C.pdf)
Possible Related Entries:
![[Embedded System roll-b]](images/roll/roll-b-4.gif)