SPI MCP4822 DAC with Raspberry Pi
조회 수: 4 (최근 30일)
이전 댓글 표시
Good morning, I am trying to implement a Simulink project to generate a signal using a Raspberry Pi with MCP4822 DAC via SPI communication.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/625173/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/625178/image.png)
What I get during the execution of the code, is an absolutely unstable signal with the presence of many interruptions.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/625183/image.png)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/625188/image.png)
Is there any particular configuration to be able to solve the problem?
What could the signal interruption be due to?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!