Aaeon PFM-HDS Manual de usuario Pagina 102

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 105
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 101
PC/104 Module PFM-HDS
Appendix E Digital I/O Ports E -5
E.4 Digital I/O Sample Program
**************************************************************************
// SuperIO relative definition (Please reference to Table 2)
#define SIOIndex 0x2E
#define SIOData 0x2F
#define DIOLDN 0x06
IOWriteByte(byte IOPort, byte Value);
IOReadByte(byte IOPort);
// DIO relative definition (Please reference to Table 3)
#define DirReg 0x88 // 0:input, 1: output
#define InputPin 0x00
#define OutputPin 0x01
#define OutputReg 0x89 // 0:low, 1: high
#define StatusReg 0x8A // 0:low, 1: high
#define PinLow 0x00
#define PinHigh 0x01
#define Pin1Bit 0x00
#define Pin2Bit 0x01
#define Pin3Bit 0x02
#define Pin4Bit 0x03
#define Pin5Bit 0x04
#define Pin6Bit 0x05
#define Pin7Bit 0x06
#define Pin8Bit 0x07
**************************************************************************
**************************************************************************
VOID
Main(){
Boolean PinStatus ;
// Procedure : AaeonReadPinStatus
// Input :
// Example, Read Digital I/O Pin 3 status
// Output :
// InputStatus :
Vista de pagina 101
1 2 ... 97 98 99 100 101 102 103 104 105

Comentarios a estos manuales

Sin comentarios