[FrontPage] [TitleIndex] [WordIndex

SIL Breakout Header SPI to 8-bit Parallel LCD Interface



Circuit Schematic and Build

TriPad-SPI-to-LCD-8bit-Par_01.png

P1000391rcs.JPG

P1000393rcs.JPG

Working with Various LCD Displays ...

Demo. Software "Self-help"

pi@raspibplus16Gb ~/i2c_chips-0.0 $ ./src/lcd_spi8b_demo
lcd_spi8b_demo.c Version 0.01 {Exp}, [02/08/2014], (c) F_Trevor_Gowen
                <--| Package i2c_chips_0.0 |-->
Usage lcd_spi8b_demo  [Options]
Options: -a arg_filename[.arg],
         -dmsg 's' {Display a MeSsaGe 'like_this_one'... - implies -W},
         +S        {... and Scroll right},
         -E    {Echo command-line arguments},
         -0802 {LCD display type 0802},
         -1602 {LCD display type 1602 - default},
         -2004 {LCD display type 2004},
         -CH   {Clear display & return Home - implies -W},
         -F8T  {Func set init 8-bit Test*},
         -IG   {Initialise used gpio's & Gpio readall},
         -ST   {Strobe Test*},
         -WDT  {Write Data Test*},
         -WLT  {Write Line info. Test - implies -W},
         -WMT  {Write Message Test - implies -W},
         -WRT  {Write Register Test*},
               {*NB: LED Test board req'd with -S},
         -Q    {Quiet - default},
         -S    {use System call methods** - default},
         -T    {using LED Test board},
         -V    {Verbose},
         -W    {use Wiring pi spi methods},
         -X    {eXecute demonstration}.
 ** NB: Uses "sudo echo ..." to the SPI device!

16x2 Character LCD (Yellow Backlight)

P1000464rcs.JPG
Uninitialised Display

P1000465cs.JPG
lcd_spi8b_demo -F8T -X

P1000466rcs.JPG
lcd_spi8b_demo -WMT -X

P1000467rcs.JPG
lcd_spi8b_demo -WLT -X

20x4 Character LCD (Blue Backlight)

P1000468cs.JPG
Uninitialised Display

P1000470rcs.JPG
lcd_spi8b_demo -2004 -F8T -X

P1000472rcs.JPG
lcd_spi8b_demo -2004 -WMT -X

P1000473cs.JPG
lcd_spi8b_demo -2004 -WLT -X

8x2 Character LCD (Yellow Backlight)

P1000475cs.JPG
Uninitialised Display

P1000477rcs.JPG
lcd_spi8b_demo -0802 -F8T -X

P1000479cs.JPG
lcd_spi8b_demo -0802 -WMT -X

P1000478rcs.JPG
lcd_spi8b_demo -0802 -WLT -X

Now Working with Various GLCD Displays ...

... via this Serial-to-Parallel GLCD Adapter

P1050477rcs.JPG

P1050476rrrcs.JPG

P1050482rrrcs.JPG

pi@raspiP3BStretch16Gb:~/i2c_spi_chips-0.0 $ src/glcd_spi8bA_demo
glcd_spi8bA_demo.c Version 0.00 {Exp}, [11/09/2017], (c) F_Trevor_Gowen
                <--| Package i2c_spi_chips_0.0 |-->
Usage glcd_spi8bA_demo  [Options]
Options: -a arg_filename[.arg],
         -xbm xbm_filename[.xbm] (for 128x64 graphic),
         -xpm xpm_filename[.xpm] (for 16x16 CGRAM char.),
         +XBM     {XBM dump of pixel store},
         +XPM     {XPM dump of pixel store},
         -E       {Echo command-line arguments},
         -F0816   {use half-character, 8x16 Font (default)},
         -F1616   {use 16x16 Font#},
         -FG1616  {use user-defined Graphic 16x16 Font#},
         -FI1616  {use chinese Icon 16x16 Font#},
                  {# for -WDT option only},
         -glcd# n {Use GLCD model name #n (0 < n < 4)},
         +UCGn    {Use CGram address 000n (n=0,2,4 or 6) ...},
                  {... for xpm file data},
         -F8BT {Func set init 8-bit, Basic instruction set Test*},
         -IG   {Initialise used gpio's & Gpio readall},
         -ST   {Strobe Test*},
         -WDT  {Write Data Test*},
         -WRT  {Write Register Test*},
               {*NB: LED Test board req'd with -S},
         -CH   {Clear display & return Home - implies -W},
         -F8XT {Func set init 8-bit, eXtended instr. set Test - implies -W},
         -GDST {Graphics Display Switch Test - implies -W},
         -Rn   {Reverse line n (n=1|2) - implies -W},
         -WLT  {Write Line info. Test - implies -W & -F0816},
         -WMT  {Write Message Test - implies -W & -F0816},
         -Q    {Quiet - default},
         -S    {use System call methods - default},
         -T    {using LED Test board},
         -V    {Verbose},
         -W    {use Wiring pi spi methods},
         -X    {eXecute demonstration}.

pi@raspiP3BStretch16Gb:~/i2c_spi_chips-0.0 $ src/glcd_spi8bA_demo -IG
glcd_spi8bA_demo.c Version 0.00 {Exp}, [11/09/2017], (c) F_Trevor_Gowen
                <--| Package i2c_spi_chips_0.0 |-->
<glcd_spi8bA_demo.arg>  fopen: No such file or directory
glcd_spi8bA_demo.arg not found
glcd spi2p_8bit status:
NC      16
NL       4
DDRAM[] 80 90 80 90
RS GPIO 22
E  GPIO 27
BL GPIO -1
EHMIN   16 uS
ELMIN   72 uS
ELMAX 1672 uS
WAIT    72 uS
gc74hc595 chip status:
SPI_DEV  /dev/spidev0.0
GOE GPIO 17
SCL GPIO 18
NAME     ST7920
qc12864b pixel store status:
First row bytes ...
0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff
Last row bytes ...
0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00
gpio -g mode 17 out
gpio -g mode 18 out
gpio -g mode 22 out
gpio -g mode 27 out
gpio -g write 17 1
gpio -g write 18 1
gpio -g write 22 0
gpio -g write 27 0
gpio readall



2024-02-11 21:50