North Queensland, Australia
Offline
Edison Member
Karma: 31
Posts: 1209
|
 |
« Reply #15 on: January 26, 2013, 07:22:57 pm » |
Very nice.
I'm not up with the due yet ( ordered and waiting ), the two ports A & C, I'm assuming are 32-bits wide. If this is the case, does this mean there is around 40 unused pins?
If so are they usable, I'm thinking along the lines of 'probably not' without changing the single write to a mask of bits. Maybe the due has someway of dealing with this.
I'm just wondering as there only appears to be a few port B and D pins left without A & C.
|
|
|
|
|
Logged
|
|
|
|
|
Reading, UK
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #16 on: January 26, 2013, 08:28:50 pm » |
There is a typo, all command lines are routed to PORTD ( PD0-PD3) and data lines are routed to PORTC
The pins left for use will probably be those on horizontal headers on DUE (just like MEGA2560) where they are not occupied by the shield. Should be around 4x8=32pins left unused
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 9
|
 |
« Reply #17 on: January 27, 2013, 07:04:29 pm » |
Rather than just refer to a port, can you reference the actual pin numbers (IC and board connection) used for D0-D15 of a display and WR, RD, CS, E, D/C used for LCD control? Also, does the code employ 8080 or 6800 timing? I have a new shield on order, but I would still like the pin numbers so that I can start looking at the code and understand the hardware. Also, if you have the pinout for the touch screen and the SD drive, that will be next.
Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
Reading, UK
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #18 on: January 27, 2013, 07:46:30 pm » |
The data pins are routed to PC1-8 (lower 8 bit) and PC12-19 (higher 8 bit), so you probably need to shift your lower 8 bit to the right<<1, and higher 8 bit to the right <<12, and then you can strobe the WR pin. So you will need 3 arduino command for one WR strobe. Like this: REG_PIOC_CODR=0xFF1FE; REG_PIOC_SODR=(VL<<1) & 0x1FE; REG_PIOC_SODR=(VH<<12) & 0xFF000; pulse_WR(); For the 4 command pins, they are routed to PD1-4. This should be straight forward. This is possible because the creator of DUE has made perfect routing of these lines to the 2x20 header. SD Card will be directly connected to the SPI interface on the 6pin header in the center of the DUE board(DUE only has SPI access on this 6pin header). Schematic is http://coldtears.lin3.siteonlinetest.com/files/CTE_DUE_shield.zip ] 
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 3
Posts: 395
|
 |
« Reply #19 on: February 11, 2013, 05:55:38 am » |
The data pins are routed to PC1-8 (lower 8 bit) and PC12-19 (higher 8 bit), so you probably need to shift your lower 8 bit to the right<<1, and higher 8 bit to the right <<12, and then you can strobe the WR pin. So you will need 3 arduino command for one WR strobe. Like this: REG_PIOC_CODR=0xFF1FE; REG_PIOC_SODR=(VL<<1) & 0x1FE; REG_PIOC_SODR=(VH<<12) & 0xFF000; pulse_WR(); For the 4 command pins, they are routed to PD1-4. This should be straight forward. This is possible because the creator of DUE has made perfect routing of these lines to the 2x20 header. SD Card will be directly connected to the SPI interface on the 6pin header in the center of the DUE board(DUE only has SPI access on this 6pin header). Schematic is http://coldtears.lin3.siteonlinetest.com/files/CTE_DUE_shield.zip ]  This is very useful thanks. Do you have a key to the values of the other components on the board?
|
|
|
|
|
Logged
|
|
|
|
|
US
Offline
Full Member
Karma: 3
Posts: 125
Electronics are the new Legos
|
 |
« Reply #20 on: February 12, 2013, 12:34:42 pm » |
Has anyone had luck with a Due compatible library for SPI based displays? UTFT seems to be only parallel and I2C?
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 3
Posts: 395
|
 |
