STM32 programming SPI protocol pt.1

Milan Karakas
Milan Karakas
4.1 هزار بار بازدید - 5 سال پیش - SPI or Serial Peripheral Interface
SPI or Serial Peripheral Interface is versatile protocol. Unlike I2C which do chip select by calling iaddress of paticular chip(s), SPI do the same by selecting chip(s) by sending signal over inverted 'slave select' - NSS wire. Although SPI is sometimes called "three wire interface", I will not use this term because SPI can work on two wires in semi-duplex mode, where MOSI and MISO are on the same wire, while clock is at another. Full duplex is when MOSI and MISO has separate wires. There are many variations and combinations, multi-slave, multi-master... too much for one video. If you are interested in interfacing this excellent transceiver, Si4432, the codes are here: http://wildlab.org/index.php/2019/03/...
But, missing block diagram and description. I was somewhat in rush, because saw that many people desperately trying to bring to life this transceiver, but Silicon Labs made it very complicated to understand and manipulate registers and everything else.
So far, those examples are for STM32 MCUs, but later will give you example combining STM32 and Atmega328p or similar "Arduino" boards. Imagine we got one software that works great on Arduino, another on STM32, and we want those two MCUs to communicate and share data. That will be interesting to see.
~~~~~~~~~~~~~-~~~~~~~~~~~~~~
5 سال پیش در تاریخ 1397/12/17 منتشر شده است.
4,143 بـار بازدید شده
... بیشتر