Advantek Networks (USB 2.0) Manuale Utente Pagina 73

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 118
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 72
63 Appendix A
A.1.2 GPIO Example program-1
------------------------------------------------
Enter the extended function mode, interruptible double-write
------------------------------------------------
MOV DX,2EH
MOV AL,87H
OUT DX,AL
OUT DX,AL
---------------------------------------------------------------
Configured logical device 7(GP10~GP17), configuration register
CRF0,CRF1,CRF2
---------------------------------------------------------------
MOV DX,2EH
MOV AL,07H; point to Logical Device Number Reg.
OUT DX,AL
MOV DX,2FH
MOV AL,07H; select logical device 7
OUT DX,AL;
MOV DX,2EH
MOV AL,F0
OUT DX,AL
MOV DX,2FH
MOV AL,00H; 01:Input 00:output for GP10~GP17
OUT DX,AL
MOV DX,2EH
MOV AL,F2H;
OUT DX,AL
MOV DX,2FH
MOV AL,00H;Set GPIO is normal not inverter
OUT DX,AL;
MOV DX,2EH
MOV AL,F1H
Vedere la pagina 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 117 118

Commenti su questo manuale

Nessun commento