Chip Select of TinyDuino with microSD Card TinyShield

Started by richardtam, September 06, 2016, 02:53:45 PM

Previous topic - Next topic

richardtam

*
Newbie
Posts: 2
Logged
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?

richardtam

*
Newbie
Posts: 2
Logged
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.

SMF spam blocked by CleanTalk