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
Summary of Contents for 7064
Page 2: ...Racal Instruments...
Page 6: ...I 1 1 1 1 1...
Page 21: ...I 1 I I I I I I I I I 1 1 I I I I I I...
Page 29: ...I I I I I I I I I I I I I I I I I I I...
Page 57: ...1 I I I I I I I I I I I I I I I I I I...
Page 77: ...1...
Page 111: ...0 00 0 00 tI I 4 0 0 I7 r i 6 4 7 4 7 0 T 6 0 0 7 28...
Page 112: ......
Page 113: ...7 30 I I I 1 I I I I I I I I I I I I I I I...
Page 115: ...7 32...
Page 148: ......
Page 164: ...I I I I I I I I I I 1 I I I I I I I I...
Page 176: ...extern char error_msg_lookup unsigned errdes endif ERROR_INCLUDE C 8...