Appendix C – Digital I/O Ports
17
EPIC
Bo
ar
d
EPIC
-K
BS
9
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
}
}
Содержание EPIC-KBS9
Страница 1: ...Last Updated July 31 2018 EPIC KBS9 EPIC Board User s Manual 2nd Ed...
Страница 14: ...EPIC Board EPIC KBS9 Chapter 1 Chapter 1 Product Specifications...
Страница 17: ...Chapter 1 Product Specifications 4 EPIC Board EPIC KBS9 Touch...
Страница 18: ...EPIC Board EPIC KBS9 Chapter 2 Chapter 2 Hardware Information...
Страница 19: ...Chapter 2 Hardware Information 2 EPIC Board EPIC KBS9 2 1 Dimensions Component Side Component Side...
Страница 20: ...Chapter 2 Hardware Information 3 EPIC Board EPIC KBS9 Solder Side Solder Side...
Страница 21: ...Chapter 2 Hardware Information 4 EPIC Board EPIC KBS9 2 2 Jumpers and Connectors Component Side Component Side...
Страница 22: ...Chapter 2 Hardware Information 5 EPIC Board EPIC KBS9 Solder Side Solder Side...
Страница 41: ...Chapter 2 Hardware Information 24 EPIC Board EPIC KBS9 2 5 Block Diagram...
Страница 42: ...EPIC Board EPIC KBS9 Chapter 3 Chapter 3 BIOS Setup...
Страница 45: ...Chapter 3 BIOS Setup 28 EPIC Board EPIC KBS9 3 3 Setup submenu Main...
Страница 46: ...Chapter 3 BIOS Setup 29 EPIC Board EPIC KBS9 3 4 Setup submenu Advanced...
Страница 49: ...Chapter 3 BIOS Setup 32 EPIC Board EPIC KBS9 3 4 3 SIO Configuration...
Страница 51: ...Chapter 3 BIOS Setup 34 EPIC Board EPIC KBS9 3 4 4 Hardware Monitor...
Страница 53: ...Chapter 3 BIOS Setup 36 EPIC Board EPIC KBS9...
Страница 58: ...Chapter 3 BIOS Setup 41 EPIC Board EPIC KBS9 3 5 Setup submenu Chipset...
Страница 63: ...Chapter 3 BIOS Setup 46 EPIC Board EPIC KBS9 Enabled Disable Me FW Image Re Flash function...
Страница 66: ...Chapter 3 BIOS Setup 49 EPIC Board EPIC KBS9 3 7 1 BBS Priorities...
Страница 67: ...Chapter 3 BIOS Setup 50 EPIC Board EPIC KBS9 3 8 Submenu Exit...
Страница 68: ...EPIC Board EPIC KBS9 Chapter 4 Chapter 4 Drivers Installation...
Страница 71: ...EPIC Board EPIC KBS9 Appendix A Appendix A Mating Connectors...
Страница 73: ...EPIC Board EPIC KBS9 Appendix B Appendix B I O Information...
Страница 74: ...Appendix A Mating Connectors 7 EPIC Board EPIC KBS9 B 1 I O Address Map...
Страница 75: ...Appendix A Mating Connectors 8 EPIC Board EPIC KBS9...
Страница 76: ...Appendix A Mating Connectors 9 EPIC Board EPIC KBS9 B 2 Memory Address Map...
Страница 77: ...Appendix A Mating Connectors 10 EPIC Board EPIC KBS9...
Страница 78: ...Appendix A Mating Connectors 11 EPIC Board EPIC KBS9 B 3 IRQ Mapping Chart...
Страница 79: ...Appendix A Mating Connectors 12 EPIC Board EPIC KBS9...
Страница 80: ...EPIC Board EPIC KBS9 Appendix C Appendix C Digital I O Ports...
Страница 81: ...Appendix C Digital I O Ports 14 EPIC Board EPIC KBS9 C 1 Digital I O Register...
Страница 82: ...Appendix C Digital I O Ports 15 EPIC Board EPIC KBS9...
Страница 83: ...Appendix C Digital I O Ports 16 EPIC Board EPIC KBS9...