Copyright © 2019 NEXCOM International Co., Ltd. All Rights Reserved.
58
NISE 505 User Manual
Appendix B: EC Command Documentation
4.4 Write GPIO Status Sequence
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 0x07(GPIO7)
4
Wait OBF set
x
5
Read 0x62 port
If index setup is
successful, EC will
return pin number.
If failed, EC will return
0xFF.
>i 0x62
6
Wait IBF clear
x
7
Write 0x12 to 0x66
Send write GPIO status
command.
>o 0x66 0x12
8
Wait OBF 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 0x00(low)
4.3 Read GPIO Status Sequence
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 0x07(GPIO7)
4
Wait OBF set
x
5
Read 0x62 port
If index setup is
successful, EC will
return pin number.
If failed, EC will return
0xFF.
>i 0x62
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 to the
pin number which you
set in index.
1-GPIO is high. 0-GPIO
is low. 0xFF-fail.
>i 0x62