This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using ADCBSY bit in f28035

Could I ignore checking ADCBSY bit status before get ADCRESULT for caculation in PWM_Isr?

I mean that can i delete following code before caculation:

while(...ADCBSY == 1) { asm(" NOP");}

  • Hi Tien,

    It is hard to say that you can ignore this without the context of what this is being used for. Is this code from a TI example or kit software?

    I don't see the busy bit being used very often; a better solution to ensure that results have latched is to setup an ADC ISR flag to be set based on the last SOC in a set of conversions, and then clear that flag when you read the results.