Introduction, Using j7 for i/o – Remote Processing RPC-210 User Manual
Page 54
ACCESSING I/O
BASIC
SECTION 13
Page 13-1
INTRODUCTION
A C C E S SI N G I/ O
SECT ION 13
I/O on the RPC-210 is defined here as devices that are
not memory. These include the keypad, real time clock,
counter , an d expansion p ort.
I/O is accessed using the LINEB com mand and function.
A = LINEB(ADDRESS)
Read
LINEB,ADDRESS,data
Write
U s e t he fo ll ow i ng ta b le a s a q ui ck g ui de fo r al l I / O
addresses.
Address
Type/func tion
0A000H
Expansion port select
0A100H
Real time clock
0A200H
Digital I/O (82C55) at J3
0A300H
COM 1 select, RS-485 control, keypad
column select, extra output
0A400H
Keypad r ow input, extra inpu ts
0A500H
Extra pulse output
0A600H
Counter access & control
0A700H
Counter latch reset
Most addresses are explained in relevant application
program s. O nes not explained elsewher e are done so
below.
Extra pulse output
The extra p ulse output at J7-9 may be used w hen a fast
pulse (0. 5 micr o-second w idth) is needed. Nor mally this
pulse is high. Execution is fastest using the LINEB
command.
LINEB 0A500H,0
USING J7 FOR I/O
J7 is a potpourri of signals. Signals available at J7 are
discussed under relevant sections of this manual. T he
table below describes the signals and which section
further information on them can be found.
J7 Pin
#
Description
Information
in section
1
Real time clock interrupt
7
2
Digital outpu t/SP I chip
select.
4 & 6
3
Interr upt 0
9
4
RTC squar e wave output
7
5
COM 1 interrupt
4
6
Digital output
6
7
Ground
8
+ 5V power
9
Pulse out
13
10
Digital output
6
11
Ground
12
RS-232 shut down
4
13
+ 5V power
14
SPI data input
4
15
Ground
16
SPI data output
4
17
Auto run
3
18
SPI clock output
4
19
Digital input
6
20
Control to wake up board
from power down
4