1 12/03Copyright © 2003 by Silicon LaboratoriesAN128-DS11AN128SOFTWARE SPI EXAMPLES FOR THE C8051F30X FAMILYRelevant DevicesThis application note applies to the following devices:C8051F300, C8051F301, C8051F302, and C8051F303
IntroductionThis application note is a collection of routines thatcan be used to implement a master-mode SPIdevice in software
Eight different examples of aSPI master-mode transfer are provided
The exam-ples contain two functions for each of the SPI clockphase and polarity options: an example written in‘C’, and for increased speed, an assembly routinethat can be called from ‘C’
An example of how tocall the routines from a ‘C’ program and anEEPROM interface example are also provided
SPIis a trademark of Motorola Inc
The SPI functions described in this docume