Aaeon PCM-QM77 User Manual page 156

Hide thumbs Also See for PCM-QM77:
Table of Contents

Advertisement

2
GP22_ODATA
1
GP21_ODATA
0
GP20_ODATA
GPIO2x Input Status Register-Index 22h
Power-on default [7:0]=xxxx_xxxxb
Bit
Name
7
GP27_PSTS
6
GP26_PSTS
5
GP25_PSTS
4
GP24_PSTS
3
GP23_PSTS
GP22_PSTS
2
GP21_PSTS
1
0
GP20_PSTS
The following is a sample code for 8 input
.MODEL
SMALL
.CODE
begin:
mov cl,01h
mov al,80h
call
CT_I2CWriteByte
call
Delay5ms
mov
al,00h
Appendix F – Digital I/O Ports
R/W
VSB3V
R/W
VSB3V
R/W
VSB3V
R/W
PWR
RO
VSB3V
RO
VSB3V
RO
VSB3V
RO
VSB3V
RO
VSB3V
RO
VSB3V
RO
VSB3V
RO
VSB3V
GPIO 22 output data.
GPIO 21 output data.
GPIO 20 output data.
Description
Read the GPIO27 data on the pin.
Read the GPIO26 data on the pin.
Read the GPIO25 data on the pin.
Read the GPIO24 data on the pin.
Read the GPIO23 data on the pin.
Read the GPIO22 data on the pin.
Read the GPIO21 data on the pin.
Read the GPIO20 data on the pin.
141

Advertisement

Table of Contents
loading

Table of Contents