$regfile = "m16def.dat" ' specify the used micro
$crystal = 8000000 ' used crystal frequency
'$baud = 19200 ' use baud rate
$hwstack = 32 ' default use 32 for the hardware stack
$swstack = 32 ' default use 10 for the SW stack
$framesize = 64 ' default use 40 for the frame space
Declare Function Get_adc(byval Ain_x As Byte) As Integer
Config Single = Scientific , Digits = 2 '设置 单精度=科学计数法,保留点后位数
' ----------------------------
Const ADS1110_DIZHI = &B10010001 '选择ED0标识的芯片ADS1110A0 地址:1001000 + 位0(读/写)
Const ADS1110_DIZHI_1 = &B10010011 '选择ED0标识的芯片
'Const Addressw = &B10010000 '没使用
Dim dianya_zhuanhuan As Single '计算电压转换变量
Dim dianya_zhuanhuan_1 as Single
Dim Pga As Integer '增益变量
Dim CELIANGh As Byte , CELIANGl As Byte '数据测量变量
Dim CELIANGh_1 As Byte , CELIANGl_1 As Byte '数据测量变量
Pga = 1 '
Cls