поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

HT46C64 датащи(PDF) 23 Page - Holtek Semiconductor Inc

номер детали HT46C64
подробное описание детали  A/D with LCD Type 8-Bit MCU
PDF  47 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  HOLTEK [Holtek Semiconductor Inc]
домашняя страница  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT46C64 датащи(HTML) 23 Page - Holtek Semiconductor Inc

Back Button HT46C64 Datasheet HTML 19Page - Holtek Semiconductor Inc HT46C64 Datasheet HTML 20Page - Holtek Semiconductor Inc HT46C64 Datasheet HTML 21Page - Holtek Semiconductor Inc HT46C64 Datasheet HTML 22Page - Holtek Semiconductor Inc HT46C64 Datasheet HTML 23Page - Holtek Semiconductor Inc HT46C64 Datasheet HTML 24Page - Holtek Semiconductor Inc HT46C64 Datasheet HTML 25Page - Holtek Semiconductor Inc HT46C64 Datasheet HTML 26Page - Holtek Semiconductor Inc HT46C64 Datasheet HTML 27Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 47 page
background image
HT46R64/HT46C64
Rev. 1.40
23
September 21, 2004
When the A/D conversion is completed, the A/D interrupt request flag is set. The EOCB bit is set to
²1² when the START
bit is set from
²0² to ²1².
Register
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
ADRL
D1
D0
¾¾¾¾¾¾
ADRH
D9
D8
D7
D6
D5
D4
D3
D2
Note: D0~D9 is A/D conversion result data bit LSB~MSB.
The following two programming examples illustrate how to setup and implement an A/D conversion. In the first exam-
ple, the method of polling the EOCB bit in the ADCR register is used to detect when the conversion cycle is complete,
whereas in the second example, the A/D interrupt is used to determine when the conversion is complete.
Example: using EOCB Polling Method to detect end of conversion
clr INTC0.7
; disable A/D interrupt in interrupt control register
mov a,00100000B
mov ADCR,a
; setup ADCR register to configure Port PB0~PB3 as A/D inputs and select
; AN0 to be connected to the A/D converter
mov a,00000001B
mov ACSR,a
; setup the ACSR register to select fSYS/8 as the A/D clock
Start_conversion:
clr ADCR.7
set ADCR.7
; reset A/D
clr ADCR.7
; start A/D
Polling_EOC:
sz ADCR.6
; poll the ADCR register EOCB bit to detect end of A/D conversion
jmp polling_EOC
; continue polling
mov a,ADRH
; read conversion result from the high byte ADRH register
mov adrh_buffer,a
; save result to user defined register
mov a,ADRL
; read conversion result from the low byte ADRL register
mov adrl_buffer,a
; save result to user defined register
:
:
jmp start_conversion
; start next A/D conversion
Example: using Interrupt method to detect end of conversion
set INTC0.0
; interrupt global enable
set INTC0.7
; enable A/D interrupt in interrupt control register
mov a,00100000B
mov ADCR,a
; setup ADCR register to configure Port PB0~PB3 as A/D inputs and select
; AN0 to be connected to the A/D converter
mov a,00000001B
mov ACSR,a
; setup the ACSR register to select fSYS/8 as the A/D clock
start_conversion:
clr ADCR.7
set ADCR.7
; reset A/D
clr ADCR.7
; start A/D
:
:
; interrupt service routine
EOC_service routine:
mov a_buffer,a
; save ACC to user defined register
mov a,ADRH
; read conversion result from the high byte ADRH register
mov adrh_buffer,a
; save result to user defined register
mov a,ADRL
; read conversion result from the low byte ADRL register
mov adrl_buffer,a
; save result to user defined register
clr ADCR.7
set ADCR.7
; reset A/D
clr ADCR.7
; start A/D
mov a,a_buffer
; restore ACC from temporary storage
reti



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com