TinyCircuits Forum

TinyCircuits Products => TinyDuino Processors & TinyShields => Topic started by: richardtam on September 06, 2016, 02:53:45 PM

Title: Chip Select of TinyDuino with microSD Card TinyShield
Post by: richardtam on September 06, 2016, 02:53:45 PM
According to the spec of ATmega328 from TinyDuino board, the SS pin (for SPI chip select pin/PB2) should be in pin 14. It also show in the schematic. When I refer to the SD card tutorial (https://tinycircuits.com/blogs/learn/121547591-using-the-microsd-adapter-tinyshield-tutorial), it states that the chip select pin should be in pin 10.

Why the chip select (SS) is in pin10?
Title: Re: Chip Select of TinyDuino with microSD Card TinyShield
Post by: richardtam on September 07, 2016, 10:16:19 AM
Sorry for silly question.

I found out that Arduino platform using another pin mapping (or naming) and it is NOT related to the physical pin number of the chip. For ATmega328, arduino mapping is as following:
https://www.arduino.cc/en/Hacking/PinMapping168

Therefore, the SS pin (physical pin number is pin 14) is named as pin 10 in Arduino platform.