SPIMOVE/de
From MCS Wiki AVR
< SPIMOVE(Difference between revisions)
(Created page with "= <span class="f_Header">Action</span> = Sends and receives a value or a variable to the SPI-bus. <span style="font-family: Arial;"> </span> <span style="font-family: ...") |
m (1 revision) |
Latest revision as of 21:16, 15 February 2013
Contents |
= (**COPIED FROM ENGLISH PAGE**) === Action
Sends and receives a value or a variable to the SPI-bus.
Syntax
var = SPIMOVE( byte )
Remarks
Var |
The variable that is assigned with the received byte(s) from the SPI-bus. |
Byte |
The variable or constant whose content must be send to the SPI-bus. |
See also
SPIIN , SPIINIT , CONFIG SPI
Example
Config Spi = Soft , Din = Pinb.0 , Dout = Portb.1 , Ss = Portb.2 , Clock = Portb.3 Spiinit Dim a(10) as Byte , X As Byte Spiout A(1) , 5 'send 5 bytes Spiout X , 1 'send 1 byte A(1) = Spimove(5) ' move 5 to SPI and store result in a(1) End
Languages | English • Deutsch |
---|