Now I need to configure the AD sampling feature of the LPC1788FBD144 chip, which requires the ability to read both signals simultaneously. However, there is only one ADC in the chip, how to sample two signals. By looking at the chip manual, you know that the chip has an ADC mouth with 8 channels at the same time. But in software mode, only one channel can be sampled at a time. If in the hardware scan mode, which bits of the 8 channels are set to 1, the sampling values of these channels can be read. I suspect that you may need to configure a hardware scan mode to sample both signals simultaneously.
My question is:
1、LPC1788FBD144 chip has only one ADC mouth, how to sample two signals simultaneously?
2、The first 8 bits in the AD control register of LPC chip are the selection and input channels. In the software mode, only one can be set to 1. In the hardware scan mode, any value containing 1-8 can be written into that bit. I now need to collect two signals, which will require two channels, so two channels must be configured in the hardware scan mode. So what is the hardware scan pattern? Which registers should I configure to start the hardware scan mode?
Solved! Go to Solution.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you very much for your answer.I have some questions.
1)If the BURST bit in the ADCR is 1,So can we set the [7:0]SEL bits to 1 all of bits?
2)If the BURST bit in the ADCR is 1,Can we use multiple channels to collect several different signals?
3) If the BURST bit in the ADCR is 1,How to set [26:24]START bits and [27]EDGE bit ?
4)If the BURST bit in the ADCR is 1,Can the AD conversion be started when the chip is powered on?
Hi,
Thanks for your reply.
1)If the BURST bit in the ADCR is 1,So can we set the [7:0]SEL bits to 1 all of bits?
-- Yes
2)If the BURST bit in the ADCR is 1,Can we use multiple channels to collect several different signals?
-- Yes
3) If the BURST bit in the ADCR is 1,How to set [26:24]START bits and [27]EDGE bit ?
-- START bits must be 000 when BURST = 1
4)If the BURST bit in the ADCR is 1,Can the AD conversion be started when the chip is powered on?
-- Yes.
Hope this is clear
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------