AnsweredAssumed Answered

S12 SPI read and write 93lc76c

Question asked by gao lin on Jul 8, 2009
Latest reply on Jul 9, 2009 by gao lin

hi all, 


How to clear SPISR_SPTEF bit?


 DATASHHET the following description:


 If set, this bit indicates that the transmit data register is empty. To clear
this bit and place data into the transmit data register, SPISR has to be read with SPTEF = 1, followed by a write
to SPIDR. Any write to the SPI Data Register without reading SPTEF = 1, is effectively ignored.


Can provide some routine? thank you!