Digital I/O Sample Code (4 In 4 Out, 2 Low 2 High) - Aaeon GENE-APL5 User Manual

3.5" subcompact board
Hide thumbs Also See for GENE-APL5:
Table of Contents

Advertisement

D.2

Digital I/O Sample Code (4 in 4 out, 2 low 2 high)

Outportb(0x2E,0x87); //enter configuration
Outportb(0x2E,0x87);
Outportb(0x2E,0x07); //set LDN
Outportb(0x2F,0x06);
Outportb(0x2E,0xA0); //GPIO set 5 register
Outportb(0x2F,0xF0);
Outportb(0x2E,0xA1); //GPIO output data register
Outportb(0x2F,0x30);
Outportb(0x2E,0xAA); //exit configuration
Appendix D – Digital I/O Ports
106

Advertisement

Table of Contents
loading

Table of Contents