How to connect Raspberry Pi to DAC MCP 4921 using SPI Simulink blocks?
10 views (last 30 days)
I want to set an output voltage with a RaspberryPi with an DAC MCP4921 using Simulink, in particular using the new block "SPI Register Write" available in the latest Simulink version (without writing C code or Matlab code). In this block is required a Register Address where SPI has to write the value from the slave. Can anyone help me?
Mark McBroom on 5 Feb 2023
Would you want to use the SPI Read/Write/Master blocks to communicate with this external device, similar to this example that uses SPI to communicate with an external EEPROM device?