65
Digital I/O programming
The following is an Assembly program, which demonstrates how to read and write
the data of GPIO
.
;------------------------------------------------------------------------------------------------------
; Configuration the Digital IO port is 50Ch, and Bit2, Bit3, Bit4, Bit5
; Bit3/Bit2 (GPO-0 ~ GPO-1 Write data port)
;
When set to a “1”, respective GPO port is programmed as ‘High’.
;
When set to a “0”, respective GPO port is programmed as ‘Low’.
; Bit5/Bit4 (GPI-0 ~ GPI-1 Read data port.)
;
Its respective bit only read.
;------------------------------------------------------------------------------------------------------
Mov
Mov
dx,50ch
al,0ch
; Digital I/O port 50Ch
; set GPO-0(Bit3) ~ GPO-1(Bit2) value is “xxxx11xxb”
Out
dx,al
; Set GPO-0 ~ GPO-1 value
Mov
In
dx,50ch
al,dx
; read GPI-0 (Bit5) ~ GPI-1 (Bit4) value “xx11xxxxb”
Содержание TCD-N2600-C2G2-2
Страница 1: ...ii TCD N2600 C2G2 2 DIN miniPC User s Guide...
Страница 9: ...6...
Страница 15: ...12 2U Rack Mount Kit...
Страница 19: ...16 7 Connecting the Audio EAR Phone EAR Phone...
Страница 37: ...34 Super IO Configuration This section describes the function of Super I O settings...
Страница 41: ...38 Chipset This section describes the configuration of the board s chipsetfeatures Host Bridge South Bridge...
Страница 71: ...68...
Страница 80: ...77 145 Appendix Dimension a TCD N2600 C2G2 2 50 4 102...
Страница 81: ...18 2 10 5 REF 18 REF On 35mm Din Rails EN 50022 1977 78 72 REF...
Страница 82: ...37 5 REF 8 c TCD N2600 C2G2 2 5311K1 100 57 4 79 8 16 REF 75 100...