cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the ADC1 Scan mode?

u8911056
Associate II
Posted on April 06, 2009 at 05:42

How to use the ADC1 Scan mode?

4 REPLIES 4
u8911056
Associate II
Posted on May 17, 2011 at 15:02

I used the STM8S205S6 (header file is STM8S205C_S.h), STVD and cosmic compiler.

I read the datasheet and try to use the scan mode of ADC1 module.

I try to set the scan bits in ADC_CR2 and the other setting bits.

But I can't find the ADC result register (ADC_DBxRH in datasheet) in the header file.

How can I read the result? modify the header file by myself?

bassinux
Associate II
Posted on May 17, 2011 at 15:02

Hi,

I think that you use an Old version of STVD, there is a new version available now in Internet.

Also the reference STM8S205S6 does not exist in the STM8S portfolio

patocheham
Associate II
Posted on May 17, 2011 at 15:02

Hello,

The STM8S205 has been replaced by STM8S105. The max frequency is now 16MHz. In order to run faster, you need to select the STM8S207 (24MHz)

Pat :D

u8911056
Associate II
Posted on May 17, 2011 at 15:02

to patocheham:

The max frequency is now 16MHz. In order to run faster, you need to select the STM8S207 (24MHz)

In my application, I need the ADC1 Scan mode let my chip run faster(9ch ADC convert every 1ms). It is ADC2 mode in STM8S207 (ADC2 mode can't use the scan mode),so I don't like to use it.