Racal Instruments 7064 Instruction Manual page 27

Table of Contents

Advertisement

3.6.1.3 B i t Commands
setbit(port,bit_number);
rstbit(port,bit_number);
outbit(port,bit_number,value)
pulsehi(port,bit_number);
pulselo(port,bit_number);
inbit(port,bit_number);
csetbit(card,cport,bit_number);
crstbit(card,cport,bit_number);
coutbit(card,cport,bit_number,value);
cpulsehi(card,cport,bit_number);
cpulselo(card,cport,bit_number);
cinbit(card,cport,bit_number);
These commands are provided f o r b i t level manipulation. T h e s e commands use a
bit_number to identify which bit is to be operated on. Bit_numbers range from 0 to 7.
0 is the least significant bit while 7 is the most significant bit.
In order to modify bits in a port without changing others, it is necessary to have the ports
configured so the current state can be read. T h i s is d o n e on an output port by leaving
the port configured for readback. F o r this operation, the LAT/BUFFx! is held low (See
Section 3.1 f o r explanation).
setbit and csetbit - bit is set to 1
rstbit and crstbit - bit is set to 0
outbit and coutbit - bit is set to value
pulsehi and cpulsehi - the bit is set to 1 and then to 0
pulselo and cpulselo - the bit is set to 0 and then to 1
inbit and cinbit - reads and returns the value o f the bit i.e. 0 or 1
3.6.1.4 B y t e Commands
outportb(port,byte):
inportb(port):
coutportb(card,cport,byte);
cinportb(card,cport);
These commands are provided for operations on bytes o f data.
outportb and coutportb - port is set to the value
inportb and cinportb - reads and returns the value read from the port
3-6

Advertisement

Table of Contents
loading

Related Products for Racal Instruments 7064

Table of Contents