Рет қаралды 12,040
Timestamps:
Hardware init = 17:25
SPI functions = 25:10
In this video I explain how SPI works and how to use it with STM32 with hal. As an example I use PCM1792 audio DAC as a peripheral device. With it we can demonstrate reading and writing into peripheral registers with SPI.
All resources are down below.
Code example used in the video:
github.com/prt...
My previous video on I2C:
• Using I2C for any devi...
Analog devices page on SPI:
www.analog.com...
Analog devices page on I2C:
www.analog.com...
Wikipedia SPI image author:
By SPI_timing_diagram.svg: en:User:Cburnettderivative work: Jordsan (talk) - SPI_timing_diagram.svg, CC BY-SA 3.0, commons.wikime...