vinodstanur
Advanced Member level 3
- Joined
- Oct 31, 2009
- Messages
- 751
- Helped
- 114
- Reputation
- 234
- Reaction score
- 114
- Trophy points
- 1,333
- Location
- Kerala (INDIA)
- Activity points
- 7,054
Hi,
recently I started playing with stm8s microcontroller, I am using stm8s003f3 microcontroller.
I am planning to use SCAN MODE in adc. From the datasheet it seems like scan mode can happen only from ADC0 to ADCn where n is the channel number.
But in the stm8s003f3 the ADC channel numbering starts from ADC2. (ADC2 to ADC6 (5 channels))
So I am a bit confused how to configure the SCAN mode channel limit settings.
recently I started playing with stm8s microcontroller, I am using stm8s003f3 microcontroller.
I am planning to use SCAN MODE in adc. From the datasheet it seems like scan mode can happen only from ADC0 to ADCn where n is the channel number.
Single scan mode.
This mode is used to convert a sequence of analog channels from AIN0 to AINn where ‘n’ is
the channel number defined by the CH[3:0] bits in the ADC_CSR register. During the scan
conversion sequence the CH[3:0] bits are updated by hardware and contain the channel
number currently being converted.
But in the stm8s003f3 the ADC channel numbering starts from ADC2. (ADC2 to ADC6 (5 channels))
So I am a bit confused how to configure the SCAN mode channel limit settings.