Appendix C – Digital I/O Ports
17
BO
X PC
EPIC
-K
BS
9-
PUC
C.2 Digital I/O Sample Code
UINT32 SOC_GPIO_BASE_ADDRESS=
0xFDAE06A8
,SOC_GPIO_VAL=
0
;
for
(i =
0
; i <
8
; i++)
{
SOC_GPIO_VAL=MmioRead32(SOC_GPIO_BASE_ADDRESS
+8
*i);
if
(SetupData.SOCGPPGx_Oe[i]==
0
)
//GPIO set to input
{
SOC_GPIO_VAL |= BIT8;
//Set bit 8
SOC_GPIO_VAL &= (~BIT9);
//Clear bit 9
}
else
if
(SetupData.SOCGPPGx_Oe[i]==
1
)
//GPIO set to output
{
SOC_GPIO_VAL |= BIT9;
//Set bit 9
SOC_GPIO_VAL &= (~BIT8);
//Clear bit 8
if
(SetupData.SOCGPPGx_Val[i]==
0
)
SOC_GPIO_VAL &= (~BIT0);
//Clear bit 0 ==>Output LOW
else
SOC_GPIO_VAL |= BIT0;
//Set bit 0 ==>Output HIGH
}
}
Summary of Contents for EPIC-KBS9-PUC
Page 1: ...Last Updated April 2 2019 EPIC KBS9 PUC BOX PC User s Manual 1st Ed ...
Page 14: ...BOX PC EPIC KBS9 PUC Chapter 1 Chapter 1 Product Specifications ...
Page 17: ...Chapter 1 Product Specifications 4 BOX PC EPIC KBS9 PUC I O TPM Touch ...
Page 18: ...BOX PC EPIC KBS9 PUC Chapter 2 Chapter 2 Hardware Information ...
Page 19: ...Chapter 2 Hardware Information 2 BOX PC EPIC KBS9 PUC 2 1 Dimensions Top and Side Front ...
Page 21: ...Chapter 2 Hardware Information 4 BOX PC EPIC KBS9 PUC Board Component Side ...
Page 22: ...Chapter 2 Hardware Information 5 BOX PC EPIC KBS9 PUC Board Solder Side ...
Page 24: ...Chapter 2 Hardware Information 7 BOX PC EPIC KBS9 PUC Solder Side ...
Page 44: ...Chapter 2 Hardware Information 27 BOX PC EPIC KBS9 PUC 2 5 Block Diagram ...
Page 45: ...BOX PC EPIC KBS9 PUC Chapter 3 Chapter 3 BIOS Setup ...
Page 49: ...Chapter 3 BIOS Setup 5 BOX PC EPIC KBS9 PUC 3 4 Setup Submenu Advanced ...
Page 54: ...Chapter 3 BIOS Setup 10 BOX PC EPIC KBS9 PUC 3 4 5 Hardware Monitor ...
Page 57: ...Chapter 3 BIOS Setup 13 BOX PC EPIC KBS9 PUC 3 4 6 SIO Configuration ...
Page 60: ...Chapter 3 BIOS Setup 16 BOX PC EPIC KBS9 PUC 3 5 Setup Submenu Chipset ...
Page 67: ...Chapter 3 BIOS Setup 23 BOX PC EPIC KBS9 PUC 3 8 Setup Submenu Save Exit ...
Page 68: ...BOX PC EPIC KBS9 PUC Chapter 4 Chapter 4 Driver Installation ...
Page 71: ...BOX PC EPIC KBS9 PUC Appendix A Appendix A Mating Connectors ...
Page 73: ...BOX PC EPIC KBS9 PUC Appendix B Appendix B I O Information ...
Page 74: ...Appendix A Mating Connectors 7 BOX PC EPIC KBS9 PUC B 1 I O Address Map ...
Page 75: ...Appendix A Mating Connectors 8 BOX PC EPIC KBS9 PUC ...
Page 76: ...Appendix A Mating Connectors 9 BOX PC EPIC KBS9 PUC B 2 Memory Address Map ...
Page 77: ...Appendix A Mating Connectors 10 BOX PC EPIC KBS9 PUC ...
Page 78: ...Appendix A Mating Connectors 11 BOX PC EPIC KBS9 PUC B 3 IRQ Mapping Chart ...
Page 79: ...Appendix A Mating Connectors 12 BOX PC EPIC KBS9 PUC ...
Page 80: ...BOX PC EPIC KBS9 PUC Appendix C Appendix C Digital I O Ports ...
Page 81: ...Appendix C Digital I O Ports 14 BOX PC EPIC KBS9 PUC C 1 Digital I O Register ...
Page 82: ...Appendix C Digital I O Ports 15 BOX PC EPIC KBS9 PUC ...
Page 83: ...Appendix C Digital I O Ports 16 BOX PC EPIC KBS9 PUC ...
Page 85: ...BOX PC EPIC KBS9 PUC Appendix D Appendix D Watchdog Timer Programming ...