Aaeon PICO-CV01 Manuel d'utilisateur Page 100

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 103
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 99
PICO-ITX Board PICO-CV01
Appendix E Electrical Specifications for 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 0xD0 // 0:input, 1: output
#define InputPin 0x00
#define OutputPin 0x01
#define OutputReg 0xD1 // 0:low, 1: high
#define StatusReg 0xD2 // 0:low, 1: high
#define PinLow 0x00
#define PinHigh 0x01
#define Pin1Bit 0x00
#define Pin2Bit 0x01
#define Pin3Bit 0x02
#define Pin4Bit 0x03
**************************************************************************
**************************************************************************
VOID Main(){
Boolean PinStatus ;
// Procedure : AaeonReadPinStatus
// Input :
// Example, Read Digital I/O Pin 3 status
// Output :
// InputStatus :
// 0: Digital I/O Pin level is low
// 1: Digital I/O Pin level is High
PinStatus = AaeonReadPinStatus(Pin3Bit);
Vue de la page 99
1 2 ... 95 96 97 98 99 100 101 102 103

Commentaires sur ces manuels

Pas de commentaire