77
MIO-2270 User Manual
Appendix B
W
DT and
G
PIO
;WD timer counting = 0
;====================================================
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 680h.
.model small
.486p
.stack 256
.data
SCH3114_IO EQU 680h
.code
org 100h
.STARTup
;====================================================
; Configure the GPIO as GPI or GPO using the register below
; 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 the 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
Содержание MIO-2270
Страница 9: ...MIO 2270 User Manual viii...
Страница 30: ...Chapter 3 3 BIOS Settings...
Страница 52: ...Chapter 4 4 S W Introduction and Installation...
Страница 64: ...Appendix A A Pin Assignments...
Страница 74: ...63 MIO 2270 User Manual Appendix A Pin Assignments...
Страница 76: ...65 MIO 2270 User Manual Appendix A Pin Assignments...
Страница 78: ...67 MIO 2270 User Manual Appendix A Pin Assignments...
Страница 85: ...MIO 2270 User Manual 74...
Страница 86: ...Appendix B B WDT and GPIO...
Страница 89: ...MIO 2270 User Manual 78...
Страница 90: ...Appendix C C System Assignments...