89
MIO-3360 User Manual
Appendix B
W
DT &
G
PIO
;====================================================
mov dx,SCH3 68h
mov al,01h
out dx,al
.exit
END
B.2
GPIO Sample Code
The SCH3114 Runtime base I/O address is A00h
.model small
.486p
.stack 256
.data
SCH3114_IO EQU A00h
.code
org 100h
.STARTup
;====================================================
; Configuration GPIO as GPI or GPO by below register:
; GPIO0 = 23H, GPIO4 = 27H
; GPIO1 = 24H, GPIO5 = 29H
; GPIO2 = 25H, GPIO6 = 2AH
; GPIO3 = 26H, GPIO7 = 2BH
; Set 00H as output type, set 01H as input type
;====================================================
;====================================================
; Register 4BH configuration GPO value as high or low:
; 1 = HIGH
; 0 = LOW
;====================================================
mov dx,SCH3 23h ;GPIO 0
mov al,00h ;Set GPIO 0 as output type
out dx,al
mov dx,SCH3 4Bh
mov al,01h ;Set GPIO 0 as high value.
out dx,al
.exit
END
Summary of Contents for MIO-3360
Page 8: ...MIO 3360 User Manual viii...
Page 16: ...MIO 3360 User Manual 6...
Page 24: ...MIO 3360 User Manual 14...
Page 25: ...Chapter 3 3 BIOS Settings...
Page 52: ...MIO 3360 User Manual 42...
Page 53: ...Chapter 4 4 S W Introduction Installation...
Page 58: ...MIO 3360 User Manual 48 GPIO...
Page 60: ...MIO 3360 User Manual 50 I2 C...
Page 68: ...MIO 3360 User Manual 58...
Page 69: ...Appendix A A PIN Assignments...
Page 72: ...MIO 3360 User Manual 62...
Page 75: ...65 MIO 3360 User Manual Appendix A PIN Assignments...
Page 78: ...MIO 3360 User Manual 68...
Page 95: ...85 MIO 3360 User Manual Appendix A PIN Assignments...
Page 96: ...MIO 3360 User Manual 86...
Page 97: ...Appendix B B WDT GPIO...
Page 100: ...MIO 3360 User Manual 90...
Page 101: ...Appendix C C System Assignments...