Run a 2.4" TFT display with only a max of 3 prop pins?
eagletalontim
Posts: 1,399
I have a few of these laying around :
http://www.ebay.com/itm/2-4-TFT-LCD-Module-Display-Touch-Panel-PCB-adapter-/190477028273
What I am wanting to do is a VERY SIMPLE circuit board that can plug into this display and then I can use the Prop to control output to the screen. I am not interested in using the touch screen capability and would like to find this same screen without the touch capability....that is a different thing though.
I am hoping to output only text to this screen and update only specific text at a rate of 5 times a second if possible. The slowest I could go would be 2 times a second. I have the screen set to 8 bit mode and was wondering if I could use a 74HC595 to send the output to the screen so I would only use 3 prop pins. Anyone willing to pitch in some ideas on this?
http://www.ebay.com/itm/2-4-TFT-LCD-Module-Display-Touch-Panel-PCB-adapter-/190477028273
What I am wanting to do is a VERY SIMPLE circuit board that can plug into this display and then I can use the Prop to control output to the screen. I am not interested in using the touch screen capability and would like to find this same screen without the touch capability....that is a different thing though.
I am hoping to output only text to this screen and update only specific text at a rate of 5 times a second if possible. The slowest I could go would be 2 times a second. I have the screen set to 8 bit mode and was wondering if I could use a 74HC595 to send the output to the screen so I would only use 3 prop pins. Anyone willing to pitch in some ideas on this?
Comments
The S6D1121 controller on that display apparently allows SPI interface:
The S6D1121 allows serial interface transfer, using the chip select line (CSB), serial transfer clock line (SCL), register select line
(RS), serial input data (SDI), and serial output data (SDO). For a serial interface, the IM0/ID pin function uses an ID pin.
I'll look into a bit more.
EDIT: Yes, the CSB, SCL, and SDI is all you need.
Set IM[3:0] to VSS VDD3 VSS ID to select Serial peripheral interface (SPI) E_RDB,TSO[0] (SDI, SDO)
Don't know if you can get to these pins though.
http://www.ebay.com/itm/1PC-2-2-Inch-SPI-TFT-LCD-Serial-Port-Module-Display-ILI9341-5V-3-3V-New-/190923137633?pt=LH_DefaultDomain_0&hash=item2c73e7e261
Attached is all the data sheets for all the parts.
You could use 2-3 HC595 and drive them as CLK, DI, LD, but you would be write only.
With a 40 pin header, it might be smarter to look for a cheapo 40 pin Micro that can be a simple serial slave.
The Atmel AT89LP51/AT89LP52 are 82c/25+ in DIP40
A smarter slave can allow you to store Foreground and background colours and then you send pixels, so your link bandwidth is better used.
A LP52 can run 8/9 bit classic UART to Xtal/16 in std UART mode, and up to Xtal/2N in SPI half duplex (LP52 always generates SCLK, so Prop needs Slave-spi code). It has an optional 1.8432MHz on-chip RC oscillator.(no PLL)
The 8K code in LP52 could store some simple font info, which can save even more link bandwidth.
(or, you can use a Prop as link-slave, but that's a little expensive)
One approach could be to use a Prop slave for proof-of-concept, and move to LP52-slave for volume production.
Would it be just as slow as connecting 8 pins directly to the prop as I have done before and gotten the screen to turn blue and print "this is a test" on the screen? It took I think 8 seconds to complete this task using Spin as this is the only language I understand on the PROP.
But if you feel keen and want to code some pasm you can get it fast again. pasm code to talk to these displays exists, so all you would need is a few lines that take a long and send it out serially.
Prop
> LP52
> Display pins?
Would I still be using the same pins as what is already soldered to the board or would I have to remove the screen from the board and tap into the display only? If the "middle chip" is like RAM, maybe having a 200ms delay between calculated delay and displayed data would be ok.. Faster would be better too. I have also looked some other LCD displays, but they are quite expensive for what I am hoping to accomplish... Especially the graphic LCD's. It is strange how a TFT display is cheaper than a graphical LCD display....