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 Center および File ExchangeMATLAB Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by