TI C2000 Delfino - Setting up a software SOC trigger for an ADC in Simulink
24 次查看(过去 30 天)
显示 更早的评论
Hi, I'd like to know how to set up a software SOC trigger for an ADC in Simulink. Page 1564 of the TI Delfino Technical Reference Manual (Rev. I) states that to trigger this interrupt, we should write bits to the ADCSOCFRC1 register. It seems fairly straightforward to do this in Code Composer Studio by writing to a particular register. However I am unable to find documentation for how to do this in Simulink.
Could you please advise me on how to set this up? Should I be using the Memory Copy block to write to a particular address?
For reference, here are the block parameters for the particular ADC in question, which I'd like to trigger using software. Note the "SOCx trigger source" parameter says "Software".
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/542286/image.png)
0 个评论
回答(3 个)
Aditya Padmanabha
2021-10-18
Hi Aryaman,
Please refer to the following pages which explains or showns how to configure SOC for ADC.
Thanks,
Aditya
0 个评论
David
2023-3-22
Hello,
Is there any current documentation that explains how to set up the software trigger for ADC in Simulink?
The links provided say "The page you were looking for is not available in this version of the documentation."
my main question is wether I need to use the MemoryCopy Block to write the ADCSOCFRC1 bits like said in the Technical Reference Manual or is there another way?
1 个评论
Aditya Padmanabha
2023-3-23
Hi David,
Please check these updated link Configure ADC to sample analog pins and output digital data - Simulink - MathWorks India and ADC-PWM Synchronization Using ADC Interrupt - MATLAB & Simulink - MathWorks India.
Thanks,
Aditya
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!