I am using an ATtiny861a and I want to enable it to use SPI. In doing this I need to assign not one, but two CS/SS pins in order to communicate with a radio and an external memory. Does the CS/SS pin need to be connected to an ADC pin or could it be connected to a AREF, PCINT, or OC1A/OC1B pin?
Electronic – CS/SS pin configuration
attinyavrmicrocontrollerpinsspi
Best Answer
I believe you can use any GPIO pin as CS/SS. Keep in mind you will need a different pin for each slave device. For example say device0 SPI CS is connected to PORTD pin 5, and device1 SPI CS is connected to PORTD pin 6: