Download SBC84823 A1 User Manual

Transcript
SBC84826 Series All-In-One CAPA Board User’s Manual

Digital Input
;Read DIO digital input pins’ value.
mov
dx,2Eh
mov
al,0F1h
out
dx,al
mov
dx,2Fh ; Bit0 ~ Bit2 represent DIO0 ~ DIO2
in
dx, al
; Show Bit0 ~ Bit2 DIO0~2 state.
N

;(1 High, 0 Low,
Note3)
Digital Output
; Set DIO digital output pins’ value.
mov
dx,2Eh
mov
al,0F1h
out
dx,al
mov
dx,2Fh
mov
al,M
;Bit3 ~ Bit7 represent DO0 ~ DO4,
out
dx,al
;Set output value M
;Bit 3 ~ Bit 7 are DO Pin 0~4 state. (1 High , 0 Low)
;When M is FF, all DO pins are high.(
Note1)
Note1:
When M=FFh
DIO7
DIO6
DIO5
DIO4
1
1
1
1
DIO3
DIO2
DIO1
DIO0
1
1
1
1
DIO7
DIO6
DIO5
DIO4
1
1
0
1
DIO3
DIO2
DIO1
DIO0
0
1
1
1
When M=D7h
84
Digital I/O