1300 Henley Court Pullman, WA 99163 509.334.6306 www.digilentinc.com PmodCLP Reference Manual Revised May 24, 2016 This manual applies to the PmodCLP rev. B Overview The Digilent PmodCLP is a 162 character LCD module that uses a 8-bit parallel data interface to let system boards display up to 32 different characters out of over 200 possible options. Features include: 162 character LCD with parallel interface 192 predefined characters including 93 ASCII characters Up to 8 user-definable characters Read and write capability to and from the display Small PCB size for flexible designs 2.3 3.3 (5.8 cm 8.4 cm) Follows Digilent Pmod Interface Specification Type 1 The PmodCLP. Library and example code available in resource center 1 Functional Description The PmodCLP utilizes a Samsung KS0066 LCD controller to display information to a Sunlike LCD panel. The module can execute a variety of instructions, such as erasing specific characters, setting different display modes, scrolling, and displaying user-defined characters. 2 Interfacing with the Pmod The PmodCLP communicates with the host board via the GPIO protocol. This particular module requires specific timings in order to program the KS0066 correctly, as per the KS0066 datasheet. These timings are described after the pinout description table shown below: Copyright Digilent, Inc. All rights reserved. DOC : 502-142 Page 1 of 6 Other product and company names mentioned may be trademarks of their respective owners. PmodCLP Reference Manual Header J1 - Top Half Header J1 - Bottom Half Header J2 Pin Signal Description Pin Signal Description Pin Signal Description Register Select: High for 1 DB0 Data Bit 0 7 DB4 Data Bit 4 1 RS Data Transfer, Low for Instruction Transfer Read/Write signal: High 2 DB1 Data Bit 1 8 DB5 Data Bit 5 2 R/W for Read mode, Low for Write mode Read/Write Enable: High 3 DB2 Data Bit 2 9 DB6 Data Bit 6 3 E for Read, falling edge writes data Optional back-light 4 DB3 Data Bit 3 10 DB7 Data Bit 7 4 NC enable (not connected on the PmodCLP Power Supply Power Supply 5 GND 11 GND 5 GND Power Supply Ground Ground Ground Positive Positive 6 VCC Power 12 VCC 6 VCC Positive Power Supply Power Supply 1 Supply Table 1. PmodCLP Connector Signals. 2.1 Timing Requirements Power On After power-on, at least 20ms must elapse before the Function Set instruction code can be written to set the bus width, number of lines, and character patterns (8-bit interface, 2 lines, Wait 20ms and 58 dots are appropriate). After the Function Set instruction, at least 37us must elapse before the Display On/Off Control instruction can be written (to turn the display on, turn the Set Function cursor on or off, and set the cursor to blink or no blink). After another 37us, the Clear Wait 37 us Display instruction can be issued. After another 1.52ms, the Entry Mode Set instruction can set address increment (or address Display Set decrement) mode, and display shift mode (on or off). After this sequence, data can be written Wait 37 us into the DDRAM via the Write data into RAM to cause information to appear on the display. Note that other compatible LCD controllers use similar start-up sequences which may not use Display Clear the same timings as the Samsung controller. Wait 1.52ms The table below lists the required bit order needed in order to send a variety of instructions to the LCD controller on the PmodCLP. Before the 8 bits of parallel data (DB7 through DB0) are OK sent, the output enable pin, E, must be brought to a high 1 state and then brought to a low Figure 1. LCD startup sequence. 0 state at end of the sequence in order to transfer the data bits to the LCD controller. 1 For Revision A of the PmodCLP this must be at 5V. For Revision B, this must be at 3.3V Copyright Digilent, Inc. All rights reserved. Page 2 of 6 Other product and company names mentioned may be trademarks of their respective owners.