Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20744

BASCOM-AVR : SPI chip select bascom AVR : REPLY

$
0
0
Cool ! Would the code look like this ? [code:1:08fa9aafb3]Dim Spi_to_send_data(5) As Byte Dim Spi_received_data(5) As Byte Config Spi = Soft , Din = Pinb.4 , Dout = Portb.3 , Ss = Portb.2 , Clock = Portb.5 , mode = 1 Spiinit 'Assign values: Spi_to_send_data(1) = &HA8 'etc Spi_received_data(1) = Spimove (Spi_to_send_data(1)) 'etc [/code:1:08fa9aafb3] But how does it know how many bytes should be sent ? I think I read all the Help files on SPI thoroughly, but cannot figure it out ... Thanks Nard

Viewing all articles
Browse latest Browse all 20744

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>