AnsweredAssumed Answered

FRDM-K64: Anyway to control the SPI PCSn line as a gpio output?

Question asked by Ben Houston on Jul 27, 2016
Latest reply on Jul 29, 2016 by jeremyzhou

I am trying to hold the assertion of the chip select line between byte transfers to a device. 

Example: Assert CSn->Send byte->CSn stays asserted->Send next byte....and so on until byte by byte transfer is complete.


On the FRDM-KL27, I can configure the CSn as a gpio.  I can then control the CSn as needed in firmware.

Not so on the K64.  Or is it???? 


Before you say...just make CSn continuous over transfers by using the CONT bit, I have to warn you.  According to SDK 2.0, I can only set this bit if my CPHA is equal to 1, which it is not.  Setting it to 1 would violate the slave devices specs.


I am using SDK 2.0 with IAR EWARM.


So...what would you do K64 ninjas?