- 74 -
Appendix
- 74 -
Below are the source codes written in assembly & C, please take them
for Digital I/O application examples.
Assembly Code
;-- Initial W83627hf --
mov
AX, 2Eh
mov
DX, AX
mov
AL, 87h
out
DX, AX
;
out
DX, AX
; initial W83627HF start
;--
mov
AX, 2Eh
mov
DX, AX
mov
AL, 2Ah
out
DX, AL
; Select CR2A
mov
AL, 0FCh
INC
DX
out
DX, AL
; Set CR2A bit 7=1 as GPIO port 1
;--
mov
AX, 2Eh
mov
DX, AX
mov
AL, 07h
out
DX, AL
; Point to Logical Device Selector
mov
AL, 07h
inc
DX
out
DX, AL
; Select Logical Device 7
;--
mov
AX, 2Eh
mov
DX, AX
mov
AL, 30h
out
DX, AL
; select CR30
mov
AL, 01h
inc
DX
out
DX, AL
; set bit0=1, GPIO port 1 active
;--
mov
AX, 2Eh
mov
DX, AX
mov
AL, 0F0h
out
DX, AL
; select CRF0, GP I/O select
mov
AL, 00h
Appendix 5: Digital I/O Setting
Summary of Contents for ITX-i2705
Page 7: ... iii This page is intentionally left blank Index ...
Page 8: ... 1 Introduction 1 1 Chapter 1 Introduction Chapter 1 Introduction ...
Page 12: ... 5 Installation 5 2 Chapter 2 Installation Chapter 2 Installation ...
Page 44: ... 37 BIOS 37 3 Chapter 3 BIOS Chapter 3 BIOS ...
Page 73: ... 66 Appendix 66 Appendix Appendix ...
Page 84: ... 77 Appendix 77 This page is intentionally left blank ...