參數(shù)資料
型號(hào): GMS81C5024-XXXD
英文描述: MICROCONTROLLER|8-BIT|CMOS|SOP|28PIN|PLASTIC
中文描述: 單片機(jī)| 8位|的CMOS |專科| 28腳|塑料
文件頁(yè)數(shù): 56/93頁(yè)
文件大?。?/td> 853K
代理商: GMS81C5024-XXXD
GMS81C1404/GMS81C1408
54
June. 2001 Ver 1.2
16. ANALOG TO DIGITAL CONVERTER
The analog-to-digital converter (A/D) allows conversion
of an analog input signal to a corresponding 8-bit digital
value. The A/D module has eight analog inputs, which are
multiplexed into one sample and hold. The output of the
sample and hold is the input into the converter, which gen-
erates the result via successive approximation.
The analog reference voltage is selected to V
DD
or AVref
by setting of the bit AVREFS in RBFUNC register. If ex-
ternal analog reference AVref is selected, the bit ANSEL0
should not be set to “1”, because this pin is used to an an-
alog reference of A/D converter.
The A/D module has two registers which are the control
register ADCM and A/D result register ADCR. The
ADCM register, shown in Figure 16-2 , controls the oper-
ation of the A/D converter module. The port pins can be
configure as analog inputs or digital I/O.
To use analog inputs, each port is assigned analog input
port by setting the bit ANSEL[7:0] in RAFUNC register.
And selected the corresponding channel to be converted by
setting ADS[2:0].
The processing of conversion is start when the start bit
ADST is set to “1”. After one cycle, it is cleared by hard-
ware. The register ADCR contains the results of the A/D
conversion. When the conversion is completed, the result
is loaded into the ADCR, the A/D conversion status bit
ADSF is set to “1”, and the A/D interrupt flag ADIF is set.
The block diagram of the A/D module is shown in Figure
16-1 . The A/D status bit ADSF is set automatically when
A/D conversion is completed, cleared when A/D conver-
sion is in process. The conversion time takes maximum 10
uS (at fxin=8 MHz).
Figure 16-1 A/D Converter Block Diagram
RB0/AN0/AVref
ANSEL0 (RAFUNC.0)
RA1/AN1
ANSEL1
RA2/AN2
ANSEL2
RA3/AN3
ANSEL3
RA4/AN4
ANSEL4
RA5/AN5
ANSEL5
RA6/AN6
ANSEL6
RA7/AN7
ANSEL7
000
001
010
011
100
101
110
111
V
DD
Pin
1
0
AVREFS (RBFUNC.0)
ADEN
S/H
Successive
Approximation
Circuit
ADIF
Resistor
Ladder
Circuit
ADS[2:0]
ADCR(8-bit)
Sample & Hold
A/D Interrupt
ADDRESS : EBH
RESET VALUE : Undefined
A/D Result Register
相關(guān)PDF資料
PDF描述
GMS81C5024-XXXDT MICROCONTROLLER|8-BIT|CMOS|SOP|28PIN|PLASTIC
GMS81C5024-XXXPL MICROCONTROLLER|8-BIT|CMOS|LDCC|44PIN|PLASTIC
GMS81C5024-XXXPLT MICROCONTROLLER|8-BIT|CMOS|LDCC|44PIN|PLASTIC
GMS81C5024-XXXQ MICROCONTROLLER|8-BIT|CMOS|QFP|44PIN|PLASTIC
GMS81C5024-XXXQT MICROCONTROLLER|8-BIT|CMOS|QFP|44PIN|PLASTIC
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
GMS81C5024-XXXDT 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|CMOS|SOP|28PIN|PLASTIC
GMS81C5024-XXXPL 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|CMOS|LDCC|44PIN|PLASTIC
GMS81C5024-XXXPLT 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|CMOS|LDCC|44PIN|PLASTIC
GMS81C5024-XXXQ 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|CMOS|QFP|44PIN|PLASTIC
GMS81C5024-XXXQT 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|CMOS|QFP|44PIN|PLASTIC