SPI MCP4822 DAC with Raspberry Pi

6 ビュー (過去 30 日間)
Mirko Mirabella
Mirko Mirabella 2021 年 5 月 21 日
Good morning, I am trying to implement a Simulink project to generate a signal using a Raspberry Pi with MCP4822 DAC via SPI communication.
What I get during the execution of the code, is an absolutely unstable signal with the presence of many interruptions.
The samples sent to the DAC do not respect the timing set in the simulink model which is 10KSample/s. In the figure is represented the trend of the signals CE1, Clock, MOSI for the DAC.
Is there any particular configuration to be able to solve the problem?
What could the signal interruption be due to?

回答 (0 件)

カテゴリ

Help Center および File ExchangeRaspberry Pi Hardware についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by