Copyright © 2015 NEXCOM International Co., Ltd. All Rights Reserved.
59
NISE 50C/50C-H User Manual
Appendix C: GPI/O Control
a
PPendIx
C: gPI/o C
ontrol
Command register and address description:
EC controls DIO status by following command:
Command
Description
0x10
Write Pin number into index
0x11
According index, get GPIO pin status. 1-active, 0-unactive,
0xFF-fail
0x12
According index, change GPIO pin status. 1-active,
0-unactive
Status Address of DIO:
Command
Description
0x00
DI
0x04
DO
Read DIO command description:
Sequence to Read DIO:
Step Action
Description
RW sample
code command
0
Wait IBF clear
x
1
Write 0x10 to 0x66
Send GPIO index
command
>o 0x66 0x10
2
Wait IBF clear
x
3
Write PIN number to
0x62
Write pin number to
index
>o 0x62 0x00
4
Wait OBF set
x
5
Read 0x62 port
If index setup
successfully, EC will
return pin number.
If fail, EC will return 0xFF
x
6
Wait IBF clear
x
7
Write 0x11 to 0x66
Send read GPIO status
command
>o 0x66 0x11
8
Wait OBF set
x
9
Read 0x62 port
EC will return pin status
according pin number
which you set inindex.
1-GPIO is high. 0-GPIO
is low. 0xFF-fail.
>i 0x62