參數(shù)資料
型號(hào): 68HC705BD7
廠商: Motorola, Inc.
英文描述: 8-Bit Microcontroller Units (MCU).(8位微控制器)
中文描述: 8位微控制器單元(MCU)。(8位微控制器)
文件頁(yè)數(shù): 73/85頁(yè)
文件大?。?/td> 302K
代理商: 68HC705BD7
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描述
68HC05J5A 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HC705J5A 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HRC05J5A 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HRC705J5A 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HC05K0 8-Bit Microcontroller Units (MCU).(8位微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
68HC705C5 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:SPECIFICATION(General Release)
68HC705C8 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:PROGRAMMING REFRERENCE GUIDE
68HC705C8ACP 制造商: 功能描述: 制造商:Motorola Inc 功能描述: 制造商:undefined 功能描述:
68HC705CJ4FB 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
68HC705CJ4P 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller