Appendix
- 71 -
Below are the source codes written in assembly & C, please take them
for Digital I/O application examples. The default I/O address is 6Eh.
Assembly Code
mov
ax,402h
mov
dx,ax
mov
al,00h
out
dx,al
; clear i2c bus
mov
ax,400h
mov
dx,ax
mov
al,0ffh
out
dx,ax
; clear i2c bus status
mov
ax,404h
mov
dx,ax
mov
al,06eh
out
dx,ax
; Set I2C Device Address=6eh
mov
ax,403h
mov
dx,ax
mov
al,010h
out
dx,ax
;select GPIO 1 (index=10h)
mov
ax,405h
mov
dx,ax
mov
al,0ffh
out
dx,ax
;Set all GPIO 1 pin as output
mov
ax,402h
mov
dx,ax
mov
al,048h
out
dx,ax
;start write, active
;-------------------------------------------------------------
mov
ax,402h
mov
dx,ax
mov
al,00h
out
dx,al
; clear i2c bus
Appendix D: Digital I/O Setting
Содержание EmETXe-i9652
Страница 1: ...EmETXe i9652 COM Express CPU Module User s Manual Version 1 2 2011 06 ...
Страница 2: ...This page is intentionally left blank ...
Страница 5: ...Introduction 1 1 Chapter 1 Introduction Chapter 1 Introduction ...
Страница 12: ...Introduction 8 This page is intentionally left blank ...
Страница 13: ...Installation 9 2 Chapter 2 Installation Chapter 2 Installation ...
Страница 16: ...Installation 12 2 3 Jumpers and Connectors DIMM2 DIMM1 CPU Socket D1 C1 B1 A1 D110 C110 B110 A110 ...
Страница 22: ...Installation 18 This page is intentionally left blank ...
Страница 23: ...BIOS 19 3 Chapter 3 BIOS Chapter 3 BIOS ...
Страница 33: ...BIOS 29 Suspend mode Select the ACPI state used for System Suspend The Choice S1 POS 3 2 6 ACPI Configuration ...
Страница 41: ...BIOS 37 Clear NVRAM Clear NVRAM during System BOOT The Choice Yes No 3 3 Advanced PCI PnP Settings ...
Страница 70: ...BIOS 66 This page is intentionally left blank ...
Страница 71: ...Appendix 67 Appendix Appendix ...
Страница 80: ...Appendix 76 This page is intentionally left blank ...