6-19
6000 Series user’s manual
EZ I/O
mov bData,ah
mov cData,bl
}
Initialize EZ I/O (2)
Function:
efh
Subfunction:
03h
Purpose:
To set the directions and to program the initial values of
an EZ I/O port.
Calling registers:
AH efh
AL
03h
DI
Port A configuration
xxxxxxxx xxxxxxxxB
xxxxxxxx
Initial data for port A
xxxxxxxxB
direction; 1->output, 0->input
BX
Port B configuration
xxxxxxxx xxxxxxxxB
xxxxxxxx
Initial data for port B
xxxxxxxxB
direction; 1->output, 0->input
CX
Port C configuration
xxxxxxxx xxxxxxxxB
xxxxxxxx
Initial data for port C
xxxxxxxxB
direction; 1->output, 0->input
DX
ffffh
Return registers:
Carry flag cleared if successful
Carry flag set if error
AL
Error code
Comments:
This function is used to initialize the second EZ I/O (i.e.,
the EZ I/O that has the higher I/O address when two
EZ I/O chips are present on a board) before normal use.
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
asm {
mov ax,0ef03h
mov di,00ffh /*port A all outputs, init data=all 0’s */
mov bx,55ffh /*port B all outputs, init data=55h*/
mov cx,0000h /*port C all inputs*
mov dx,0ffffh
int 17h
}
Write EZ I/O (2)
Function:
efh
Subfunction:
04h
Purpose:
To write a value to an EZ I/O port.
Содержание 6000 Series
Страница 2: ...O C T A G O N S Y S T E M S Embedded PCs For Extreme Environments 6000 Series User s Manual 4738 0906 ...
Страница 7: ...Notice to user PC 500 user s manual ...
Страница 9: ...About this manual 6000 Series user s manual ...
Страница 37: ...2 20 Quick start 6000 Series user s manual ...
Страница 65: ...5 16 Serial ports 6000 Series user s manual ...
Страница 87: ...6 22 EZ I O 6000 Series user s manual ...
Страница 103: ...8 8 Analog I O 6000 Series user s manual ...
Страница 119: ...14 2 PC 104 expansion 6000 Series user s manual ...
Страница 133: ...16 4 Watchdog timer reset and remote reset 6000 Series user s manual ...
Страница 139: ...17 6 Serial EEPROM 6000 Series user s manual ...
Страница 157: ...21 2 Software utilities 6000 Series user s manual ...
Страница 161: ...22 4 Troubleshooting 6000 Series user s manual ...
Страница 177: ...A 16 6010 technical data 6000 Series user s manual ...
Страница 215: ...D 16 6040 technical data 6000 Series user s manual ...
Страница 229: ...F 2 Miscellaneous 6000 Series user s manual ...
Страница 231: ...G 2 Accessories 6000 Series user s manual ...
Страница 233: ...Warranty 6000 Series user s manual ...