參數(shù)資料
型號: HT82J30A
廠商: Holtek Semiconductor Inc.
英文描述: 16 Channel A/D MCU with SPI Interface
中文描述: 16通道A / D轉(zhuǎn)換,SPI接口單片機
文件頁數(shù): 20/47頁
文件大?。?/td> 312K
代理商: HT82J30A
HT82J30R/HT82J30A
Rev. 1.00
20
December 20, 2006
Example: using EOC Polling Method to detect end of conversion.
clr
mov a, 0010B
mov
INTC
; disable A/D interrupt in interrupt control register
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 f
SYS
/8 as the A/D clock
Start_conversion:
clr .7
set ADCR.7
clr ADCR.7
Polling_EOC:
sz ADCR.6
jmp
mov a, ADR
mov
; reset A/D
; start A/D
; poll the ADCR register EOC bit to detect end of A/D conversion
; continue polling
; read conversion result from the high byte ADRH register
; save result to user defined register
polling_EOC
adr_buffer,a
:
:
start_conversion
jmp
; start next A/D conversion
Example: using Interrupt method to detect end of conversion.
set
mov a, 0010B
mov
INTC
; enable A/D interrupt in interrupt control register
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
:
Start_conversion:
clr
set
clr
; setup the ACSR register to select f
SYS
/8 as the A/D clock
ADCR.7
ADCR.7
ADCR.7
:
:
; reset A/D
; start A/D
; interrupt service routine
EOC_service routine:
mov a_buffer,a
mov a,ADR
mov adr_buffer,a
clr .7
set ADCR.7
clr ADCR.7
mov a,a_buffer
reti
; save ACC to user defined register
; read conversion result from the high byte ADRH register
; save result to user defined register
; reset A/D
; start A/D
; restore ACC from temporary storage
相關(guān)PDF資料
PDF描述
HT82J30R 16 Channel A/D MCU with SPI Interface
HT82J927A USB Gamepad
HT82J97E USB Joystick Encoder 8-Bit OTP MCU
HT82J97E-20SOP-A USB Joystick Encoder 8-Bit OTP MCU
HT82J97E-28SOP-A USB Joystick Encoder 8-Bit OTP MCU
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HT82J30R 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:16 Channel A/D MCU with SPI Interface
HT82J927A 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Gamepad
HT82J97A_08 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Joystick Encoder 8-Bit MCU
HT82J97E 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Joystick Encoder 8-Bit OTP MCU
HT82J97E_08 制造商:HOLTEK 制造商全稱:Holtek Semiconductor Inc 功能描述:USB Joystick Encoder 8-Bit MCU