Hi Folks,
could you please check if ADC_setIntMode peripheral library function with ADC_IntMode_EOC parameter works for you ? I have F28027 on my board and found out that calling
ADC_setIntSrc(myAdc, ADC_IntNumber_1, ADC_IntSrc_EOC2 ); /* SOC 2 trigger */
ADC_setIntMode(myAdc, ADC_IntNumber_1, ADC_IntMode_EOC); /* ignore the flag */
ADC_enableInt(myAdc, ADC_IntNumber_1); /* Enable INT1 for ADC */
does not set correct bits in INTSEL1N2 register. The first function shall set INTSEL1N2 to 0x0002. The second shall set INTSEL1N2 to 0x0042 and the last one to 0x0062.
However, I get 0x0023 as a result. Calling
Calling
ADC_setIntMode(myAdc, ADC_IntNumber_1, ADC_IntMode_EOC); /* ignore the flag */
with ADC_IntMode_EOC parameter sets bit 0 instead of bit 6. Same happens for bit 14. I assume there is a bug in the library. My code works flawlessly when I set INTSEL1N2 manually using a debugger.
Library version is : C:\ti\controlSUITE\device_support\f2802x\v230\
I'll provide more details if needed.
Best Regards, Jiri