* NOTE:
* This function is use only in spi master mode
*****************************************************************************/
void spi_Sendout(Uchar data inchar){
Uchar data m;
SPDAT = inchar;
while(!transmit_completed);// wait for transmition complete (interrupt complete), flag
transmit_completed will be set in SPI interrupt subroutine.
transmit_completed = 0;
m = 4;
// Delay 40us then poll for DAV pin status or send out next byte.
do{
delay10us();
}while(m--)
Copyright © 2010-2013, International Technologies & Systems Corporation. All rights reserved.
SecureHead SPI Interface with FPC User Manual
// send a data, put the data into SPDAT register
// clear software transmit end flag
Page 60 of 67
Need help?
Do you have a question about the SecureHead and is the answer not in the manual?