
Copyright © 2013 NEXCOM International Co., Ltd. All Rights Reserved.
113
NISE 4000P4E User Manual
Appendix C: GPI/O Programming Guide
GPIO programming sample code
#define GPO0_HI outportb(0xA03, 0x01)
#define GPO0_LO outportb(0xA03, 0x00)
#define GPO1_HI outportb(0xA03, 0x02)
#define GPO1_LO outportb(0xA03, 0x00)
#define GPO2_HI outportb(0xA03, 0x04)
#define GPO2_LO outportb(0xA03, 0x00)
#define GPO3_HI outportb(0xA03, 0x08)
#define GPO3_LO outportb(0xA03, 0x00)
void main(void)
{
GPO0_HI;
GPO1_LO;
GPO2_HI;
GPO3_LO;
}
Komentáře k této Příručce