B&B Electronics 232SDD16 manual Interfacing, Digital Inputs

Page 11

Chapter 4 - I/O Interfacing

This chapter will explain "HIGH" and "LOW" states and show some general examples of how to interface to the I/O lines. Caution must be taken not to exceed 232SDD16 specifications listed in Chapter 1 when interfacing to external devices. Failure to stay within these specifications could result in damage to the unit and will void warranty.

Digital Inputs

As stated earlier, digital input lines are CMOS/TTL compatible and can only handle voltages from 0Vdc to +5Vdc.

Digital inputs are used to sense a HIGH or a LOW state. This can be accomplished via switch closures, contact closures, or a solid state digital signal. When an I/O line, defined as an input, senses a voltage level above +2.0Vdc it will be considered "HIGH" and its input state will be read as a "1". Conversely, when an input senses a voltage level below +1.0Vdc it will be considered "LOW" and its input state will be read as a "0".

Inputs can also be used to sense AC voltages by using mechanical or solid state relays. Solid state relays are available from many manufacturers.

Figures 4.1 - 4.4 show examples of some typical input interfaces.

Figure 4.2 - Solid State Input

Figure 4.3 - Isolated Mechanical Input

Figure 4.1 - Switch Input

232SDD16-1005 Manual

17

18

232SDD16-1005 Manual

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 433-5104

PH (815) 433-5100 -- FAX (815) 433-5104

Image 11
Contents Internet Electronics Mfg. Co. IncDesigned and Manufactured Ottawa, Illinois Table of Contents 232SDD16-1005 Manual 232SDD16 FeaturesIntroduction Size 232SDD16 SpecificationsCommunications Serial Port Connections ConnectionsDigital I/O Connections 232SDD16 I/O Port Pinout232SDD16 To DCE Connections RS-232 Connector PinoutPower Supply Connections 232SDD16 To DTE ConnectionsSyntax Commands232SDD16 Commands Equivalent ValuesBit Assignments for I/O Lines Read I/O Lines CommandSet Output Lines Command Read Configuration Command Define I/O Lines CommandSet Power-up States Command Bin. Example !0RC01010101010000010101000001000000 Digital Inputs InterfacingIsolated Solid State Input Digital I/O Mask Values SoftwareProgramming Techniques MSstates = MSstates or mask LSstates = LSstates or mask Set Output States CommandMSdefs = MSdefs and mask LSdefs = LSdefs and mask MSpups = MSpups and mask LSpups = LSpups and maskMSdefs = MSdefs and NOTmask LSdefs = LSdefs and NOTmask Define I/O Lines CommandSet Power-up States Command MSdefs = MSdefs or mask LSdefs = LSdefs or maskRunning Demonstration Program Demonstration ProgramAppendix a Appendix B Decimal to Hexadecimal Conversion 232SDD16-1005 Manual Appendix C Figure C.1 DTB25 Outline DrawingTable C.2 DBM16 I/O Connections Table C.1 DTB25 ConnectionsDBM16 Interfacing Figure C.2 DBM16 Outline DrawingFigure C.6 Isolated Solid State Input Outputs DBM16 Specifications LinesInputs 232SDD16-1005 Manual Appendix C Comp = not x and &HFF #0RDMsb~ I/O msbI/O lsb ~ I/O lsb 00FF01FE232SDD16-1005 Manual Appendix D Table D-1 Extended Commands