ROHS EmCORE-i2702 User Manual page 73

3.5”
Table of Contents

Advertisement

Appendix
printf(" Read Digital I/O status\n");
printf(" I/O Group2: %x \n", inportb(0x299)&0x0f );
printf(" I/O Group: %x \n", inportb(0x29A)&0x0f );
delay(00);
temp=inportb(0x299);
temp=(temp)&(0xfe);
printf(" Only set GPIO20=0 \n");
outportb(0x299,temp);
temp=inportb(0x29A);
temp=(temp)&(0x00);
temp=(temp)|(0x02);
printf(" Clear all, Only set GPIO1=1 \n");
outportb(0x29A,temp);
}
/* set bit0=0 */
/* set all bit=0 */
/* set bit1=1 */
- 69 -

Advertisement

Table of Contents
loading

Table of Contents