EasyManuals Logo

ST STM8S Reference Manual

ST STM8S
449 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #427 background imageLoading...
Page #427 background image
RM0016 Analog/digital converter (ADC)
Doc ID 14587 Rev 8 427/449
24.11.3 ADC control/status register (ADC_CSR)
Address offset: 0x20
Reset value: 0x00
76543210
EOC AWD EOCIE AWDIE CH[3:0]
rw rc_w0 rw rw rw rw rw rw
Bit 7 EOC: End of conversion
This bit is set by hardware at the end of conversion. It is cleared by software by
writing ‘0’.
0: Conversion is not complete
1: Conversion complete
Bit 6 AWD: Analog Watchdog flag
0: No analog watchdog event
1: An analog watchdog event occurred. In buffered continuous or scan mode
you can read the ADC_AWSR register to determine the data buffer register
related to the event. An interrupt request is generated if AWDIE=1.
Note: This bit is not available for ADC2
Bit 5 EOCIE: Interrupt enable for EOC
This bit is set and cleared by software. It enables the interrupt for End of
Conversion.
0: EOC interrupt disabled
1: EOC interrupt enabled. An interrupt is generated when the EOC bit is set.
Bit 4 AWDIE: Analog watchdog interrupt enable
0: AWD interrupt disabled.
1: AWD interrupt enabled
Note: This bit is not available for ADC2
Bits 3:0 CH[3:0]: Channel selection bits
These bits are set and cleared by software. They select the input channel to be
converted.
0000: Channel AIN0
0001: Channel AIN1
....
1111: Channel AIN15

Table of Contents

Other manuals for ST STM8S

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM8S and is the answer not in the manual?

ST STM8S Specifications

General IconGeneral
BrandST
ModelSTM8S
CategoryMicrocontrollers
LanguageEnglish

Related product manuals