This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can I use AD converter on my MCB2300 board without ADC interrupt routine?

I want to read value from AD converter in specific time, in my timer1 interrupt routine, is that possible?

Parents
  • Which MCU it is?

    For LPC2378, see the AD0CR and AD0GDR registers in the user manual.

    I think it should work this way:

    Setup your timer.

    Clear the BURST bit, so that you can manually do the AD conversion.

    Set the START bits 001 to start the conversion now.

    Then in every timer interrupt, check the DONE bit AD0GDR to see if the conversion has been done.. If DONE, read the value in and then restart the conversion

    Or you can also check individual done flags in AD0STAT.

    I have not worked on LPC23xx so this is a guess. Hope it helps...

Reply
  • Which MCU it is?

    For LPC2378, see the AD0CR and AD0GDR registers in the user manual.

    I think it should work this way:

    Setup your timer.

    Clear the BURST bit, so that you can manually do the AD conversion.

    Set the START bits 001 to start the conversion now.

    Then in every timer interrupt, check the DONE bit AD0GDR to see if the conversion has been done.. If DONE, read the value in and then restart the conversion

    Or you can also check individual done flags in AD0STAT.

    I have not worked on LPC23xx so this is a guess. Hope it helps...

Children
No data