![](/html/25/25e2/25e2414de6de99bdf7f2321e5156f45edc0aac9a7bfa4736522aa84a227119c6/bg1.png)
Pullman, WA 99163
509.334.6306
www.digilentinc.com
PmodCLS™ Reference Manual
Revised April 8, 2016
This manual applies to the PmodCLS rev. D-E
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
16×2 liquid crystal character display
Wide range of instruction functions
Up to 32 user definable characters
Multiple communication options including
UART, SPI, and I²C
Small PCB size for flexible designs 1.8“ ×
3.8” (4.6 cm × 9.7 cm)
Two 1×6-pin Pmod ports with SPI and UART
interfaces
Library and example code available in
resource center
Overview
The Digilent PmodCLS is a 16x2 character LCD module driven by an Atmel® ATmega48 microcontroller.
1 Functional Description
The PmodCLS module can be used to display important information during program development or as a user
interface after the project has been completed. The module is ideally suited for microcontroller boards but can
also be used in projects using a FPGA board.
The module is capable of executing a variety of instructions such as erasing specific characters, setting different
display modes, scrolling, and displaying user-defined characters. These instructions are specified using escape
sequences to send commands to the board’s embedded Atmel ATmega48 microcontroller. The display on the
module is driven by this AVR and controls all of the features of the board.
2 Interfacing with the Pmod
The PmodCLS can communicate with the host board through the SPI, I2C, and UART ports.
![](/html/25/25e2/25e2414de6de99bdf7f2321e5156f45edc0aac9a7bfa4736522aa84a227119c6/bg2.png)
PmodCLS™ Reference Manual
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Positive Power Supply (3.3V)
Positive Power Supply (3.3V)
Table 1. J1 pinout description table.
Table 2. J2 pinout description table.
Through these protocol standards, users are able to set the cursor location and send other instructions by sending
escape sequences. And escape sequence is specified by first sending the escape character (0x1B) followed by a left
square bracket '[' (0x5B), and then one or more numeric parameters followed by the command character for the
specific command. Feel free to use our provided example code.
Figure 1. PmodCLS block diagram.
2.1 Communication Protocol Selection
You can set the board's communication method by setting the mode jumpers MD0, MD1, and MD2 on the board.
Possible mode jumper configurations are listed in Table 3 below. For rev. D boards, a missing jumper is
represented by a '0' and a connected jumper is represented by '1'. For rev. E boards, a missing jumper is
represented by a '1' and a connected jumper is represented by a '0'.