Read Gpio Direction Sequence; Write Gpio Direction Sequence - Nexcom NISE 50 User Manual

Fan-less computer
Table of Contents

Advertisement

Appendix B: GPIO Control Commands

Read GPIO Direction Sequence

Step
Action
0
Wait IBF clear
1
Write 0x10 to 0x66
2
Wait IBF clear
3
Write PIN number to 0x62
4
Wait OBF set
5
Read 0x62 port
6
Wait IBF clear
7
Write 0x1D to 0x66
8
Wait OBF set
9
Read 0x62 port
Copyright © 2016 NEXCOM International Co., Ltd. All Rights Reserved.
Description
Send GPIO index command
Write pin number to index
If index setup successfully, EC will return pin
number.
If fail, EC will return 0xFF
Send read GPIO direction command
EC will return pin status according pin
number which you set in index.
0x80-input, 0x40-output. 0xFF-fail

Write GPIO Direction Sequence

Step
Action
0
Wait IBF clear
1
Write 0x10 to 0x66
2
Wait IBF clear
3
Write PIN number to 0x62
4
Wait OBF set
5
Read 0x62 port
6
Wait IBF clear
7
Write 0x1E to 0x66
8
Wait IBF clear
Write pin status to 0x62
9
port
73
Description
Send GPIO index command
Write pin number to index
If index setup successfully, EC will return pin
number.
If fail, EC will return 0xFF
Send write GPIO direction command
Write 0x40, GPIO pin will be set output.
Write 0x80, GPIO pin will be set input.
NISE 50 and NISE 50W User Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nise 50wNise-50-4g-32g

Table of Contents