232TTL or I2C ?

GTT TFT Support

Moderator: Mods

Post Reply
kdejong
LCD?
Posts: 8
Joined: Sat Oct 30, 2010 2:59 pm

232TTL or I2C ?

Post by kdejong »

Last week I received my new GTT480272A.
I plan to use it with a PIC microcontroller, my question is:

What is easier to start with: 232TTL or I2C ?

Regards,

Klaus de Jong

Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post by Clark »

Hello Klaus,

Unfortunately, as listed on our website, the GTT480272A does not yet support I2C protocol, so your choice will have to be TTL at this time. However, I would also say TTL is a much easier protocol with which to begin development. If you have any questions or concerns as you set up the hardware and start to develop code, please don't hesitate to post.

Thanks,
~Troy
Troy Clark
Design & Development
Matrix Orbital

kdejong
LCD?
Posts: 8
Joined: Sat Oct 30, 2010 2:59 pm

Post by kdejong »

Hello Troy,

OK, in general TTL will be more easy.

But when I understand things right TTL will need hardware handshaking. This is not supported by my PIC C compiler.

Can I use 232TTL with just Tx and Rx ?

Klaus

Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post by Clark »

Hello Klaus,

You are correct, the GTT does require hardware handshaking; it cannot be turned off. However, we can work around it.

Hardware handshaking consists of two signals, request to send (RTS) and clear to send (CTS). If you turn off all handshaking on your controller, you can send data without any trouble; it will never send an RTS or wait for a CTS. However, when you read from the display, it will send out an RTS and wait for a CTS, if CTS is not received the display will hang; so reading will be troublesome, without modification.

If you are unable to supply RTS and CTS you can use a jumper to connect these two pins on the display. As soon as the dispaly sends a request it will receive a clear and data will be sent to the host without interruption.

Please note with these modifications flow control will essentially be off, so you will have to monitor the display and code to ensure buffers are not overrun and communication is successful.

~Troy
Troy Clark
Design & Development
Matrix Orbital

kdejong
LCD?
Posts: 8
Joined: Sat Oct 30, 2010 2:59 pm

Post by kdejong »

OK, thank you Troy,

This way I should be able get the touchscreen to work. For receiving data on my uC I normally use an interrupt, that should be no problem. And, if needed I can write code for handling RTS and CTS.

But now the soldered jumpers. I closed two jumpers for the I2C bus, I now must open them again, right?

Do I then have to close the four jumpers for the 232TTL ??

Regards,

Klaus

kdejong
LCD?
Posts: 8
Joined: Sat Oct 30, 2010 2:59 pm

Post by kdejong »

from: GTT480272A Hardware Manual Revision 1.3

quote

Similarly, in order to change the display to TTL mode, simply remove the zero ohm resistors from the RS232 or I

Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post by Clark »

No worries Klaus,

I'm glad you can handle the TTL data without handshaking, but may add it later if needed. You are correct, to put the unit in TTL mode remove all other jumpers, and connect only the 4 pads labeled TTL with either one of the zero ohm resistors provided or a solder bridge.

~Troy
Troy Clark
Design & Development
Matrix Orbital

kdejong
LCD?
Posts: 8
Joined: Sat Oct 30, 2010 2:59 pm

Post by kdejong »

Thanx for your help.

I swapped the jumpers and now the display is showing strings, it accepts commands and it 'beeps'.

Regards,

Klaus

kdejong
LCD?
Posts: 8
Joined: Sat Oct 30, 2010 2:59 pm

Post by kdejong »

Thanx for your help.

I swapped the jumpers and now the display is showing strings, it accepts commands and it 'beeps'.

Regards,

Klaus

Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post by Clark »

No worries Klaus, great to hear you are up and running. If you do have any further questions as you continue development, please don't hesitate to ask.

Thanks,
~Troy
Troy Clark
Design & Development
Matrix Orbital

Post Reply