Remote Technologies RPC-320 manual Digital Port P6, High Current Port L8, Optically Isolated Input

Page 24

DIGITAL AND OPTO PORTS

ground through a 10K/100K resistor packs using jumper W7. 10K is on digital port A only.

Jumper W7 for pull up or down configuration is as follows:

W7[1-2]

Pull up

W7[2-3]

Pull down

Setting W7 for pull up makes interfacing to switches and "open collector" TTL devices easy . See "Inter facing to Switches and other devices" below.

Digital Port P6

Connector P6 has 8 digital I/O lines for general pur pose use. Additionally, 3 ground and a + 5V positions are provided. + 5V power and gr ound may be brought in or taken from this connector. L ines are numbered L 0-L7.

This por t may be u sed to interfa ce switche s, dr ive small LED' s, and provide general purpose TTL I/O to other logic devices. Voltage and current param eters are the same as J3 except there is no high current output . Port C from an 82C55 is used for this I/O.

Upon po wer u p or r eset lines L0 to L3 ar e inputs while L4 to L7 are outputs . Lines L4 and L5 are low while L6 and L7 a re high at p ower up. All lines are connected to a 10K pull up resistor (R21). Lines are r econfigured for all inputs or outputs using the CONFIG LINE 0 command, found in Appendix A.

High Current Port L8

L8 will switch 2 amperes to ground through a "zero ohm" FET switch. Maxim um off vo ltage is + 50 volts DC . "ON" resistance is about 0 . 5 ohm .

Use this port to switch LED back lighting for LCD displays on or off under softwar e control.

This line is always an output. Use the LINE 8 com mand to turn this line off or on.

LINE 8,ON

LINE 8,1 Both commands turn on L8.

The F ET sw itch is rated fo r mu ch higher curr ent. However, continuous current is much less without a heat sink attached. You may dr aw more than the rated 2 amps on an intermittent basis. How m uch and for how long depend s upon your application. A quick w ay to check for excessive current is to touch (VERY

CARE FUL LY!) Q2 (next to P2). It can be warm to hot

SECTION 6

to the touch. Consider the maxim um ambient

temper ature the b oard w ill operate a t. A t 70°C, warm to the touch at room temperature m ay be too much. Consider adding a heat sink.

The PW M com mand m ay be used with this port. Use the circuit in Figur e 6-2 when switching induc tive loads. Use the "GN D" ter minal next to L8 when switching loads.

Optically Isolated Input

ISOA a nd ISOB ar e inputs to an optica l isolator. This input is read as L8. It can also generate an interrupt provided W8[1-2] is jumpered and ONITR is set. Refer to Chapter 12 for input voltage and interrupt requirements. This line can be used to "wake up" the CPU fr om low power IDLE 2 mode.

The status is read using the LINE(8) function.

A = LINE(8)

A 1 is returned when there is no input and a 0 when voltage is sufficiently high enough to turn on the isolator (about 3.5 volts).

The opto isolator is not polarity sensitive. This input can be used in conjunction with or independently of the ONIT R statem ent.

Digital I/O Commands

The CON FIG LINE statement is used to configure lines at J3 and P 6 for inputs a nd outputs. J3 power up default is all inputs. P6 pow er up de fault is L0 to L 3 are inpu ts and L4 to L7 are outputs . CONFIG LINE 0 refers to P6 while CON FIG LIN E 100 to J3.

The L INE comm and has 3 vari ations: LIN E, LIN E B, and LINE #. Each is described below. See Appendix A for more inform ation.

LIN E function and statem ent is used with M PS-X X opto rack at J3. It accesses a module according to the position number printed on the MPS board . Lines are numbered from 100 to 123. The opto module number used in this command is computed by adding 100 to the board position number. LINE also accesses L0-L 8 on P2 and P6.

The LIN E B function and statement is used to acc ess

Page 6-2 RPC -320

Image 24
Contents REV TrademarksRevision Table of Contents Sect ION 11 Watchdog Timer Description External ResetInterrupt Characteristics Sect ION 13 Multi Mode Counter DescriptionSoftware Revision History Overview SectionDescription Manual OrganizationSymbols and Term inology Technical SupportOverview Section System layoutOperating Precautions IntroductionEquipment Using a PC Using a TerminalFirst Time Operation Uploading and Downloading ProgramsEditing programs and program ming hints Where to GO from Here TroubleshootingSaving Programs Saving a ProgramEprom W3 autorun jumperAutorunning Preventing AutorunLoading a Program Changing Eprom SizeCommands Alternate EpromsBload BsaveSerial Ports COM0 Serial PortCOM1 Serial Port Serial Ports Section RS-422/485 Operating InformationRS-422/485 Termination network Accessing Serial Buffers Two wire RS-485Multidrop Network Accessing COM0 and COM1 Disabling CONTROL-CSerial Port PIN OUT RXD CTS Battery Backup Checking the batteryRAM Memory Changing MemoryReserved Memory Storing Variables in RAMAssembly Language Interface Block Data TransferDigital and Opto Ports Digital I/O PortsDigital Por t J3 Digital I/O Commands Digital Port P6High Current Port L8 Optically Isolated InputHigh Current Output Interfacing to switches and other devices Interfacing Digital I/O to an opto-module rackDigital I/ O prog ramm ing exam ple Ls e Width Modulation PWM Digital and Opto Ports Section Conne ctor pin ou t J3Config Line CountLine Line BSetting Date and Time DateM E Section Connecting Displays Writing to the DisplayProgramming Example Display Connector PIN OUT Display TypesKeypad Port Program explanationKeypad Port PIN OUT J5 Connecting Analog Inputs Analog InputInitialization Overvoltage conditionsDifferential Mode Examples u sing CON FIG AINAcquiring Analog Data Temperature Measurement Noise NotesAnalog Input Section Data logging on a timer tick Measuring Higher VoltagesConverting Analog Measurements AmplifiersMeasuring 4-20 mA current loops Calibration Watchdog Timer External ResetInterrupt Characteristics Optically Isolated InterruptProgram Example Optically isolated and TTL interrup ts Programming GNDLoad GateCOU NT0 Power Management Further Power ReductionPower Management Section Program Examp leElectrical Specifications Technical InformationMechanical Specifications Memory and I/O Bank MAPJumper Descriptions Bank