整个测量过程用伪代码表示如下。
int measure (void)
{
int i;
if ( SET==1 )
{
调整增益;
}
For (i=0;i<10;i++)
{
等待转换结果产生;
读取并保存转换结果;
}
累加转换结果;
查找最大值与最小值;
中位值平均滤波;
返回测量结果;
}
数据传输
数据发送按帧发送,
每帧数据包括同步码,AD转换结果和检验码,帧的同步可以采用特定的同步码或者间隙同步,这里采用第二种方法。在数据帧发送时,首先拉高数据发送线,拉高的时间为发送16个数据位的时间,帧头高电平的间隙用作数据帧的同步。
奇偶校验码作为一种检错码虽然简单,但是漏检率太高。在计算机网络和数据通信中用得最广泛的检错码,是一种漏检率低得多也便于实现的循环冗余码CRC。CRC生成多项式阶数越高,误判的概率越小。本文采用CCITT-16,其生成多项式为g(x)=x16+x15+x5+1。实现CRC的方法一般有两种:直接计算和查表。由于查表法至少需要1kb的空间用来存储表值,所以这里采用直接计算的方法。
数据传输时使用单线串行输出,用口线模拟串行发送,发送字节时在口线上依次发送如图4所示数据(数据为0时拉低口线电平,数据为1时拉高口线电平),位持续时间根据波特率计算,本应用中设定波特率为9600b/s。当没有数据发送时,输出口线上维持高电平。
数据发送最后通过光耦隔离,使得现场和数据的输出隔离,同时可以根据后级系统输入的需要简单地更改电路。
结束语 经过实际应用,单片MSP430F2013可实现小信号 传感器 输出电平测量,转换时间小于1ms。并可实现低功耗测量,整机功耗不超过6mW。该系统特别适合于实现了一个智能传感器,当输入信号满辐度大于40mV时可以保证16位A/D转换分辨率。由于采用半双工的差分传输,可以方便地实现传感器的组网。
GE Fanuc Relays IC692MDR541A & IC692MDR541C I/O Module
SCP 1100B Quick Dump Rinser BR-32-4T Control Panel
B & K Precision 3050 RF Generator BK
Noah Precision Chuck Control Module 8700
Tekronix K212 Instrument Laboratory Cart - cosmetic -
Global Specialties Proto-Board PB-503 Prototyping Bread
9 Each Hewlett Packard 520-290-002 KVM Dongle HP
2 Each, Edwards Stainless Steel Vacuum C10516670 NW40 S
Myron L 750 Resistivity Meter # 753-1 & 20 Meg-Ohm Cell
Telular T-1630M Cellular BR-32-4T Alarm Transmission System CAT
Keba HT-501 Coherent / Lambda Hand Held Teach Pendant
Dwyer Digihelic DH-015 Process Pressure Controller
Dwyer Digihelic Process Pressure Controller DH-015
Eaton Culter-Hammer Westinghouse 5.5kv Current Limiting
Parker Ball Bearing Positioner 4503
帕克Parker 4503 模块 BR-32-4T
Electron Tubes Ltd. 29mm RbCs Photomultiplier Tube 9900
Electron Tubes Ltd. 29mm RbCs Photomultiplier Tube 9900
Honeywell Rubicon Instruments 10,000 Ohm Resistor Stand
Honeywell Rubicon Instruments 5,000 Ohm Resistor Standa
Honeywell Rubicon Instruments 2,000 Ohm Resistor Standa
Electron Tubes Ltd. 29mm RbCs Photomultiplier Tube 9900
Rubicon Instruments Honeywell 2,000 Ohm Resistor Standa
Honeywell Rubicon Instruments 500 Ohm Resistor Standard
Honeywell Rubicon Instruments 1,000 BR-32-4T Ohm Resistor Standa
Honeywell Rubicon Instruments 200 Ohm Resistor Standard
Swagelok 1" 2200 PSI High Pressure Stainless Steel Ball
Pfeiffer Balzers TCF 103 Turbo Pump Vent Control TCF10
5 Ea. Motorola AirDefense 400 SN-400-P-1 Wifi Monitorin
Fluoroware Valve 202-28-kit Fused 70 PSIG
Watlow L100140C1 Silicone Heating BR-32-4T Pad - 10" x 13" 120V
Reliance Electro-Craft E586 Servo Motor w/ Gear Reducti
Watlow Silicone Heating Pad - L100140C1 120v 600w 10"
Jaeger 720254 模块
Hasselblad 45071 Flash Gun Grip Bracket for 500C/M & 20
Sealevel DIO-32B 3093b Board 16 Reed Relay Isolated Inp
Sealevel 3093b DIO-32B Board Isolated Input Digital Int
Contec PI-32L(PC)V & PO-32L(PC)V ISA
35 dB Blonder Tongue VHF/FM/UHF BR-32-4T Distribution Amplifier
Positron Teleline Isolator 751300 220-751300-401
Vacuum Glass Bulb LN2 Liquid Nitrogen Dewar 1lt - Labwa
Advanced Motion Control PS300W48 DC Power Supply 48VDC
Flow Technology Stainless Steel Turbine Flowmeter FT-48
Front Panel Replacement Board 11526-D01 for Eberline HF
Avid 00542830 EMC Clariion 10-Bay Drive Array w/ 5 HD
Newmar Isolated-Spike Input 42-90VDC Output 13.6VDC 12V
QMC 2284-ME8033-30 Brushless DC Servo Motor -
Horiba CM-110, P/N 890095031G模块.
Stainless Steel High Vacuum LF Large Flange NW100 With
Hermos TLG-I1-1000-S0-00EB Transponder Reader & ANT-2K1
Cisco 2620 Router, VIC2FXS BR-32-4T , WIC1BU,WIC1T
Top Layer App Switch 3500 AS3512
Sylvania Clark Control 77U33-76 3 Pole Contactor 50 HP
2 - Fast Heat Pipe heater Heat Band 240V 3000W 7"
2 - Fast Heat Pipe heater Heat Band 240V 3000W 7"
Sony BKE-904 VTR 9-pin Interface BVE-900
HP 98562-69533 Human Interface Card Board
Isco Coaxrtr Restrictor Temperature Controller
Peavey 3 Channel Power Mixer Amplifier MA 212
Barnstead/Thermolyne Red Rod MK1 Electrothermal Heating
6 each, 80/20 T-Slot SHCS BR-32-4T Horizontal Quick Clamp with
4 Each SMC Cylinder CDM2L32-160A 160mm Travel With JA3
Stainless Steel High Vac Reducer 3" ISO QuikFlange QF t
2 Each, Granville-Phillips Convectron Vacuum Measuremen
Band-It Steel Strap Tensioner 3/4" to 1" - - Made In Th
2 each Teledyne Hastings DV-5M Thermocouple Vacuum Gau
Stainless Steel Reducer ISO KF NW50 to NW40 High Vac
Xenon FH1245 模块
Xerox 097S03174 525 Sheet BR-32-4T Feeder for Phaser 8400 -
Cisco IDS3 + Serial card vor VXR Chassis
MDC Foreline Trap High Vacuum Molecular Sieve ???
Westinghouse LCB II Current Differential Relay Chassis
lot of 5 DNS Pulse Motor Drive Boards E0R05-1068C
Panasonic GP-MS112 Lipstick Camera System & Lens PARTS
Allen Bradley SLC-500 Programmable Controller 1747-L20A
MKS Baratron 227AA-00010A BR-32-4T Pressure Transducer
SMC Dual Rod Pneumatic Cylinder CXSL20-DCG9731G-30.7 Wi
Allen Bradley Mini PLC-2/15 Programmable Controller
Galil Motion Control DMC-1720 2 Axis Board ISA
Kontes Chromaflex 20 Chromatograph Fritted Disc Column,
SMC NCDY2S15H-1300-A73 BR-32-4T Pneumatic Actuator & Reed Switch
HP J1460A 8-Port KVM Console Switch PS2 VGA
Schweitzer Engineering SEL-RD Relay Display SEL-RD
BK Precision 3010 Function Generator - Tested