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