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?
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
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.