Go Down

Topic: what are these pin spots for? (Read 914 times) previous topic - next topic

c0d3Man

looking at my Mega2560 and the Uno, and I was wondering, what are these for?

johnwasser

ICSP for the ATmega8u2 used for USB-to-Serial conversion.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

c0d3Man

#2
Jul 12, 2012, 07:13 pm Last Edit: Jul 12, 2012, 07:15 pm by c0d3Man Reason: 1
I'm not talking about the ICSP header, I'm talking about the 4 spots right next to the ICSP header.

also this is the R3 which uses a 16U2 instead of the 8U2.

johnwasser

The schematic shows them as connected to PORTB Bits 4-7.  Not much on those pins except PCINT4-7
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

c0d3Man

#4
Jul 12, 2012, 07:49 pm Last Edit: Jul 12, 2012, 07:57 pm by c0d3Man Reason: 1
what are those two things?

[sorry, my experience comes from an electronics learning lab from radio shack, I'm better with programming and even that I have little experience, my Mega2560 (R3) is my pride and joy past analog and very basic digital electronics]

EDIT: scratch that, just looked up the datasheet for the 16u2 and it appears that PCINT4-7 are mostly just interrupts.

WizenedEE

Well I'm guessing they were just intended as GPIO. I had a thought a while ago that you could reprogram the usb to serial chip to tell the arduino (by writing a pin high/low) when there's a usb connection -- that would be impossible without extra pins broken out.

westfw

People had used the FTDI chip (the previous USB->serial converter) in "bit bang" mode to program the bootloader into the main CPU.  In theory, having these pins broken out to pads would allow something like that with the new chip as well.

Go Up