RIOX 1216 AH - Interface with LCD

4 years 2 months ago - 4 years 2 months ago #29532154 by soh
I would like to ask is there any sample of RIOX 1216 AH interface with LCD (8 bits mode, 2 lines)? I would like to ask for sample code and the connection, a simple code until the LCD is successfully initialized, cursor blinking is enough. Thanks in advance.
Edited:
Below is the code I used for displaying "A", but it doesn't work. Output pin 1-8 as data line, pin 9 as enable, pin 11 as RS.
option explicit

SetCommand(_DS, 0x38) '4,5, 'Set 8 bit, 2 lines dots 5x7
gosub cmnwrt
SetCommand(_DS, 0x0F) '1,2,3,4 'Cursor on, blinking display on
gosub cmnwrt
SetCommand(_DS, 0x01) '1 'Clear display
gosub cmnwrt
SetCommand(_DS, 0x06) '2,3 'Entry Mode
gosub cmnwrt
SetCommand(_DS, 0x80) '4 'Select 1st line
gosub cmnwrt
SetCommand(_DS, 0x41) '7,1 'Display "A"
gosub datawrt

cmnwrt:
SetCommand(_DSET, 9)
wait(40)
SetCommand(_DRES, 9)
wait(40)
return

datawrt:
SetCommand(_DSET, 9)
SetCommand(_DSET, 11)
wait(40)
SetCommand(_DRES, 9)
wait(40)
return

Please Log in or Create an account to join the conversation.

Time to create page: 0.093 seconds