Arduino Due pinouts photo

This diagram is now superceeded by the excellent and highly detailed DUE pinouts diagram by Graynomad

Colors indicate comparison to the Mega2560 which has a similar shield connector pinout. Green means the same as Mega2560. Red is for warnings. Orange shows new functionality:

  • JTAG and SWD headers for debugging
  • DAC outputs
  • CAN bus
  • Two USB ports
  • erase switch

Please ignore the interrupt pins for now, these are not implemented in 1.5 but are planned for 1.5.1 so I will leave them where they are for the moment and revise when 1.5.1 comes out.

revision 2: correct labelling of USB ports, SPI not ICSP header.
revision 3: label JTAG and SWD pins, call out 16U2 ICSP (thanks to PeterVH)

The definitive source remains the official Arduino Due hardware page. This pinout photo overlay is just for convenience.

OK, on further reading, the ICSP port is now called the SPI port because it is no longer used for programming, just for communication. Hmm. Edit: Maybe that explains why there is no ICSP header for the 16U2 that drives the USB Programming port. There is, its just moved relative to the Mega, as neuromancer2701 points out.

Its not clear what is driving the USB Native/USB Host port.

Hi,
How do you determine which pins sink/source the two figures you have quoted for pin current ?

Duane B

DuaneB:
Hi,
How do you determine which pins sink/source the two figures you have quoted for pin current ?

Good question. the Due page is vague:

Each pin can provide (source) a current of 3 mA or 15 mA, depending on the pin, or receive (sink) a current of 6 mA or 9 mA, depending on the pin.

There is a 6 pin ICSP header right next to the 16U2 that can be used to flash it. What about the MacB connector on the schematic? It is not laid out on the pcb? Anyone know the point of that?

MacB is connected to the Ethernet Mac on the processor.
it's not on the PCB because there wasn't any room left in a decent spot.

it will be used for a future product.

m

If I read the data sheet correctly

15mA on these pins

PA0, PA7, PA9, PA[14-15], PA[18-19], PA[25-31]; PB[0-3]; PB8, PB[10-11], PB14, PB[22-24], PC[0-30], PD[0-30], PE[0-9],PE15, PE[17-21], PE23, PE25, PF[0-2]

3mA on these pins

PA[1-6], PA8, PA[10-13], PA[16-17], PA[20-24], PB[4-7], PB9, PB[12-13], PB[15-21],PB[25-31],PE[10-14], PE16, PE22,PE24, PE26, PF[3-5]

This needs mapping to the Arduino pins though.


Rob

Thanks Rob. I will have a think on how to express that graphically. I think it would be clearest on a separate diagram.

Here's a quick first pass at the Arduino-to-15mA mappings. The pins with 15 at the end of the line should be high-current.

0   PA8          RX0
1   PA9          TX0                  15
2   PB25         Digital Pin 2
3   PC28         Digital Pin 3         15
4   PA29 and PC26   Digital Pin 4         15
5   PC25         Digital Pin 5         15
6   PC24         Digital Pin 6         15
7   PC23         Digital Pin 7         15
8   PC22         Digital Pin 8         15
9   PC21         Digital Pin 9         15
10   PA28 and PC29   Digital Pin 10         15
11   PD7          Digital Pin 11         15
12   PD8          Digital Pin 12         15
13   PB27   Digital Pin 13 / Amber LED "L"
14   PD4          TX3                  15
15   PD5           X3                  15
16   PA13         TX2
17   PA12         RX2
18   PA11         TX1
19   PA10         RX1
20   PB12         SDA
21   PB13         SCL
22   PB26         Digital Pin 22
23   PA14         Digital Pin 23         15
24   PA15         Digital Pin 24         15
25   PD0          Digital Pin 25         15
26   PD1          Digital pin 26         15
27   PD2          Digital Pin 27         15
28   PD3          Digital Pin 28         15
29   PD6          Digital Pin 29         15
30   PD9          Digital Pin 30         15
31   PA7          Digital Pin 31         15
32   PD10         Digital Pin 32
33   PC1          Digital Pin 33         15
34   PC2          Digital Pin 34         15
35   PC3          Digital Pin 35         15
36   PC4          Digital Pin 36         15
37   PC5          Digital Pin 37         15
38   PC6          Digital Pin 38         15
39   PC7          Digital Pin 39         15
40   PC8          Digital Pin 40         15
41   PC9          Digital Pin 41         15
42   PA19         Digital Pin 42         15
43   PA20         Digital Pin 43
44   PC19         Digital Pin 44         15
45   PC18         Digital Pin 45         15
46   PC17         Digital Pin 46         15
47   PC16         Digital Pin 47         15
48   PC15         Digital Pin 48         15
49   PC14         Digital Pin 49         15
50   PC13         Digital Pin 50         15   error?
51   PC13         Digital Pin 51         15  error?
52   PB21         Digital Pin 52
53   PB14         Digital Pin 53         15
54   PA16         Analog In 0
55   PA24         Analog In 1
56   PA23         Analog In 2
57   PA22         Analog In 3
58   PA6          Analog In 4
59   PA4          Analog In 5
60   PA3          Analog In 6
61   PA2          Analog In 7
62   PB17         Analog In 8
63   PB18         Analog In 9
64   PB19         Analog In 10
65   PB20         Analog In 11
66   PB15         DAC0
67   PB16         DAC1
68   PA1          CANRX
69   PA0          CANTX               15
70   PA17         SDA1
71   PA18         SCL2               15
72   PC30         LED "RX"
73   PA21         LED "TX"
74   PA25         (MISO)               15
75   PA26         (MOSI)               15
76   PA27         (SCLK)               15
77   PA28         (NPCS0)               15
78   PB23         (unconnected)         15
USB   PB11         ID                  15
USB   PB10         VBOF               15

