embeddedmicrocontrolleravrspipins

AtMega 328 SPI pin restrictions


In the above picture for the ATMega328p pinout if Im using the microcontroller as an SPI bus master i know i will be using the signals SCK, MOSI, MISO and SS# which correspond to pint 19,18,17 and 16.

I am just wondering what other pin functions will then be restricted because the SPI pins are used?


Solution

  • You will lose output compare 2A and possibly 1B, and the ability to use PB3 and PB5 as general outputs. Pin change interrupts will still be triggered, and the pins can always be queried for input.