Black Lives Matter - Action and Equality. ... Adafruit joins the Stop Hate for Profit campaign.
0

What is the D/C pin on the 1.8" TFT LCD breakout?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

What is the D/C pin on the 1.8" TFT LCD breakout?

by xenoc on Mon Mar 31, 2014 2:46 pm

Hi there,

I'm trying to understand how the wiring for the 1.8" TFT LCD breakout works, and the D/C pin is confusing me greatly.

My understanding of SPI is that you need the clock (SCK), a data pin for the Arduino to send data (MOSI), a data pin for the Arduino to receive data (MISO), and a chip-select pin for each peripheral (TFT_CS and CARD_CS).

Given that, I'm really confused what the D/C pin on the breakout board is for.

I notice that Adafruit's Micro SD breakout board has CLK, DO, DI, CS pins, which maps fine to my understanding of SPI. So what I'm wondering is if the D/C pin is actually a MOSI pin for the TFT, to keep it separate from the SD card's MOSI pin, for some reason? If that's the case, is there any reason they couldn't both be tied to the same pin on the Arduino?

xenoc
 
Posts: 30
Joined: Thu Sep 15, 2011 2:26 pm

Re: What is the D/C pin on the 1.8" TFT LCD breakout?

by adafruit_support_bill on Mon Mar 31, 2014 3:47 pm

That is a data/command pin. SPI has no formal standard and there are lots variations on it. Instead of separate CS pins for data and command, they use one CS pin and the D/C to toggle between them.

adafruit_support_bill
 
Posts: 77885
Joined: Sat Feb 07, 2009 10:11 am

Re: What is the D/C pin on the 1.8" TFT LCD breakout?

by xenoc on Mon Mar 31, 2014 4:06 pm

Interesting. By this, do you mean that for the LCD controller, the MOSI pin is used for receiving data and commands, and that D/C is set by the master to indicate which it is being sent?

xenoc
 
Posts: 30
Joined: Thu Sep 15, 2011 2:26 pm

Re: What is the D/C pin on the 1.8" TFT LCD breakout?

by adafruit_support_bill on Mon Mar 31, 2014 4:16 pm

That is right.

adafruit_support_bill
 
Posts: 77885
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.