SAF-C164SM Infineon Technologies, SAF-C164SM Datasheet - Page 325

no-image

SAF-C164SM

Manufacturer Part Number
SAF-C164SM
Description
16-Bit CMOS Microcontroller
Manufacturer
Infineon Technologies
Datasheet
18.1
The analog input channels AN7 … AN0 are alternate functions of Port 5 which is an
input-only port. The Port 5 lines may be used as either analog or digital inputs. For pins
to be used as analog inputs, it is recommended to disable the digital input stage via
register P5DIDIS. This avoids undesired cross currents and switching noise when the
(analog) input signal level is between
The functions of the A/D converter are controlled by the bit-addressable A/D Converter
Control Register ADCON. Its bitfields specify the analog channel to be acted upon, the
conversion mode, and also reflect the status of the converter.
ADCON
ADC Control Register
Bit
ADCH
ADM
ADST
ADBSY
ADWR
ADCIN
ADCRQ
User’s Manual
15
ADCTC
rw
14
Mode Selection and Operation
13
ADSTC
Function
ADC Analog Channel Input Selection
Selects the (first) ADC channel to be converted.
ADC Mode Selection
00:
01:
10:
11:
ADC Start Bit
0:
1:
ADC Busy Flag
0:
1:
ADC Wait for Read Control
ADC Channel Injection Enable
ADC Channel Injection Request Flag
rw
12
Fixed Channel Single Conversion
Fixed Channel Continuous Conversion
Auto Scan Single Conversion
Auto Scan Continuous Conversion
Stop a running conversion
Start conversion(s)
ADC is idle
A conversion is active
CRQ
rwh
AD
11
CIN
AD
10
rw
WR
AD
SFR (FFA0
rw
9
V
BSY
IL
rwh
AD
8
and
18-3
rwh
AD
ST
7
V
H
/D0
IH
.
H
6
-
-
)
5
ADM
rw
Analog/Digital Converter
4
Reset Value: 0000
C164CM/C164SM
3
2
ADCH
Derivatives
V1.0, 2002-02
rw
1
0
H

Related parts for SAF-C164SM