Appendix A
65
KEMX-6000 User’s Manual
system("pause");
//Setting DO_1~4
RetVal=inp(0x539);//IO Port: 0x539
RetVal=(RetVal|0x70);//DO_1 is bit 4
//DO_2 is bit 5
//DO_3 is bit 6
outp(0x539,RetVal);
RetVal=inp(0x53B);//IO Port: 0x53B
RetVal=(RetVal|0x01);//DO_4 is bit 0
outp(0x53B,RetVal);
system("pause");
//Reading DI_1~4
RetVal=inp(0x50C);//IO Port: 0x50C
RetVal=(RetVal&0x3C);//DI_1 is bit 2
//DI_2 is bit 3
//DI_3 is bit 4
//DI_4 is bit 5
printf("DI_= %d\n",RetVal);
system("pause");
return 0;
}
Содержание KEMX-6000
Страница 20: ...Chapter 1 20 KEMX 6000 User s Manual System Block Diagram Figure 1 Block Diagram...
Страница 21: ...Chapter 1 21 KEMX 6000 User s Manual Mechanical Dimensions A 3 51mm B 2 6mm Figure 2 Mechanical Dimensions...
Страница 24: ...Chapter 2 24 KEMX 6000 User s Manual Figure 4 Jumper and Connector Locations...
Страница 67: ...Appendix B 67 KEMX 6000 User s Manual outp 0x2E 0xF0 outp 0x2F 0x81 bit7 WDTRST output is enabled return 0...