I/O Register

clear_output_register_bit(dev_id) = bit_no, corb()
Clears the specified bit. e.g.:
corb(oreg1) = 1

input_register_data_accepted( device_id), irda()
Module: Borer 1031a
Performs: Enable HS, dummy read, disable handshake.
e.g.:
do input_register_data_accepted(ireg1)

read_input_register( device_id), rir()
Returns the bit pattern from an input register.
e.g.:
* = read_input_register(reg1)

read_input_register_d( device_id), rird()
This function is used, if it is not clear when the input is latched. It returns the second reading of a bit pattern from an input register.
e.g.:
* = rird(reg1)

read_input_register_bcd( device_id), rirbcd()
Reads an input register. The input is interpreted as BCD coded decimals.
e.g.:
* = read_input_register_bcd(reg1)

read_output_register( dev_id), ror()
Reads the last value that has been written to an output register,
e.g.:
* = ror( oreg1)

reset_input_register( device_id), resir()
Module: Borer 1031a
Performs: Enable Q, clear LAM, disable handshake.
e.g.:
do reset_input_register(ireg1)

reset_output_register( device_id)
resor()

Module: Borer 1031a

Performs: Enable Q, clear LAM, disable handshake.

e.g.:
do reset_output_register(oreg1)

reset_output_register( device_id), resor()
Module: Borer 1031a
Performs: Enable Q, clear LAM, disable handshake.
e.g.:
do reset_output_register(oreg1)

set_output_register_bit( device_id) = bit_no, sorb()
Sets a bit (0 is the first bit).
e.g.:
sorb(reg1) = 3

test_input_register( device_id, bit_no), tir()
Returns the status of the selected bit. The least significant bit is 0.
e.g.:
* = test_input_register(reg1, 2)

test_output_register_bit( device_id, bit_no), torb()
Returns the status of the selected bit. The least significant bit is 0.
e.g.:
* = test_output_register_bit(reg1, 2)

wait_for_input_register( dev_id), wfir()
Returns 1, if the input becomes 1 or 0, if the user pressed the space bar.
e.g.:
* = wfir(ireg1)

write_output_register( dev_id) = int_expr, wor()
Writes a numer to an output register.
VME (V513): "wor(oreg1) = -1" resets the module, "wor(oreg1) = -2" produces a pulse.
e.g.:
wor(oreg1) = 12