📄 adc.asm
字号:
;===========================================================================
;(To use this Module, copy this section to main system file)
; .ref ADC, ADC_INIT ; function call
; .ref ad_max ; Inputs
; .ref c0_out, c1_out,c2_out,c3_out ; Outputs
;===========================================================================
;Module definitions for external reference.
.def ADC, ADC_INIT ; function call
; .def ad_max ; Inputs
.def c0_out,c1_out, c2_out,c3_out
; Outputs
;===========================================================================
.include "x24x_app.h"
;===========================================================================
;ad_max .usect "adc",1
c0_out .usect "ADC",1
c1_out .usect "ADC",1
c2_out .usect "ADC",1
c3_out .usect "ADC",1
ADC_INIT:
POINT_PF2
SPLK #0100000000000000b,ADCL_CNTL1 ; Reset ADC module
NOP
SPLK #0011000000010000b,ADCL_CNTL1 ; Take ADC out of reset
;||||||||||||||||
;5432109876543210
; 15
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -