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

BASCOM-AVR : SPI chip select bascom AVR : REPLY

$
0
0
Hi Michael ! Agreed, manipulating /SS manually is a trick that always works. But the nice feature of the SPI logic in an AVR is that we can let it take care of the /SS-pin automatically. If I need to [b:ab2e4a8624]read [/b:ab2e4a8624]from SPI while spitting out 4 bytes, I see no other option than manually manipulating /SS. Because when I use multiple Spimove-statements, /SS goes high in between those statements. It's a bit academic, but I think I would use assembler if things really have to run fast or are getting complicated ... Reason for me to dig a bit deeper into SPI in all its flavours is that Evert Dekker mentions in AN #151 that HW SPI must be used as soft SPI seems to fail in that application (nRF24L01). And I want to know why :lol: Cheers Nard

Viewing all articles
Browse latest Browse all 20710

Latest Images

Trending Articles



Latest Images

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