Recently I got an LCD display (with touchscreen and SD Card Reader) in dx.com model WBYJB02 and I’m trying to make it work in my BEAGLEBONE Black.
The site does not provide much information about the display controller, but I managed to find a datasheet.
The information I have about WBTJB02 are the following:
TouchScreen controller is XPT2046, which is compatible with ADS7843.
The latch is an 74HC573.
The Pinout (and the only documentation available) is the following:
GND 02 - . . - 01 VCC (3,3V)
DB01 04 - . . - 03 DB00
DB03 06 - . . - 05 DB02
DB05 08 - . . - 07 DB04
DB07 10 - . . - 09 DB06
DB09 12 - . . - 11 DB08
DB11 14 - . . - 13 DB10
DB13 16 - . . - 15 DB12
DB15 18 - . . - 17 DB14
RS 20 - . . - 19 CS
RD 22 - . . - 21 WR
EN 24 - . . - 23 RESET
INT 26 - . . - 25 MSIO
LE 28 - . . - 27 MOSI
F_CS 30 - . . - 29 SCLK
SD_CS 32 - . . - 31 TP_CS
The objective of this experiment is to discover how the LCD works, the TouchScreen and SD card reader.
Any help is wellcome.
Thanks
Now I find that the pins MISO, MOSI, SCLK are part of SPI interface. But I still don’t know where SS pin is.
The pins F_CS, TP_CS and SD_CS appear to be a Chip Selector for FRAME, TOUCHPAD and SDCARD Reader.
I’ve found this info in this two links: http://arduino.cc/en/Reference/SPI and http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus#Mode_Numbers
The description of use in Raspberry is here: http://jeffskinnerbox.wordpress.com/2012/12/05/raspberry-pi-serial-communication/
I’ve this information about the connections on other LCD type, but I believe it works in my case:
http://www.cemetech.net/forum/viewtopic.php?t=7814
LCD D0-D15: 16 bits of data/address lines
LCD_VSYNC → RS (also called Command/Data or CD or Address/Data; NOT reset)
LCD_HSYNC → Write-bar
LCD_PCLK → Read-bar
LCD_AC_ENB_CS → Chip Select 0
LCD_MCLK → Chip Select 1
I will post more information here.
I’ve used SPI exactly once so am far from an expert, but I did successfully hook up a 16550 series UART using SPI1_D0 as MOSI, SPI1_D1 as MISO, SPI1_SCLK as SCLK and SPI1_CS0 as the chip select, which worked with /dev/spidev1.0 (I used SPI mode 0, and I loaded the BB-SPIDEV1 virtual cape from /lib/firmware). There’s SPI1_CS1 available which presumably maps to /dev/spidev1.1, but I haven’t tried that myself.
Or you could just use GPIO pins to control a multiplexer connected to SPI1_CS0, to give you as many devices as you need.
I’ve disassemble the LCD and find this info TFT8K1073FPC Rev A1E.
Trying to find a datasheet, with controlller or chipset information.
I’ve found something in this chinese forum: http://bbs.tianmu.com/read.php?tid=735800&page=e
But no clue of what is the controller.
Today I plugged into beagleboard but no image at all. Using a USB 5V 2A power supply. I will try it again later with better power supply.