« Reply #21 on: February 16, 2013, 10:27:44 am » |
I've just received a 7" SSD1963 based touch screen LCD from china  It has a micro SD card slot and two 32 way connectors (both of which have the SAME connections): GND 3v3 D1 D0 D3 D2 D5 D4 D7 D6 D9 D8 D11 D10 D13 D12 D15 D14 RS CS RD WR TE RST INT TD0 PWM TD1 PCS TSCK SDCS TCS 5V GND (But these two are not connected) There is a diagram on the back of it that goes like this: JP1 Back_Light @ SSD-PWM MCU-PWM JP1 has a SMD resistor soldered across it at the factory and I think that "@ SSD-PWM" is telling me about this model. Not a bad price for such a large touchscreen with card reader either........ .... now to connect it 
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 3
Posts: 395
|
 |
« Reply #22 on: February 16, 2013, 02:12:35 pm » |
So just to get this straight....
Does this look right / what about pins 22-32 ??
------------------------------------------------- | PIN | LABEL | PIN | PIN | NUM | TFT | DUE | FUNCTION | | | | | | | | | 1 | 3v3 | >> | 3v3 power | 2 | GND | >> | Ground | 3 | D0 | 33 | | 4 | D1 | 34 | | 5 | D2 | 35 | | 6 | D3 | 36 | | 7 | D4 | 37 | | 8 | D5 | 38 | | 9 | D6 | 39 | | 10 | D7 | 40 | | 11 | D8 | 51 | | 12 | D9 | 50 | | 13 | D10 | 49 | | 14 | D11 | 48 | | 15 | D12 | 47 | | 16 | D13 | 46 | | 17 | D14 | 45 | | 18 | D15 | 44 | | 19 | CS | 27 | | 20 | RS | 25 | | 21 | WR | 26 | | 22 | RD | >> | 3v3 | 23 | RST | 28 | | 24 | TE | 9 | Don't know ! ????????????? | 25 | TD0 | >> | MISO | 26 | INT | | Don't know ! ????????????? | 27 | TD1 | >> | MOSI | 28 | PWM | 9 | Don't know ! ????????????? | 29 | TSCK | | Don't know ! ????????????? | 30 | PCS | 52 | Don't know ! ????????????? | 31 | TCS | 5 | Don't know ! ????????????? | 32 | SDCS | 4 | Don't know ! ????????????? possibly 54?????? -----------------------------------------------------------------------------------
|
|
|
|
|
Logged
|
|
|
|
|
|
|
North Queensland, Australia
Offline
Edison Member
Karma: 31
Posts: 1209
|
 |
« Reply #24 on: February 24, 2013, 12:35:12 pm » |
@cyclegadget, I remember reading about a pen that contained conductive ink. If you can get one, and its good quality, you might be able to draw a line over the top of the resistors.
Or use a loop of wire over each resistor, some people fixed the SD card connection using this method.
If you have the resources, a little breakout that reconfigures the 40pin header to the LCD format would work, then you don't need the shield.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #25 on: February 24, 2013, 01:13:05 pm » |
The stuff you are looking for used to be marketed in car accessory shops for repairing rear screen heaters. It is basically like a small bottle of nail varnish - but loaded with either silver or aluminium powder for conductivity. You can certainly use it to fix damaged pcb tracks (remove varnish from the good area first!!) , so shorting out a couple of SM resistors should be easy. Just don't splash it around...  Graeme
|
|
|
|
|
Logged
|
|
|
|
|
Greenville, IL
Offline
Edison Member
Karma: 11
Posts: 1287
Warning Novice on board! 0 to 1 chance of errors!
|
 |
« Reply #26 on: February 24, 2013, 01:55:30 pm » |
Thanks for the replies from both of you! I wanted to be sure that I had the correct idea before I did anything drastic. I can solder down to 805 resistors with good results so, I think I will be able to solder out or jumper those resistors.
I will give it a try soon!
|
|
|
|
|
Logged
|
|
|
|
|
Finland
Offline
Newbie
Karma: 0
Posts: 35
|
 |
« Reply #27 on: March 16, 2013, 04:20:30 am » |
I have problems accessing DS1307(rtc) on pins 20(sda) and 21(scl). RTC renders un usable right after initializing UTFT.. :/
Any help appreciated..
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 32
Arduino rocks
|
 |
« Reply #28 on: March 18, 2013, 09:55:09 am » |
I have a older shield for the mega, want to make it work the the due. how can i do this, mine the display is soldered on the shield, and there are surfacemount resisters, i can get to the resisters with a soldering iron if need be.
|
|
|
|
|
Logged
|
|
|
|
|
|