![Arbor Technology EmETXe-a10R0 Скачать руководство пользователя страница 57](http://html1.mh-extra.com/html/arbor-technology/emetxe-a10r0/emetxe-a10r0_user-manual_2962998057.webp)
- 49 -
Appendix
Appendix B: DIO Sample Code
/*---------------------------------------------------------------------------*/
#include “math.h”
#include “stdio.h”
#include “dos.h”
/* SM Bus */
int SMB_PORT_AD = 0xB00;
int SMB_DEVICE_ADD = 0x40;
/* TCA6408A’s Add = 6eh or 9ch */
int main(void)
{
int iInput;
GPIOMode(0xF0);
delay(10000);
GPIOData(0x0A);
delay(30000);
iInput = GPIOStatus();
printf(“ Data : %2x \n”,iInput);
GPIOData(0x05);
delay(30000);
iInput = GPIOStatus();
printf(“ Data : %2x \n”,iInput);
return 0;
}
void GPIOMode(int iMode)
{
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x03,iMode); /* DIO 0 ~ 7 Mode */
}
void GPIOData(int iData)
{
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x01,iData); /* DIO 0 ~ 7 Data */
}
int GPIOStatus()
{
int iStatus;
iStatus = SMB_Byte_READ(SMB_PORT_AD,SMB_DEVICE_ADD,0x00);/* DIO 0 ~ 7 Status
*/
return iStatus;
}
Содержание EmETXe-a10R0
Страница 1: ...EmETXe a10R0 COM Express Compact Type 6 CPU Module User s Manual Version 1 0 2020 12...
Страница 2: ...Revision History Version Date Description 1 0 2020 12 Initial release...
Страница 9: ...1 Introduction 1 Chapter 1 Introduction...
Страница 14: ...6 This page is intentionally left blank...
Страница 15: ...7 Board Overview 2 Chapter 2 Board Overview...
Страница 17: ...9 Board Overview 2 2 Board Dimensions 2 9 2 95 95 4 76 4 87 4 87 54 48 32 39 2 7 6 0 Unit mm...
Страница 22: ...14 This page is intentionally left blank...
Страница 23: ...15 Installation Maintenance 3 Chapter 3 Installation Maintenance...
Страница 26: ...18 This page is intentionally left blank...
Страница 27: ...19 BIOS 4 Chapter 4 BIOS...
Страница 37: ...29 BIOS 4 2 6 NVMe Configuration Access this submenu to view the NVMe controller and driver information...
Страница 39: ...31 BIOS 4 2 8 Hardware Monitor Access this page to view the hardware information...
Страница 46: ...38 BIOS 4 3 1 SB USB Config Setting Description XHCI0 Port 0 5 Enable default disable default xHCI0 port 0 5...
Страница 48: ...40 BIOS 4 3 3 Display Configuration Item Description Active LVDS Enable or Disable default active LVDS control...
Страница 52: ...44 This page is intentionally left blank...
Страница 53: ...45 Appendix Appendix...
Страница 56: ...48 Appendix outportb sioIndex 0xAA SIO Disable return iData...