Quanmax ECX-APL0 Series User Manual page 60

3.5" ecx single board computer with intel apollo lake soc processors
Table of Contents

Advertisement

DIO (Digital I/O) Sample Code
//*****************************************************************
//ECX-APL0 DOS DIO sample program
//Please compile with Microsoft(R) Visual C++ Version 1.5 & MASM611
//to utilized the program
//
//Access Method
// 32 bits memory address access
//
//
Memory address|| TX state|| RX state|| TX Disable|| RX Disable
//DIO_1: 0xD0C50500
//DIO_2: 0xD0C50508
//DIO_3: 0xD0C50510
//DIO_4: 0xD0C50518
//DIO_5: 0xD0C50520
//DIO_6: 0xD0C50528
//DIO_7: 0xD0C50530
//DIO_8: 0xD0C50538
//0:Low 1:High
//*****************************************************************
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef unsigned long
DWORD MEM_BASE_ADDRESS = 0xD0C50000;
DWORD addr_offset[8] = {0x500, //DIO_1
ECX-APL0 Series User's Manual
Appendix A
|| bit0
|| bit0
|| bit0
|| bit0
|| bit0
|| bit0
|| bit0
|| bit0
DWORD;
0x508, //DIO_2
0x510, //DIO_3
0x518, //DIO_4
|| bit1
|| bit8
|| bit1
|| bit8
|| bit1
|| bit8
|| bit1
|| bit8
|| bit1
|| bit8
|| bit1
|| bit8
|| bit1
|| bit8
|| bit1
|| bit8
60
Appendix A
|| bit9
|| bit9
|| bit9
|| bit9
|| bit9
|| bit9
|| bit9
|| bit9

Advertisement

Table of Contents
loading

Related Products for Quanmax ECX-APL0 Series

Table of Contents