Know about HX8347 lcd controller?

Last post
16 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I got a New Haven Displays 2.4" TFT LCD with an HX8347 controller on it... the example init sw from NHD uses 16 bit parallel. I think I can use spi to talk to it. If anyone has one of these displays, it would be great to be able to pick your brain on how it works. It also has a 4 wire touch screen, but NHD doesnt have any example sw for that, I assume it gets hooked up to 4 a/d channels. Think I'm on the right track?

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't have one, so I'm no help to you. But the HX8347-A datasheet has this entry in the revision history:

Quote:
2007/06/05 1. Update Initial code for Normal Display in Register-Content
Interface mode.
2. Add Normal Display Initial code for CMO 2.4” LCD in
Register-Content Interface mode.
3. Modify Pin name in Figure 7.8~7.15 and . Figure 7.18~7.21
4. Modify SPI read GRAM timing.

Chuck Baird

"The highest honor in farting should be the 'Pull-It Surprise'" - Megan Amran

http://www.cbaird.org

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This my theory: put it in 16 bit mode where every pixele is 565 rgb. It has top, left, right, bottom window regs that define an area, and direction regs thattell which way to increment the cursor. This makes it easy to fill the screen... set the window to full screen and do 240x320 writes of the fill pixel word. But to use it with an avr that doesnt have a 150K ram frame buffer of 76k pixels, to write one pixel at 123,234 you set the window area to this one pixel loc, and write the pixel. I think I could have 2 'layers' of 4 bits per pixel if I had a mega128 with an external ram treated as 4 bits per pixel, but first I just want to be able to init the thing and draw a line in a color.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

BobGardner.

did you ever succeeded to run this display/
I use on from AV-LCD with the same controller and I can fill the screen with different colors but don't know how to access a single pixel.
How do you do it?

Thanks.

Rock.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
It also has a 4 wire touch screen, but NHD doesnt have any example sw for that, I assume it gets hooked up to 4 a/d channels

Old thread, I know.

Bob, isn't it V+, Gnd and TWO ADC inputs. One for Vertical, one for Horizontal?

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

DocJC wrote:

Bob, isn't it V+, Gnd and TWO ADC inputs. One for Vertical, one for Horizontal?

No. You need 4 I/O's, only 2 actually need to be ADC's. But you definitely need to be ably to switch all 4 lines between VCC, GND, and input mode (HiZ).

Atmel did a pretty decent app-note on 4 & 5 wire touch screen interfaces.
http://www.atmel.com/dyn/resources/prod_documents/doc8091.pdf

Writing code is like having sex.... make one little mistake, and you're supporting it for life.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Got it!

Thanks for the link.

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Bob,

I followed your sugestions and reduced the window to one pixel and that allows me to write single pixels but also to write larger pixels.

Thanks for the info.

Rock.

tmeinc wrote:
BobGardner.

did you ever succeeded to run this display/
I use on from AV-LCD with the same controller and I can fill the screen with different colors but don't know how to access a single pixel.
How do you do it?

Thanks.

Rock.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey, for the last couple of days I've been trying to get my 2.4' HX8347 display to work using the SPI mode.. all the datasheets say that you can use spi with this screen and give all the timing diagrams for getting it to work..

But with countless tries the display isnt showing anything...

Did you ever manage to get the display to work in SPI mode or just using the 16 bit pararllel lines?

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My display data sheet shows no SPI interface only 8 and 16 bits. I use it with 8 bits.
I wish I would be able to use SPI but it is not connected to the display connector.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there any where that I can get code for the AVR to test my display? I've been trying to get teh SPI to work on my ET024006DHU display but with no luck, so I might need to change to 8 bit bus instead.

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

My display data sheet shows no SPI interface only 8 and 16 bits. I use it with 8 bits.
I wish I would be able to use SPI but it is not connected to the display connector.

Quote:

I've been trying to get teh SPI to work on my ET024006DHU display but with no luck, so I might need to change to 8 bit bus instead.

When I put ET024006DHU into a Google search, the first hit was a listing at Farnell which has a link to the datasheet.

In the display datasheet, there are mentions of SPI along with a timing diagram. The controller is said to be Himax HX8347. The first Google hit on that is an "application note" that looks a lot like a datasheet. There is a schematic for serial connection, along with a command description.

It doesn't lay it all out, but the guts seems to be there.

You can put lipstick on a pig, but it is still a pig.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes the controller has it but on the display I am using they didn't bring the SPI lines to the connector.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think the controller chip itself has spi inputs, but the NHD display uses parallel.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi AVRfreaks !!
To replace my 16x2 character LCD,just purchased a 4DLCD-32T lcd module from here http://www.4dsystems.com.au/prod.php?id=130

Downloaded HX8347 Datasheet from here http://www.4dsystems.com.au/downloads/Displays/LCD/4DLCD-32/HX8347-A01_DS_preliminary_01.pdf

LCD datasheet from here
http://www.4dsystems.com.au/downloads/Displays/LCD/4DLCD-32/4DLCD-32.pdf

Board Schematic from here
http://www.4dsystems.com.au/downloads/Carrier-Boards/4DLCDM-32/4DLCDM-32-sch.pdf

Initialisation Code from here
http://www.4dsystems.com.au/downloads/Displays/LCD/4DLCD-32/4DLCD-32-Init.txt

I need a Graphics Library for this lcd so that i can easily write a program (WinAVR, ATmega32). Please help..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


That C code should win some kind of award!