ST72215G2 STMicroelectronics, ST72215G2 Datasheet - Page 88

no-image

ST72215G2

Manufacturer Part Number
ST72215G2
Description
8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY,ADC, 16-BIT TIMERS, SPI, I2C INTERFACES
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST72215G2

Emulation Voltage
5.5 V
ST72104Gx, ST72215Gx, ST72216Gx, ST72254Gx
8-BIT A/D CONVERTER (ADC) (Cont’d)
11.5.6 Register Description
CONTROL/STATUS REGISTER (CSR)
Read / Write
Reset Value: 0000 0000 (00h)
Bit 7 = COCO Conversion Complete
This bit is set by hardware. It is cleared by soft-
ware reading the result in the DR register or writing
to the CSR register.
0: Conversion is not complete
1: Conversion can be read from the DR register
Bit 6 = Reserved. must always be cleared.
Bit 5 = ADON A/D Converter On
This bit is set and cleared by software.
0: A/D converter is switched off
1: A/D converter is switched on
Bit 4 = Reserved. must always be cleared.
Bits 3:0 = CH[3:0] Channel Selection
These bits are set and cleared by software. They
select the analog input to convert.
*Note: The number of pins AND the channel selec-
tion varies according to the device. Refer to the de-
vice pinout.
88/141
COCO
7
Channel Pin*
0
AIN10
AIN11
AIN12
AIN13
AIN14
AIN15
AIN0
AIN1
AIN2
AIN3
AIN4
AIN5
AIN6
AIN7
AIN8
AIN9
ADON
0
CH3
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
CH3
CH2
CH2
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
CH1
CH1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
CH0
CH0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
DATA REGISTER (DR)
Read Only
Reset Value: 0000 0000 (00h)
Bits 7:0 = D[7:0] Analog Converted Value
This register contains the converted analog value
in the range 00h to FFh.
Note: Reading this register reset the COCO flag.
D7
7
D6
D5
D4
D3
D2
D1
D0
0

Related parts for ST72215G2