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

Fan-less computer
Table of Contents

Advertisement

Appendix B: GPIO Control Commands

Read GPIO Status 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 0x11 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 status command
EC will return pin status according pin
number which you set in
index. 1-GPIO is high. 0-GPIO is low. 0xFF-fail.

Write GPIO Status 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 0x62port
6
Wait IBF clear
7
Write 0x12 to 0x66
8
Wait IBF clear
Write pin status to 0x62
9
port
72
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 status command
Write 0x01, GPIO pin will be set high.
Write 0x00, GPIO pin will be set low.
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