Sorry for the crap formatting.

Note pins 50 and 51, I think there's a bug there. I'll have a look at the schematic.

EDIT: PC12 is pin 51.


Rob

Hi,
I wondered if the limit was due to the total current limit of 150ma, i.e. if your using all the pins on account of the total limit you will only have 3mA per pin.

Graynomad,
What part of the datasheet are you looking at ?

Duane B

Table 45-2, page 1389.

Pins in group 1 are 15/9, group 2 are 3/6 (source/sink) and the groups are defined in the footnotes at the bottom of the page.


Rob

page 1389 - Were not in Kansas any more.

Duane B

DuaneB:
page 1389 - Were not in Kansas any more.

Duane B

Yes, we are going have to find a few lawyers to come on forum and participate in the Due postings. :wink:

page 1389 - Were not in Kansas any more.

:~, this must be a US thing is it?


Rob

Graynomad:

page 1389 - Were not in Kansas any more.

:~, this must be a US thing is it?


Rob

It's a famous line from the classic movie The Wizard of Oz after Dorthy and her little dog are sweep up in a tornado and deposited in the land of Oz. Do you have no culture down under? :smiley:

From the 1939 film The Wizard of Oz in which Dorothy states "Toto, I've a feeling we're not in Kansas anymore."

retrolefty:
It's a famous line from the classic movie The Wizard of Oz after Dorthy and her little dog are sweep up in a tornado and deposited in the land of Oz. Do you have no culture down under? :smiley:

Of course they do, but since Australia is a place where practically everything is trying to kill you they don't have time to enjoy classic cinema! They are much too busy fending-off fatally poisonous snakes, spiders, toads, and duckbilled playpuses (well only the males have poisonous claws but that's roughly half of them). As well as potentially face-rending koloa bears, boxing kangroos, and baby stealing dingos. Heck, under certian circumstances even the trees explode! Steve Irwin was never acting for the camera, he just was displaying the attitude necessary to wake-up each morning and attempt to live your life there.

*****Note: All the above written with tounge firmly in cheek! :wink: *****

I think you forgot the insects that live under toilet seats and bite your balls, and dropbears, and jellyfish. But yeah.

Getting more on-topic, that 4-pin JTAG debugging interface. I cant find a JTAG pinout that is less than 8 pins. Most are 14..20. The official schematic shows something that is clearly not what is on the photo. Any ideas?

The jtag connector at the top of the schematic is a standard 10-pin ARM pinout IIRC.

The 4-pin one at the bottom of the schematics looks to be what's loaded on the board.

If you look near the 4-pin header on the photo you can see provision for the 10-pin 50-mil pitch header. So I'd say you could go both ways, they must have a debugger in mind that uses the 4-pin version but are also allowing for a standard interface.

EDIT: I didn't realise it was so dangerous here, maybe I should emigrate :), mind you the snakes are getting active now we're warming up after winter, I've seen a 4' black snake, 8' python and a baby snake with a black and orange head in the last few days.


Rob

I see in another thread:

cmaglie:
Actually interrupt*() functions are not implemented yet.

Sorry for that guys, but we didn't had the time to implement it on time for launch, this is one of our high priority for the next 1.5.1, that will be released ASAP.

I added a warning about that in the first post in the thread.