Page 1 of 1

Unused SPI NPCS pins available for IO?

Posted: Mon Jan 12, 2015 1:18 am
by dougcl
Hi folks, I am planning on using SPI Master in Fixed Peripheral Select mode (NPCS0 only). The question is, are the unused NPCS1-3 pins unavailable for other duties? Looks like the SPI peripheral defaults the four NPCS pins to 0xF in Master mode. So maybe these pins cannot be allocated as general purpose digital IO. If this is true though, the use of the SPI peripheral in Master uses up a lot of pins!

Thanks
Doug

Re: Unused SPI NPCS pins available for IO?

Posted: Mon Jan 12, 2015 8:20 pm
by kshysio
hi, you can configure every pin function by setting they peripheral A, B, C bits. so configuring SPI channel and configuring PIO - it's two different things, for example you can use NPCS pin as general IO and activate them manually...