Microchip PIC18F87J93 LCD驱动方案
作者: 时间:2009-07-21 09:24 来源:eaw
Microchip 公司的PIC18F87J93 是集成了多功能的LCD驱动器的PIC18微控制器.LCD驱动器能在睡眠模式下直接驱动LCD屏,多达48段和192象素,由软件选择.具有可编程的LCD时序模式,片内的LCD升压稳压器用来对比度控制,集成的ADC可用于电阻性触摸传感. PIC18F87J93具有低功耗特性,灵活的振荡器结构和多种外设.本文介绍了PIC18F87J93的多种特性, PIC18F6XJ93 (64-引脚)方框图, PIC18F8XJ93 (80-引脚)方框图以及PICDEM™ LCD 2 演示套件主要特性和详细电路图.
The PIC18F87J93 family of devices offers the advantages of all PIC18 microcontrollers – high computational performance, a rich feature set and economical price – with the addition of a versatile, on-chip LCD driver. These features make the PIC18F87J93 family a logical choice for many high-performance applications where price is a primary consideration.
LCD Driver and Keypad Interface Features:
• Direct LCD Panel Drive Capability:
- Can drive LCD panel while 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
Low-Power Features:
• Power-Managed modes:
- Run: CPU On, Peripherals On
- Idle: CPU Off, Peripherals On
- Sleep: CPU Off, Peripherals Off
• Two-Speed Oscillator Start-up
Flexible Oscillator Structure:
• 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 (FSCM):
- Allows for safe shutdown if peripheral clock fails
Peripheral Highlights:
• 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)
• 12-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

图1.PIC18F6XJ93 (64-引脚)方框图

图2.PIC18F8XJ93 (80-引脚)方框图
PICDEM™ LCD 2 演示套件
The PICDEM LCD 2 demonstrates the capabilities of the PIC18FXXJ90, PIC18FXX90 and PIC16X9XX families of devices.
The PICDEM LCD 2 can be used stand-alone with a preprogrammed part, with an in-circuit emulator (e.g., MPLAB® ICE) or with an in-circuit debugger (e.g., MPLAB ICD 2). Sample programs are provided to demonstrate the unique features of the supported devices.
The PICDEM LCD 2 Demonstration Kit comes with the following:
1. PICDEM LCD 2 Demonstration Board (Figure 1-1)
2. Sample Plug-in Module (PIM)
3. CD-ROM which contains:
• Sample Programs
• “PICDEM™ LCD 2 Demonstration Kit User’s Guide”
The PICDEM LCD 2 Demonstration Board has the following hardware features; each feature’s number corresponding to the number in Figure 1-1:
1. The demonstration board provides a daughter board option for the PIC18F85J90, PIC18F87J90, PIC18F8490, PIC16F914/917 and PIC16F946 families of devices and MPLAB ICE. The board is also supplied with a PIM populated with a PIC18F85J90 device.
The MPLAB ICE can be plugged onto the board without any transition socket for PIC18FXX90 devices. For other devices, a transition socket may be needed.
2. On-board adjustable voltage regulator for direct input from 9V, 100 mA AC/DC wall adapter or 3V button cell battery.
3. Jumper J15 to select different power options.
4. Green power-on indicator LED for direct input from 9V.
5. Varitronix custom segmented LCD display.
6. Jumpers, COM0, COM1, COM2 and COM3, to disconnect COM pins from on-board LCD and allow the usage of any customized LCD glass.
7. RS-232 connection and associated hardware for direct connection to RS-232 interface.
8. Jumpers, JP13 and JP14, to disconnect TX and RX.
9. In-Circuit Debugger (ICD) connector.
10. R44, 10 k, potentiometer for devices with analog inputs.
11. Five push button switches (S1 through S5) for external stimulus and Reset.
12. Jumpers, JP19, JP18, JP1 and JP2, to disconnect switches from RB6, RB7, RA6 and RA7 input pins.
13. Jumper, J11, to select either 10 k(POT R44) or the S1-S4 switches to AN0 (RA0).
14. Two green LEDs connected to RC3 and RC4 (device dependent).
15. Jumpers in J14 to disconnect LEDs from RC3 and RC4.
16. A slide switch (S6) to select either the resistor ladder or the charge pump option for generating the bias values for the LCD pins.
17. Jumper, JP21, to physically tie the resistor ladder to ground.
18. Unpopulated holes provided for crystal connection.
19. Jumpers, JP11 and JP12, to disconnect crystal from OSC1 and OSC2.
20. 32.768 kHz crystal with Timer1 for Real-Time Clock (RTC) operation.
21. A Microwire EEPROM 93AA46C provided on a socket.
22. Jumpers, JP15 and JP16, to disconnect EEPROM from CK and DT. Jumper, J6, to connect CS to GND or to RC4 (device dependent). Jumper, J13, to select either 128 x 8 or 64 x 16 memory organization.
23. Thermistor for sensing temperature.
24. Jumper, JP5, to connect thermistor to AN1 (RA1) (device dependent).
25. Jumper, JP17, to select either VCC or I/O to power the peripherals.
26. Unpopulated option for TC77 temperature sensor.
27. Prototype area for user hardware.
28. PICtail™ daughter board connection. (The pin names on the board are valid only for the PIC18F8490 device. For other devices, the PICtail daughter board pin connections may be different or not connected.)

图3.PICDEM™ LCD 2 演示套件外形图
PICDEM™ LCD 2 SCHEMATIC SHEET

图4.PICDEM™ LCD 2 演示套件电路图(1)

图5.PICDEM™ LCD 2 演示套件电路图(2)

图6.PICDEM™ LCD 2 演示套件电路图(3)