7/30/2019
Basys MX3 Reference Manual [Reference.Digilentinc]
https://reference.digilentinc.com/reference/microprocessor/basys-mx3/reference-manual?_ga=2.68739409.1349070004.1564406803-1961480359.…
24/52
Table 8.1. LCD () Connectivity.
Name
PIC32 Pin
Description
DISP_RS
AN15/RPB15/OCFB/CTED6/PMA0/RB15
Register Select: High for Data Transfer, Low for Instruction Transfer.
DISP_RW
RPD5/PMRD/RD5
Read/Write signal: High for Read mode, Low for Write mode.
DISP_EN
RPD4/PMWR/RD4
Read/Write Enable: High for Read, falling edge writes data
DB0
PMD0/RE0
Data bits 0 -7.
DB1
PMD1/RE1
DB2
AN20/PMD2/RE2
DB3
RPE3/CTPLS/PMD3/RE3
DB4
AN21/PMD4/RE4
DB5
AN22/RPE5/PMD5/RE5
DB6
AN23/PMD6/RE6
DB7
AN27/PMD7/RE7
The command pins (DISP_RS, DISP_RW and DISP_EN) must be defined as digital output with analog functionality disabled for
DISP_RS:
TRISBbits.TRISB15 = 0; // RB15 (DISP_RS) set as an output
ANSELBbits.ANSB15 = 0; // disable analog functionality on RB15 (DISP_RS)
TRISDbits.TRISD5 = 0; // RD5 (DISP_RW) set as an output
TRISDbits.TRISD4 = 0; // RD4 (DISP_EN) set as an output
The data pins (DB0 – DB7) must be set as digital pins, with the direction according to the type of operation (read / write). The analog
functionality should also be disabled for DB2, DB4, DB5, DB6, and DB7.
8.1. Connectivity