Author Topic: LCD interface direclty using SPI  (Read 1834 times)

0 Members and 1 Guest are viewing this topic.

Offline Ravi Kumar STopic starter

  • Newbie
  • Posts: 6
  • Country: in
LCD interface direclty using SPI
« on: November 09, 2021, 07:15:07 am »
Hi,
I'm trying to interface monochrome LCD with microcontroller directly using SPI line. I saw this method used in a schematic, but i didn't understand how does it works. please help me with this problem. LCD pinout and controller pin mapping is attached
controller-pic24F
 

Offline Ravi Kumar STopic starter

  • Newbie
  • Posts: 6
  • Country: in
Re: LCD interface direclty using SPI
« Reply #1 on: November 09, 2021, 07:17:18 am »
i'm sorry i missed LCD pin mapping image
 

Offline IDEngineer

  • Super Contributor
  • ***
  • Posts: 1926
  • Country: us
Re: LCD interface direclty using SPI
« Reply #2 on: November 09, 2021, 07:35:58 am »
Many LCD controllers offer both parallel and SPI interfaces. When using SPI, one or more of the parallel data bits becomes MOSI, SCLK, etc. You need to consult the specific LCD controller spec sheet to learn how to put it into SPI mode.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14481
  • Country: fr
Re: LCD interface direclty using SPI
« Reply #3 on: November 09, 2021, 05:08:55 pm »
So giving us the reference of the LCD controller would have been more useful here to help you than giving us the pin map.
 

Offline rpiloverbd

  • Regular Contributor
  • *
  • Posts: 157
  • Country: bd
Re: LCD interface direclty using SPI
« Reply #4 on: December 01, 2021, 09:46:17 am »
Hello, Would you please mention which LCD controller you are using?
 

Offline jpanhalt

  • Super Contributor
  • ***
  • Posts: 3479
  • Country: us
Re: LCD interface direclty using SPI
« Reply #5 on: December 01, 2021, 12:08:28 pm »
Yes, knowing the display controller is essential.  I am currently using a Sitronics ST7567A GLCD, which takes SPI and is very quick.
https://www.crystalfontz.com/controllers/Sitronix/ST7567A/

The only problem is that with that interface you cannot read the display, e.g., the ready bit or anything else, so I use a buffer.
 

Offline Ground_Loop

  • Frequent Contributor
  • **
  • Posts: 645
  • Country: us
Re: LCD interface direclty using SPI
« Reply #6 on: December 01, 2021, 11:23:02 pm »
My 4x20 lcds have a similar pin out. I use a 16 bit shift register to convert the serial data and command string to parallel. Of course this is optimally done with 16 bit SPI.
There's no point getting old if you don't have stories.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf