Appendix A: GPI/O Programming Guide
GPIO programming sample code
#define GPIO_PORT
0x538
#define GPO0
(0x01 << 3)
#define GPO1
(0x01 << 6)
#define GPO2
(0x01 << 7)
#define GPO0_HI
outportb(GPIO_PORT, 0x08)
#define GPO0_LO
outportb(GPIO_PORT, 0x00)
#define GPO1_HI
outportb(GPIO_PORT, 0x40)
#define GPO1_LO
outportb(GPIO_PORT, 0x00)
#define GPO2_HI
outportb(GPIO_PORT, 0x80)
#define GPO2_LO
outportb(GPIO_PORT, 0x00)
void main(void)
{
GPO0_HI;
GPO1_LO;
GPO2_HI;
}
Copyright © 2015 NEXCOM International Co., Ltd. All Rights Reserved.
123
IPPC 1560T/1960T/2160P Series and APPC 1560T User Manual
Need help?
Do you have a question about the IPPC 1560T Series and is the answer not in the manual?
Questions and answers