B&B Electronics RS-485 manual Sampling Rate, Input Range, Reference Inputs

Page 23

Chapter 4 - A/D

This chapter will deal with manipulating an A/D reading and cover some of the aspects that were not explained in the A/D Connections chapter.

Sampling Rate

The A/D converter has a conversion time of around 20 microseconds, however the sampling rate is limited by the serial communications. The maximum sampling rate for a single channel is around 120 samples per second (9600 baud). This rate drops to 25 samples per second when sampling all of the channels. When reading an A/D input, the 485SDA10 takes four readings and returns the average (0.5 and greater are rounded up) of these readings. This averaging filters out noise.

A/D Input Range

The A/D input range on the 485SDA10 is from 0 to +5V DC. If it is possible for your device to output a voltage that doesn’t fall in this range, steps must be taken to ensure that the voltage remains between 0 and +5V DC. Voltages outside this range will damage the unit.

Reference Inputs

The A/D reference inputs set the top and bottom of the data range. A/D Ref Input- sets the bottom of the data range.

A/D Ref Input+ sets the top of the data range. Since these inputs are directly related to the data range, it is important that a precision reference is used. The 485SDA10 has a 5V DC +/- 0.5% reference available. The voltage on A/D Ref Input+ must be at least 2.5V DC greater than A/D Ref Input-. The voltage difference between

A/D Ref Input+ and A/D Ref Input- is referred to as the Reference Range.

Reference Range = (A/D Ref Input+) - (A/D Ref Input-) Typically A/D Ref Input- is connected to Analog ground and A/D Ref Input+ is connected to +5V DC. Figure 2.1 in Chapter 2 shows the typical connections for a reference range of 0 to 5V DC.

485SDA103798 Manual

19

B&B Electronics -- 707 Dayton Rd. -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 434-7094

Image 23 Contents
Internet Electronics Mfg. Co. IncDesigned and Manufactured Ottawa, Illinois Table of Contents Tables Software485SDA103798 Manual Table of Contents Iii 485SDA10 Unit 485SDA10 FeaturesPacking List Software InstallationWindows 9x and Windows NT UninstallGetting Started WindowsA/D with Variable Resistor 485SDA10 Specifications Ref Input + Inputs #0-10Typical Connections Ref InputAnalog Ground Digital Outputs #0-2 Digital I/O Connections485SDA10 I/O Port Pinout Digital Inputs #0-2Typical Digital I/O Connections Digital GroundRS-485 Terminal Block Connections Serial Port ConnectionsTypical RS-485 2-wire Connection Power Supply Connections485SDA10 Commands CommandsEquivalent Values Reading A/D Channels CommandSyntax Read A/D Response AddrRA#Ch#MSBch#LSBch#-1MSB...ch0MSBch0LSB Read Digital I/O Response for Outputs Reading Digital I/O CommandAddrRD StatesSet Digital Output Data Byte Values Set Digital Output CommandSet Module Address Command AddrSOstatesRead Module Configuration Command Set Power-up States CommandSet Turn-around Delay Command Addressstatesdelay Reference Inputs Sampling RateInput Range Converting Data Data RangePage MSB$ = INPUT$1, #1 LSB$ = INPUT$1, #1 Read A/D CommandCommand$ = ! + CHR$addr + RA + CHR$channel Print #1, Command$Reply$ = INPUT$ 1, #1 Read Digital I/O CommandCommand$ = ! + CHR$addr + RD Digital I/O Mask Values Set Digital Output StatesAddr = Command$ = !0SO + CHR$statesCommand$ = ! + CHR$addr + SO + CHR$newaddr Set Module AddressAddr = 5 states = States = states and NOTmaskCommand$ = ! + CHR$addr + SC + CHR$delay Set Turn-around DelayRead Module Configuration Comp = not x and &HFF #addrRA00FF00FF01FE Table A-1 Extended Commands Appendix B Analog Input Impedance 1 2 LSB = R s + 1k Ω × 60pF × ln2048 Simplified Analog Input Analysis485SDA103798 Manual Appendix B Table C-1 Decimal to HEX to Ascii Table Appendix C Decimal to HEX to Ascii TableClass a Equipment
Related manuals
Manual 39 pages 36.61 Kb Manual 46 pages 1.37 Kb