tasks
phase 1 needs this falling edge.
communication.
command string.
chip select pin to idle high.
tasks
}
while( TRUE );
}
Copyright © 2010-2013, International Technologies & Systems Corporation. All rights reserved.
SecureHead SPI Interface with FPC User Manual
// .............
}
if(SPIMasterCommandReady){ // If SPI master wants to send a command to SPI slave
_SPI_SS = 1; // To Generate a falling edge. Not useful for clock phase 0, but clock
BeepOn_Long(); // Send out one beep to indicate command finished.
}
{
// .............
}
delay10us(); // Wait for high level get steady.
_SPI_SS = 0; // Pull chip select pin low, ready to start SPI
for(j = 0; j < Command_Length; j++){ // Send out whole
spi_Sendout(Command_OUTbuf[j]);
}
_SPI_SS = 1; // Read out all the data from SPI slave, set
Page 57 of 67
Other subroutine to handle other
Other subroutine to handle other
Need help?
Do you have a question about the SecureHead and is the answer not in the manual?