zjtzlqr 发表于 2013-7-11 14:01

DSP28335中ADC_cal.asm这个汇编代码是干什么用的

;; TI File $Revision: /main/1 $
;; Checkin $Date: July 30, 2007   10:29:23 $
;;###########################################################################
;;
;; FILE:    ADC_cal.asm
;;
;; TITLE:   2833x Boot Rom ADC Cal routine.
;;
;; Functions:
;;
;;   _ADC_cal - Copies device specific calibration data into ADCREFSEL and ADCOFFTRIM registers
;; Notes:
;;
;;###########################################################################
;; $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
;; $Release Date: June 8, 2012 $
;;###########################################################################

    .def _ADC_cal
        .asg "0x711C",   ADCREFSEL_LOC

;-----------------------------------------------
; _ADC_cal
;-----------------------------------------------
;-----------------------------------------------
; This is the ADC cal routine.This routine is programmed into
; reserved memory by the factory. 0xAAAA and 0xBBBB are place-
; holders for calibration data.
;The actual values programmed by TI are device specific.
;
; This function assumes that the clocks have been
; enabled to the ADC module.
;-----------------------------------------------

    .sect ".adc_cal"

_ADC_cal
    MOVWDP,   #ADCREFSEL_LOC >> 6
    MOV   @28,#0xAAAA            ; actual value may not be 0xAAAA
    MOV   @29,#0xBBBB             ; actual value may not be 0xBBBB
    LRETR
;eof ----------

zjtzlqr 发表于 2013-7-11 14:01

一般的文件都是c文件 这个adc的为什么是汇编的啊,

SLEET1986 发表于 2013-7-11 14:09

本帖最后由 SLEET1986 于 2013-7-11 14:14 编辑

zjtzlqr 发表于 2013-7-11 14:01 static/image/common/back.gif
一般的文件都是c文件 这个adc的为什么是汇编的啊,
ADC_cal - Copies device specific calibration data into ADCREFSEL and ADCOFFTRIM registers
这个是AD校正的吧,没有建成C环境之前不能用C的

scottly 发表于 2014-9-16 21:47

页: [1]
查看完整版本: DSP28335中ADC_cal.asm这个汇编代码是干什么用的