![background image](http://html2.mh-extra.com/html/racal-instruments/7064/7064_instruction-manual_3127022027.webp)
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
Содержание 7064
Страница 2: ...Racal Instruments...
Страница 6: ...I 1 1 1 1 1...
Страница 21: ...I 1 I I I I I I I I I 1 1 I I I I I I...
Страница 29: ...I I I I I I I I I I I I I I I I I I I...
Страница 57: ...1 I I I I I I I I I I I I I I I I I I...
Страница 77: ...1...
Страница 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...
Страница 112: ......
Страница 113: ...7 30 I I I 1 I I I I I I I I I I I I I I I...
Страница 115: ...7 32...
Страница 124: ...CO 0 L5 F 4 BEAD 2 A C8 1 0 1 uF C9 01 uF T 0 1 uF 01 uF E12 0 IIIIII M I 11111 V I E M I 111111 I I I I I I N M I I...
Страница 148: ......
Страница 164: ...I I I I I I I I I I 1 I I I I I I I I...
Страница 176: ...extern char error_msg_lookup unsigned errdes endif ERROR_INCLUDE C 8...