What interrupt value does the ADC C280x/C2833x post at the EOC?

조회 수: 4 (최근 30일)
Jonathan Lee
Jonathan Lee 2013년 4월 15일
댓글: Ahmed Khamis 2023년 4월 3일
I'm using the C280x/C2833x ADC block in Matlab/Simulink's Embedded Coder. I want to use the end of conversion interrupt to trigger a different subsystem from a hardware interrupt block. This task means I must know which interrupt this block is posting to at the EOC.
I'm using the TI chip TMS320F28335. There are three interrupts associated with the ADC: SEQ1INT, SEQ2INT, and ADCINT. Unfortunately, I haven't gotten any to work yet. maybe there is one more step in the process, but I want to nail down which interrupt is being used in the first place.
I think that the ADC block will post an interrupt at the end of conversion to ADCINT, which is INT1.6.
Does anyone know if this assumption is correct?
Thanks.

답변 (1개)

Antonin
Antonin 2017년 9월 22일
Hi Jonathan,
If using module A on the ADC block, the interrupt triggered is SEQ1INT (1.1 in the PIE).
If using module B on the ADC block, the interrupt triggered is SEQ2INT (1.2 in the PIE).
If using module A and B on the ADC block, the interrupt triggered is SEQ1INT (1.1 in the PIE).
The ADCINT at 1.6 in the PIE has been kept for code compatibility with the older F281x devices. I don't recommend using it as it only provides redundant capabilities compared to SEQ1INT and SEQ2INT.
A good example where both are used is the dual motor control example c28035pmsmfocdual. It's not exactly the same device as 28335, but you will get the idea.
I hope it helps,
Thanks,
Antonin.
  댓글 수: 1
Ahmed Khamis
Ahmed Khamis 2023년 4월 3일
Hi After setting the EOC interrupt for module A as SEQ1INT (1.1 in the PIE), and setting the ADC prescalars to run at 25 MHz, a simple GPIO_0 output that toogles when interrupt is called doesn't follow the speed setting of the ADC.

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

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by