ArthurD:
I have no multimeter and probably never would need it ever. I'm writing programs and just stick wires, I'm not designing electronical circuits.
OK Watney, Let us know when your rocket gets back from Mars.
For anybody that may be interested to hear the answer to this question, here is what I did.
It works sweet at SPI_FULL_SPEED and draws a 320*240 image on screen in approx 148ms! That's NICE!
I added a spare 2 pin header I had laying around although only 1 pin is used (SD_CS). The other 3 I just bypassed the useless 1K resistors (I will only ever use this with a DUE so they are redundant (and could cause speed problems)) and connected them to the TFT equivalents (MISO/MOSI/SCK).
ArthurD:
I have no multimeter and probably never would need it ever. I'm writing programs and just stick wires, I'm not designing electronical circuits.
So it is darn lucky for you that I have, because without it, it is impossible to tell just by looking which pin on the back of the SD card is MISO!!
You connect all MOSIs together, all SCKs together, all MISOs together. A separate /CS for each device. Only one SPI device can be active at a time. Make sure that each /CS line has a pull-up resistor to keep all its lines inactive when it is not selected.
The Module in the photo has got 1k0 series resistors to protect the SD card. Why have you abandoned them?
The display will look much better with the protective film removed.
david_prentice:
Make sure that each /CS line has a pull-up resistor to keep all its lines inactive when it is not selected.
The Module in the photo has got 1k0 series resistors to protect the SD card. Why have you abandoned them?
Ok, so I overlooked the CS pull-up, but I don't have 'protective resistors' on my CTE shield, and have only seen 1K resistors in series with the CLK, MOSI, CS lines when using the device with 5V, which I am not.
Sorry I upset you before ok!? Good to see you again.
Ok, have you tried reducing the SPI speed first of all? Does it literally do 'nothing'...
Have you wired it INCLUDING or EXCLUDING the 3 resistors? I too am using a DUE, and that was my motivation behind excluding the 3 resistors....... I have subsequently had it working with a MEGA, so I am happy my solution is sound.
ok, no prob
I have a Due, and so I connected the MISO, MOSI, and SCK header pins on both sides directly 1:1, no soldering on the slot.
just the cs pins go seperate
sd_cs == 53
tft_cs== 52
edit:
of course I wouldn't change the SPI speed, it works with ILI9341due, and with external SD backbones.
So no reason to change anything.
this is my code:
edit:
no code, effing size limit!
ah... have I missed that?
for the Due I HAVE to solder to exclude the resistors ??
Now, I have a curious thing........... I just coupled up my ILI9341 to my DUE to do some tests for you......... I KNOW I had it working at SPI_FULL_SPEED previously............. but would not work so this time....... it would only work at SPI_HALF_SPEED......... I connected it to my other DUE and sure enough works fine at SPI_FULL_SPEED...... How odd is that?