Copyright © 2015 NEXCOM International Co., Ltd. All Rights Reserved.
60
NISE 50C/50C-H User Manual
Appendix C: GPI/O Control
Write DIO command description:
Sequence to Write 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 0x04
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 0x12 to 0x66
Send write GPIO status
command
>o 0x66 0x12
8
Wait IBF clear
x
9
Write pin status to
0x62 port
Write 0x01, GPIO pin
will be set high.
Write 0x00, GPIO pin
will be set low.
>o 0x62 0x01
(set to high)