Action
Initializes the pins of the SPI-bus.
Syntax
SPIINIT
Remarks
The pins used for the SPI bus must be set to the proper logical level before you can use the SPI commands.
See also
SPIOUT , CONFIG SPI , SPIIN
Example
Dim a(10) as byte
CONFIG SPI = SOFT, DIN = P1.0, DOUT = P1.1, CS=P1.2, CLK = P1.3
SPIINIT
SPIIN a(1) , 4 'read 4 bytes