Skip to main content
Visitor II
April 6, 2009
Question

How to use the ADC1 Scan mode?

  • April 6, 2009
  • 4 replies
  • 1035 views
Posted on April 06, 2009 at 05:42

How to use the ADC1 Scan mode?

    This topic has been closed for replies.

    4 replies

    u8911056Author
    Visitor II
    May 17, 2011
    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?

    Visitor II
    May 17, 2011
    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

    Visitor II
    May 17, 2011
    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

    u8911056Author
    Visitor II
    May 17, 2011
    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.