欢迎访问ic37.com |
会员登录 免费注册
发布采购

HT46R47(18SOP) 参数 Datasheet PDF下载

HT46R47(18SOP)图片预览
型号: HT46R47(18SOP)
PDF下载: 下载PDF文件 查看货源
内容描述: [Microcontroller, 8-Bit, UVPROM, 8MHz, CMOS, PDSO18]
分类和应用: 可编程只读存储器微控制器光电二极管
文件页数/大小: 75 页 / 613 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT46R47(18SOP)的Datasheet PDF文件第23页浏览型号HT46R47(18SOP)的Datasheet PDF文件第24页浏览型号HT46R47(18SOP)的Datasheet PDF文件第25页浏览型号HT46R47(18SOP)的Datasheet PDF文件第26页浏览型号HT46R47(18SOP)的Datasheet PDF文件第28页浏览型号HT46R47(18SOP)的Datasheet PDF文件第29页浏览型号HT46R47(18SOP)的Datasheet PDF文件第30页浏览型号HT46R47(18SOP)的Datasheet PDF文件第31页  
HT46R46/C46/R47/C47/R48/R49  
Analog to Digital Converter  
The need to interface to real world analog signals is a  
common requirement for many electronic systems.  
However, to properly process these signals by a  
microcontroller, they must first be converted into digital  
signals by A/D converters. By integrating the A/D con-  
version electronic circuitry into the microcontroller, the  
need for external components is reduced significantly  
with the corresponding follow-on benefits of lower costs  
and reduced component space requirements.  
Converter Data Registers, note that only the high byte  
register ADRH utilises its full 8-bit contents. The low  
byte register utilises only 1 bit of its 8-bit contents as it  
contains only the lowest bit of the 9-bit converted value.  
In the following tables, D0~D8 are the A/D conversion  
data result bits.  
Bit Bit Bit Bit Bit Bit Bit Bit  
Register  
7
6
5
4
3
2
1
0
ADR  
D7 D6 D5 D4 D3 D2 D1 D0  
A/D Overview  
A/D Data Register - HT46R46  
Each of the devices contains a 4-channel analog to digi-  
tal converter which can directly interface to external an-  
alog signals, such as that from sensors or other control  
signals and convert these signals directly into either an  
8-bit or 9-bit digital value.  
Bit Bit Bit Bit Bit Bit Bit Bit  
Register  
7
6
5
4
3
2
1
0
ADRL  
ADRH  
D0  
¾
¾
¾
¾
¾
¾
¾
Input  
Conversion  
Bits  
D8 D7 D6 D5 D4 D3 D2 D1  
Device  
Input Pins  
Channels  
A/D Data Register - Other Devices  
HT46R46  
HT46R47  
HT46R48  
HT46R49  
4
4
4
4
8
9
9
9
PB0~PB3  
PB0~PB3  
PB0~PB3  
PB0~PB3  
A/D Converter Control Register - ADCR  
To control the function and operation of the A/D con-  
verter, a control register known as ADCR is provided.  
This 8-bit register defines functions such as the selec-  
tion of which analog channel is connected to the internal  
A/D converter, which pins are used as analog inputs and  
which are used as normal I/Os as well as controlling the  
start function and monitoring the A/D converter end of  
conversion status.  
The following diagram shows the overall internal struc-  
ture of the A/D converter, together with its associated  
registers.  
A/D Converter Data Registers - ADR, ADRL, ADRH  
One section of this register contains the bits  
ACS2~ACS0 which define the channel number. As each  
of the devices contains only one actual analog to digital  
converter circuit, each of the individual 4 analog inputs  
must be routed to the converter. It is the function of the  
ACS2~ACS0 bits in the ADCR register to determine  
which analog channel is actually connected to the inter-  
nal A/D converter. Note that the ACS2 bit must always  
be assigned a zero value.  
For the HT46R46 device, which has an 8-bit A/D con-  
verter, a single register, known as ADR, is used to store  
the 8-bit analog to digital conversion value. For the re-  
maining devices, which have a 9-bit A/D converter, two  
registers are required, a high byte register, known as  
ADRH, and a low byte register, known as ADRL. After  
the conversion process takes place, these registers can  
be directly read by the microcontroller to obtain the digit-  
ised conversion value. For devices which use two A/D  
C l o c k D i v i d e  
R
a
t
i
o
A
D
C
S
o
u
r
c
e
¸
A
C
S
R
R
e
g
i
s
t
e
r
N
S
Y
S
V
D
D
A
/
D
r
e
f
e
r
e
n
c
e
v
o
l
t
a
g
e
P
P
P
P
B
B
B
B
0
1
2
3
/
/
/
/
A
A
A
A
N
N
N
N
0
1
2
3
A
D
R
A
D
C
o
r
A
/
D
D
a
t
a
R
e
g
i
s
t
e
r
s
A
D
R
L
A
D
R
H
A
D
C
R
P
C
R
0
~
P
C
R
2
A
D
C
S
0
~
A
D
C
S
2
S
T
A
R
T
E
O
C
B
R
e
g
i
s
t
e
r
S t a r t B i t  
E
n
d
o
f
P
i
n
C
o
n
f
i
g
u
r
a
t
i
o
n
C
h
a
n
n
e
l
S
e
l
e
c
t
C
o
n
v
e
r
s
i
o
n
B
i
t
B
i
t
s
B
i
t
s
A/D Converter Structure  
Rev. 1.00  
27  
April 18, 2007  
 复制成功!