ROHS EmCORE-i2702 User Manual page 72

3.5”
Table of Contents

Advertisement

outportb(0x2e, 0xCA);
outportb(0x2e+1, 0x0F);
outportb(0x2e, 0xBA);
outportb(0x2e+1, 0x0F);
outportb(0x2e, 0x02);
outportb(0x2e+1, 0x02);
delay(100);
/* End of initial Port, Digital I/O Port address = 299h, 29Ah */
/*
printf(" Ready to Test DIO port ,start after  sec. \n");
printf("  sec. \n");
delay(1000);
printf("  sec. \n");
delay(100);
printf("  sec. \n");
delay(1000);
printf(" 2 sec. \n");
delay(1000);
printf(" 1 sec. \n");
delay(1000);
*/
printf(" Set all DIO low. \n");
outportb(0x299,0x00);
outportb(0x29A,0x00);
delay(000);
printf(" Set all DIO High. \n");
outportb(0x299,0x0F);
outportb(0x29A,0x0F);
delay(000);
printf(" Set all DIO low. \n");
outportb(0x299,0x00);
outportb(0x29A,0x00);
delay(000);
printf(" Set all DIO High. \n");
outportb(0x299,0x0F);
outportb(0x29A,0x0F);
delay(000);
/* ************************* */
/* Set GPI/O Mode, 0=input, 1=output */
/* Set GP-GP0 pin as output */
/* Set GP Pull High, 0=low, 1=Pull-high */
/* Set GP-GP0 pin pull high */
/* init config port finish */
- 68 -
Appendix

Advertisement

Table of Contents
loading

Table of Contents