Programming instructions

Advanced Peripherals
Multisim Component Reference Guide 8-4 ni.com
Instruction Set
* - Bit can be either “1” or “0”.
Set Cursor Move Direction:
ID - Increment the cursor after each byte written to display if set.
S - Shift display when byte written to display.
Enable Display/Cursor:
D - Turn display on (1)/off (0).
C - Turn cursor on (1)/off (0).
Move Cursor/Shift Display:
SC - Display shift on (1)/off (0).
RL - Direction of shift right (1)/ left (0).
Write a Character to the Display:
D - Data.
RS RW D7 D6 D5 D4 D3 D2 D1 D0 Description
4 5 14 13 12 11 10 9 8 7 Pins
0000000001Clear display
000000001*Return Cursor and LCD to
home positon
00000001IDSSet Cursor Move Direction
0000001DC*Enable Display/Cursor
000001SCRL* *Move Cursor/Shift Display
1 0 D D D D D D D D Write a Character to the
Display at Current Cursor
Position
ComponentRef.book Page 4 Thursday, December 7, 2006 10:12 AM