Remote Technologies RPC-320 Connecting Displays, Writing to the Display, Programming Example

Page 32

DISPLAY PORT

INTRODUCTION

RPBASIC-52 and the RP C-320 interface to a variety of displays:

VF (vacuum florescent) character

LCD (liquid crystal) character

LCD gr aphics

Character display sizes range from four lines by 20 characters to four lines by 40 characters. The graphics display supports 160 x 128 pixels. Remote Processing supplies these displays with appropr iate cables. A contrast a djustment fo r LC D char acter disp lays is built into the card.

If a display is not used, this port may be used for general purpose digital I/O. P ort A and part of port B from an 82C55 are available. See CONNE CTOR D ISPLAY PIN OUT below for ava ilable lines.

The cable length to a display depends upon the amount of current it requires. A significant amount of voltage drop occurs with a long cable. V acuum florescent and LCD graphics cables should b e less than 2 fee t. A charac ter LC D display c able should be less than 5 feet.

Figure 8-1 Display interface

CONNECTING DISPLAYS

The display port is designed to supply all the lines necessar y for V F and L CD displays. A custom cable connects the RPC-320 to the display.

Displays purchased from Remote Processing include a cable. You simply connect the 20 pin connector to the RPC-320 L CD display port and the other end into the display.

SECTION 8

Additional power wiring is usually required for LCD graphic and VF charac ter displays. This infor mation is included with the display. Information content is display dependent. Below is general information on both.

Graphic displays require additional voltages not generated on the RPC-320. These must be supplied externally. An external contrast adjustment may be necessary. Y ou may be able to connect these through screw term inal block P5.

VF c haracte r displays r equire + 5 volts and gr ound to connector P5. This may in the form of external wires from the main power connector on the board or power supply.

Additional information for commands m entioned in the following text are found in the RPBASIC - 52 Software Supplem ent in this man ual.

WRITING TO THE DISPLAY

The display type must first be set using the CON FIG DISPLAY command. T he DISPLAY com mand is used to print information.

PROGRAMMING EXAMPLE

The example below is for a four line by 20 character LCD display. Even though DISPL AY statements do not end with a comma (, ), a < cr> < lf> sequence is not sent. Use C R to force a return to the beginning of the line. A CR does not scroll characters on a display. You must position the cursor to the next line.

10 CONFIG DISPLAY 1

20 STRING 200,30

30 $(0) = "Hello world"

40 DISPLAY (1,2),$(0)

Page 8-1 RPC-320

Image 32
Contents Revision REVTrademarks 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 layoutEquipment Operating PrecautionsIntroduction 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 BsaveCOM1 Serial Port Serial PortsCOM0 Serial Port RS-422/485 Termination network Serial Ports SectionRS-422/485 Operating Information Multidrop Network Accessing Serial BuffersTwo wire RS-485 Serial Port PIN OUT Accessing COM0 and COM1Disabling CONTROL-C RXD CTS Battery Backup Checking the batteryRAM Memory Changing MemoryReserved Memory Storing Variables in RAMAssembly Language Interface Block Data TransferDigital Por t J3 Digital and Opto PortsDigital I/O Ports Digital I/O Commands Digital Port P6High Current Port L8 Optically Isolated InputHigh Current Output Digital I/ O prog ramm ing exam ple Interfacing to switches and other devicesInterfacing Digital I/O to an opto-module rack Ls e Width Modulation PWM Digital and Opto Ports Section Conne ctor pin ou t J3Config Line CountLine Line BM E Setting Date and TimeDate Section Programming Example Connecting DisplaysWriting to the Display Display Connector PIN OUT Display TypesKeypad Port Program explanationKeypad Port PIN OUT J5 Connecting Analog Inputs Analog InputInitialization Overvoltage conditionsAcquiring Analog Data Differential ModeExamples u sing CON FIG AIN Temperature Measurement Noise NotesAnalog Input Section Data logging on a timer tick Measuring Higher VoltagesMeasuring 4-20 mA current loops Converting Analog MeasurementsAmplifiers Calibration Watchdog Timer External ResetProgram Example Interrupt CharacteristicsOptically Isolated Interrupt 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