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

4 Ansichten (letzte 30 Tage)
Jonathan Lee
Jonathan Lee am 15 Apr. 2013
Kommentiert: Ahmed Khamis am 3 Apr. 2023
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.

Antworten (1)

Antonin
Antonin am 22 Sep. 2017
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 Kommentar
Ahmed Khamis
Ahmed Khamis am 3 Apr. 2023
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by