Campbell Scientific CR10 CR10 Measurement and Control - Page 77

Interrupts, Data Transfer

Page 77 highlights

SECTION 6. g.PIN SERIAL INPUT/OUTPUT an SD is enabled by an address synchronously clocked from the CR10 (Section 6.6). Up to 16 SDs may be addressed by the CH10. Unlike an enabled peripheral, the CR10 establishes communication with an addressed peripheral before data are transferred. During data transfer an addressed peripheral uses pin 7 as a handshake line with the CR10. RING RA|SE CLKIHS Synchronously addressed peripherals include the CR1OKD Keyboard Display, SM716 and SMl92 Storage Modules, SDC99 Synchronous Device Interface (SDC99), and RF95 RF Modem when configured as a synchronous device. The SDC99 intedace is used to address peripherals which are normally enabled (Figure 6.2-1). 6.3 RING INTERRUPTS NO , RING LINE STILL YES HIGH ? ADDRESS SDs TO DETERMINE RING DEVICE RAISE ME TO ENABLE MODEM/TERMTNAL There are three peripherals that can raise the CR10's ring line; modems, the CR1OKD Keyboard Display, and the RF Modem FIGURE 6.3-1. Servicing of Ring Interrupts configured for synchronous device for communication (RF-SDC). The RF-SDC is 6.4 INTERRUPTS DURING DATA TRANSFER used when the CR10 is installed at a telephone to RF base station. lnstruction 96 is used for on-line data transfer to peripherals (Section 4.1). Each peripheral When the Ring line is raised, the processor is interrupted, and the CR10 determines which peripheral raised the Ring line through a process of elimination (Figure 6.3-1). The CR10 raises the CLI(HS line forcing all SDs to drop the ring line. lf the ring line is still high the peripheral is a modem, and the ME line is raised. lf the ring line is low the CR10 addresses the Keyboard Display connected to the CR10 requires an Instruction 96 with the appropriate parameter. lf the CR10 is already communicating on the 9-pin connector when lnstruction 96 is executed, the instruction puts the output request in a "queue" and program execution continues. As the 9-pin connector becomes available, each device in the queue will get its turn untilthe queue is empty. and RF-SDC to determine which device to service. (Section 6.6) lnstruction 96 is aborted if a modem raises the Ring line. Data transfer to an addressed peripheral is After the CR10 has determined which peripheral raised the Ring line, the hierarchy is as follows: A modem which raises the Ring line will interrupt and gain control of the CR10. The one exception is that a modem cannot interrupt an active RFSDC. A ring from a modem aborts data transfer to pin-enabled and addressed peripherals. The CR1OKD raises the ring line whenever a key is pressed. The CR1OKD will not be serviced when the modem or RF-SDC is being serviced. aborted if the ring line is raised by a CR1OKD or RF Modem configured as a synchronous device. Transfer of data is not resumed untilthe next time Instruction 96 is executed and the datalogger has exited telecommunications. The *8 Mode is used to manually initiate data transfer from Final Storage to a peripheral. An abort flag is set if any key on the CR1OKD or terminal is pressed during the transfer. Data transfer is stopped and the memory location displayed when the flag is set. During *8 data The ring from the CR1OKD and RF-SDC is blocked when the SDE line is high, preventing it lrom interrupting data transfer to a pin-enabled print device. transfer the abort flag is checked as follows: 1. Comma delineated ASCII - after every 32 characters. 2. Printable ASCII - after every line. 3. Binary - after every 256 Final Storage locations. 4. Tape - after every block (512 Final Storage locations).

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238

