Go Down

Topic: Arduino Mega 2560 pin functions, possible damage (Read 1 time) previous topic - next topic

Odeon

I'm using a HacroCam shield (www.hacromatic.com) with an Arduino Mega 2560. The HC is designed to be used as a shield on an Uno, which has A4 for SDA and A5 for SCL. The Mega uses pins 20 and 21 for SDA and SCL, however, so I've wired the HC's SDA and SCL pins to 20 and 21.

The PinMapping2560 page (http://arduino.cc/en/Hacking/PinMapping2560) says that the Mega's A4 and A5 pins are for TMK and TMS, but I can't find any information on what those functions are. If I plug the HC in as a shield and wire the pins as above, I'd also be wiring the Megas A4 to 20 and A5 to 21. Would that cause any damage on power-up?

Odeon

It's a good thing I learned how to use the two boards separated!

Does anyone know what TMK and TMS are?

CrossRoads

Just set the other pins as inputs, you will be fine.
TMK & TMS are used in JTAG if you have that enabled for debugging (needs fuse burning).
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Odeon

Good to know, thanks. I'm not using JTAG and I don't even need to use any analog pins in my project anyway so I guess not doing anything with them in my sketch means they're essentially disabled?

CrossRoads

As long as you don't set them as outputs, they can be considered "disabled".
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


Go Up