ROHS EmCORE-i2702 User Manual page 71

3.5”
Table of Contents

Advertisement

Appendix
{
int temp;
printf(" ITE 8718F Digital I/O tester Ver:0.1 \n");
printf(" Warning: This tools is test only. \n");
/* Start initial Digital I/O Port */
/* Group2 & Group should seprate init. */
outportb(0x2e, 0x87);
outportb(0x2e, 0x01);
outportb(0x2e, 0x);
outportb(0x2e, 0x55);
delay(100);
outportb(0x2e, 0x26);
outportb(0x2e+1, 0x0f);
outportb(0x2e, 0x07);
outportb(0x2e+1, 0x07);
outportb(0x2e, 0x62);
outportb(0x2e+1, 0x02);
outportb(0x2e, 0x6);
outportb(0x2e+1, 0x98);
outportb(0x2e, 0xC1);
outportb(0x2e+1, 0x0F);
outportb(0x2e, 0xC2);
outportb(0x2e+1, 0x0F);
outportb(0x2e, 0xC9);
outportb(0x2e+1, 0x0F);
outportb(0x2e, 0x02);
outportb(0x2e+1, 0x02);
outportb(0x2e, 0x87);
outportb(0x2e, 0x01);
outportb(0x2e, 0x);
outportb(0x2e, 0x55);
delay(100);
outportb(0x2e, 0x27);
outportb(0x2e+1, 0x0f);
outportb(0x2e, 0x07);
outportb(0x2e+1, 0x07);
/* Start initial config port */
/*
/*
/* End of initial Config Port*/
/* point to GPIO Set2 */
/* Select GPIO Set 2, GP2~GP20 */
/* point to logical device */
/* Select logical device 7 */
/* point to SIMPLE I/O base hi-addr */
/* Set base address from 298h */
/* point to SIMPLE I/O base lo-addr */
/* */
/* Set GP2 Port Mode, 1=Simple I/O */
/*
*/
/* Set GP2 Port Mode, 1=Simple I/O */
/*
*/
/* Set GP2 I/O Mode, 0=input, 1=output */
/* Set GP2-GP20 pin as output */
/* init config port finish */
/* Start initial config port */
/*
/*
/* End of initial Config Port*/
/* point to GPIO Set */
/* Select GPIO Set , GP~GP0 */
/* point to logical device */
/* Select logical device 7 */
- 67 -
*/
*/
*/
*/

Advertisement

Table of Contents
loading

Table of Contents