參數(shù)資料
型號: HT46R65
廠商: Holtek Semiconductor Inc.
英文描述: A/D with LCD Type 8-Bit MCU
中文描述: 在A / D液晶型8位微控制器
文件頁數(shù): 24/48頁
文件大小: 409K
代理商: HT46R65
HT46R65/HT46C65
Rev. 1.80
24
July 14, 2005
The following programming example illustrates how to setup and implement an A/D conversion. The method of polling
the EOCB bit in the ADCR register is used to detect when the conversion cycle is complete.
Example: using EOCB Polling Method to detect end of conversion
clr
mov
mov
mov
mov
EADI
a,00000001B
ACSR,a
a,00100000B
ADCR,a
:
:
; disable ADC interrupt
; setup the ACSR register to select f
SYS
/8 as the A/D clock
; setup ADCR register to configure Port PB0~PB3 as A/D inputs
; and select AN0 to be connected to the A/D converter
; As the Port B channel bits have changed the following START
; signal (0-1-0) must be issued within 10 instruction cycles
:
Start_conversion:
clr
set
clr
Polling_EOC:
sz
jmp
mov
mov
mov
mov
START
START
START
; reset A/D
; start A/D
EOCB
polling_EOC
a,ADRH
adrh_buffer,a
a,ADRL
adrl_buffer,a
:
:
start_conversion
; poll the ADCR register EOCB bit to detect end of A/D conversion
; continue polling
; read conversion result high byte value from the ADRH register
; save result to user defined memory
; read conversion result low byte value from the ADRL register
; save result to user defined memory
jmp
; start next A/D conversion
"
" -
)
8
)
"
" -
)
8
)
"
" -
)
8
)
' ' ' +
' ' ' +
' ' +
'
' +
"
+
,
'
"
,
"
'
A
7
) & ) " -
8
B )
&
)
+ )
&
B )
1
)
1
) %
1
" -
) 1
)
) @
) &
0
- J ) &
0
- 6 )
) &
0
-
"
I
"
"
I 4 2
"
B )
) & ) " -
8
) " -
8
" -
)
1
)
) )
"
)
' ' +
' ' ' +
) & ) " -
8
) " -
8
' ' ' +
D )
+ )
)
)
) -
D ) " -
)
8
)
)
A
) & &
) ) ) )
)
)
A
)
'
+
' '
+
) & ) " -
8
) " -
8
K )
) & ) " -
8
) & ) " -
8
)
)
) #
1 )
J )
=
)
)
) #
1
) 1 1 A
" -
)
1
)
) )
"
)
" -
)
1
)
) )
"
)
A/D Conversion Timing
相關(guān)PDF資料
PDF描述
HT46R65-52 A/D with LCD Type 8-Bit MCU
HT46R65-56 A/D with LCD Type 8-Bit MCU
HT47C20L 8-BIT MICROCONTROLLER
HT47C20 8-BIT MICROCONTROLLER
HT47R20 8 位R-F 型OTP 單片機
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HT46R65_11 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:A/D with LCD Type 8-Bit MCU
HT46R65-100 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:A/D with LCD Type 8-Bit MCU
HT46R652 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:A/D with LCD Type 8-Bit OTP MCU
HT46R652_11 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:A/D with LCD Type 8-Bit OTP MCU
HT46R65-52 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:A/D with LCD Type 8-Bit MCU