Remote Technologies RPC-320 manual Keypad Port PIN OUT J5

Page 35

KEYPAD PORT

The second example uses ON KEYPAD to generate an interrupt every time a key is pressed.

10 ON KEYPAD1000

.

.

.

500 GOTO 500

1000 PRINT KEYPAD(0)

1100 RETURN

Line 10 sets up the tasker for keypad interrupts to start at line 1000. Line 500 loops on itself for demonstration purposes.

Line 1000 prints out the key pad position pressed.

Elem ents of the pr evious pr ogram can be com bined with this one to produce keypad strings.

SECTION 9

KEYPAD PORT PIN OUT - J5

The keypad port uses ports B and C from an 82C55. Lowe r por t C is configu red as an input. Upper port C and port B bits 0 and 1 are ou tputs.

The table b elow lists J5' s pin out, 82C55 p ort and bit, and its intended function.

Pin

82C55

Function

 

Port/ bit

 

1

C/0

Row 1

2

C/6

Column 3

3

C/5

Column 2

4

C/1

Row 2

5

C/2

Row 3

6

C/4

Column 1

7

C/7

Column 4

8

C/3

Row 4

9

B/0

Column 5

10

B/1

Column 6

Page 9-2 RPC -320

Image 35
Contents Revision REVTrademarks Table of Contents Sect ION 13 Multi Mode Counter Description Sect ION 11 Watchdog Timer DescriptionExternal Reset Interrupt CharacteristicsSoftware Revision History Manual Organization OverviewSection DescriptionTechnical Support Symbols and Term inologySystem layout Overview SectionEquipment Operating PrecautionsIntroduction Uploading and Downloading Programs Using a PCUsing a Terminal First Time OperationEditing programs and program ming hints Troubleshooting Where to GO from HereW3 autorun jumper Saving ProgramsSaving a Program EpromChanging Eprom Size AutorunningPreventing Autorun Loading a ProgramBsave CommandsAlternate Eproms BloadCOM1 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 Changing Memory Battery BackupChecking the battery RAM MemoryStoring Variables in RAM Reserved MemoryBlock Data Transfer Assembly Language InterfaceDigital Por t J3 Digital and Opto PortsDigital I/O Ports Optically Isolated Input Digital I/O CommandsDigital Port P6 High Current Port L8High 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 Conne ctor pin ou t J3 Digital and Opto Ports SectionLine B Config LineCount LineM E Setting Date and TimeDate Section Programming Example Connecting DisplaysWriting to the Display Display Types Display Connector PIN OUTProgram explanation Keypad PortKeypad Port PIN OUT J5 Overvoltage conditions Connecting Analog InputsAnalog Input InitializationAcquiring Analog Data Differential ModeExamples u sing CON FIG AIN Noise Notes Temperature MeasurementAnalog Input Section Measuring Higher Voltages Data logging on a timer tickMeasuring 4-20 mA current loops Converting Analog MeasurementsAmplifiers Calibration External Reset Watchdog TimerProgram Example Interrupt CharacteristicsOptically Isolated Interrupt Optically isolated and TTL interrup ts Gate ProgrammingGND LoadCOU NT0 Further Power Reduction Power ManagementProgram Examp le Power Management SectionTechnical Information Electrical SpecificationsBank Mechanical SpecificationsMemory and I/O Bank MAP Jumper Descriptions