an SD is enabled by an address synchronously
clocked from
the
CR10 (Section 6.6).
Up
to
16
SDs
may be addressed
by
the
CH10.
Unlike an enabled peripheral,
the
CR10
establishes
communication
with an addressed
peripheral before data are
transferred.
During
data
transfer
an
addressed
peripheral uses pin
7 as
a
handshake line with
the
CR10.
Synchronously addressed peripherals include
the
CR1OKD
Keyboard Display, SM716 and
SMl92
Storage Modules, SDC99 Synchronous Device
Interface (SDC99),
and
RF95 RF Modem when
configured as a synchronous
device.
The
SDC99
intedace
is used
to
address peripherals which are
normally
enabled
(Figure 6.2-1).
6.3
RING INTERRUPTS
There are
three
peripherals that
can
raise
the
CR10's
ring line; modems,
the
CR1OKD
Keyboard Display, and
the
RF Modem
configured for synchronous device
for
communication (RF-SDC). The RF-SDC
is
used when the CR10 is installed at
a
telephone
to
RF base station.
When
the
Ring line is raised,
the
processor
is
interrupted, and
the
CR10 determines which
peripheral raised
the
Ring line
through a
process
of
elimination
(Figure
6.3-1).
The CR10
raises
the
CLI(HS
line
forcing
all SDs to drop
the
ring
line.
lf
the
ring line
is
still
high
the
peripheral
is
a
modem, and
the
ME line is
raised.
lf
the
ring line
is
low
the
CR10 addresses
the
Keyboard Display
and RF-SDC to determine which device to
service.
(Section 6.6)
After
the CR10
has determined
which
peripheral
raised
the
Ring line,
the
hierarchy
is
as follows:
A
modem
which
raises
the
Ring line
will
interrupt
and gain control of
the
CR10.
The
one exception
is
that
a
modem
cannot
interrupt an
active
RF-
SDC. A
ring
from a
modem aborts data transfer
to
pin-enabled and
addressed
peripherals.
The CR1OKD raises
the
ring line whenever
a
key
is
pressed.
The
CR1OKD
will
not be serviced
when
the
modem
or
RF-SDC is being serviced.
The
ring from
the
CR1OKD
and
RF-SDC
is
blocked when
the
SDE line is high, preventing
it
lrom
interrupting data transfer
to a
pin-enabled
print device.
SECTION
6.
g.PIN
SERIAL INPUT/OUTPUT
RING
RA|SE
CLKIHS
NO
,
RING
LINE
STILL
HIGH
?
YES
ADDRESS
SDs
TO
DETERMINE
RING
DEVICE
RAISE
ME
TO
ENABLE
MODEM/TERMTNAL
FIGURE
6.3-1. Servicing
of
Ring Interrupts
INTERRUPTS
DURING
DATA TRANSFER
lnstruction
96 is used for on-line data transfer
to
peripherals (Section
4.1).
Each peripheral
connected to
the CR10
requires
an
Instruction 96
with
the
appropriate
parameter.
lf
the
CR10
is
already
communicating
on
the
9-pin
connector
when
lnstruction 96 is executed,
the
instruction
puts
the
output request
in
a
"queue" and program
execution
continues.
As
the
9-pin
connector
becomes available, each
device
in the queue will
get
its
turn
untilthe
queue
is
empty.
lnstruction 96
is
aborted
if
a modem
raises
the
Ring
line.
Data transfer
to
an addressed
peripheral
is
aborted
if
the
ring line is raised by
a
CR1OKD
or
RF
Modem configured as a synchronous device.
Transfer
of
data
is
not
resumed
untilthe
next time
Instruction 96 is executed and the
datalogger
has
exited telecommunications.
The
*8
Mode is used
to
manually initiate data
transfer
from
Final Storage
to a peripheral.
An
abort
flag
is
set
if
any
key on the
CR1OKD
or
terminal
is pressed during the
transfer.
Data
transfer
is stopped and
the
memory location
displayed when the
flag
is
set.
During
*8
data
transfer
the
abort
flag
is
checked
as follows:
1.
Comma delineated
ASCII
-
after every
32
characters.
2.
Printable ASCII
-
after every line.
3.
Binary
-
after every
256
Final Storage locations.
4.
Tape
-
after every
block (512
Final Storage
locations).
6.4