$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 '設(shè)置 單精度=科學(xué)計數(shù)法,保留點后位數(shù)
' ----------------------------
Const ADS1110_DIZHI = &B10010001 '選擇ED0標識的芯片ADS1110A0 地址:1001000 + 位0(讀/寫)
Const ADS1110_DIZHI_1 = &B10010011 '選擇ED0標識的芯片
'Const Addressw = &B10010000 '沒使用
Dim dianya_zhuanhuan As Single '計算電壓轉(zhuǎn)換變量
Dim dianya_zhuanhuan_1 as Single
Dim Pga As Integer '增益變量
Dim CELIANGh As Byte , CELIANGl As Byte '數(shù)據(jù)測量變量
Dim CELIANGh_1 As Byte , CELIANGl_1 As Byte '數(shù)據(jù)測量變量
Pga = 1 '
Cls