필터 지우기
필터 지우기

280049C ADC sampling question

조회 수: 4 (최근 30일)
Xiaoliang Tang
Xiaoliang Tang 2022년 10월 10일
댓글: leichao zhu 2023년 7월 28일
Hi!
I'm debugging the ADC module using TI Piccolo F280049C LaunchPad.After the program is downloaded, the result read by the ADC is always 0.Can you help to config where there is a problem with the configuration?
I use CCS to debug the LaunchPad using the generated code,the ADCResult REG remaids 0 all the time
Or can you provide a model that the ADC is working correctly?
Thanks!
  댓글 수: 1
leichao zhu
leichao zhu 2023년 7월 28일
I encountered the same issue, and I noticed that the register address for AdcaResultRegs in the code generated by Simulink is incorrect.

댓글을 달려면 로그인하십시오.

답변 (1개)

Irene Boben
Irene Boben 2023년 6월 19일
Hi,
The block configuration looks right. What is the analog input voltage that is given to the ADC pin?
There are two ways to test using a simple mode.
  1. Have just a DAC and ADC in the model. For F280049C launchpad, DAC - A out is internally connected to ADC A0 channel. Run this model in external mode ( "Monitor and Tune") and check whether ADC output is in range with the DAC input
  2. There is shipping example 'ADC-PWM Synchronization Using ADC Interrupt' for F28004x based board as well. This too can be refered.
Hope this helps.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by