參數(shù)資料
型號: 68HC05BD2
廠商: Motorola, Inc.
英文描述: 8-Bit Microcontroller Units (MCU).(8位微控制器)
中文描述: 8位微控制器單元(MCU)。(8位微控制器)
文件頁數(shù): 73/85頁
文件大?。?/td> 302K
代理商: 68HC05BD2
SECTION 12: A/D CONVERTER
MOTOROLA
Page 63
MC68HC05BD7 Rev. 2.0
GENERAL RELEASE SPECIFICATION
ADCDATA x 0.078125V
INPUT
(ADCDATA+1) x 0.078125V
12.4
Program Example
The following example shows how to convert analog input channel 0 by using binary search
method. This approach method will guarantee any conversion can be done within 6
iterations, 98us at 2MHz bus clock. For ADCIN1 conversion, change #$00 to #$01. ADCCR
is the ADC Channel Register.
CR2
ADCCR
ADCSR
ADCDATAEQU
REFH
REFL
EQU
EQU
EQU
$0B
$15
$14
$50
$51
$52
$1000
#$3C
CR2
#$00
ADCCR
#$00
REFL
#$3F
REFH
REFH
REFL
; Configuration Register
; ADC Channel Register
; ADC Control & Status Register
; RAM byte to store the conversion result
; RAM byte to store the high end of conversion
EQU
EQU
ORG
LDA
STA
LDA
STA
LDA
STA
LDA
STA
LDA
ADD
LSRA
STA
CMP
BEQ
BRSET
STA
BRA
STA
BRA
STA
; Configure PC2-PC5 as ADC inputs
; Select the input channel
; initial low end = #$00
; initial high end =#$3F
DALP
; A= (REFH + REFL)/2
; Store the comparison data to D/A
; Compare the stored value with REFL
; If equal, the A is the result digital value
7,ADCSR,SETHI ; Check the RESULT flag
REFL
; If lower, set A as the low end of conversion
DALP
REFH
; If higher, set A as the high end of conversion
DALP
ADCDATA
ADCSR
REFL
DONE
SETHI
DONE
* Input voltage calculation at V
DD
=5V:
相關(guān)PDF資料
PDF描述
68HC05BD7 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HC705BD7 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HC05J5A 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HC705J5A 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HRC05J5A 8-Bit Microcontroller Units (MCU).(8位微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
68HC05BD7 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:SPECIFICATION REV 2.0 (General Release)
68HC05C0FN 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
68HC05C0P 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
68HC05C4AFB 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
68HC05C4AFN 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller