Appendix 5: Digital I/O Setting - ROHS ITX-i2705 User Manual

Mini-itx industrial motherboard
Table of Contents

Advertisement

Appendix 5: Digital I/O Setting

Below are the source codes written in assembly & C, please take them
for Digital I/O application examples.
Assembly Code
;-- Initial W83627hf --
mov
mov
mov
out
out
;--
mov
mov
mov
out
mov
INC
out
;--
mov
mov
mov
out
mov
inc
out
;--
mov
mov
mov
out
mov
inc
out
;--
mov
mov
mov
out
mov
AX, 2Eh
DX, AX
AL, 87h
DX, AX
DX, AX
AX, 2Eh
DX, AX
AL, 2Ah
DX, AL
AL, 0FCh
DX
DX, AL
AX, 2Eh
DX, AX
AL, 07h
DX, AL
AL, 07h
DX
DX, AL
AX, 2Eh
DX, AX
AL, 30h
DX, AL
AL, 01h
DX
DX, AL
AX, 2Eh
DX, AX
AL, 0F0h
DX, AL
AL, 00h
;
; initial W83627HF start
; Select CR2A
; Set CR2A bit 7=1 as GPIO port 1
; Point to Logical Device Selector
; Select Logical Device 7
; select CR30
; set bit0=1, GPIO port 1 active
; select CRF0, GP I/O select
- 74 -
- 74 -
Appendix

Advertisement

Table of Contents
loading

This manual is also suitable for:

Itx-i2705d

Table of Contents