Advantech PCE-5127 User Manual Page 108

  • Download
  • Add to my manuals
  • Print
  • Page
    / 109
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 107
99 PCE-5127/7127 User Manual
Appendix C Programming the GPIO
INC DX
MOV AL,07H ; Select logical device 7
OUT DX,AL ;
DEC DX
MOV AL,E0H
OUT DX,AL
INC DX
MOV AL,00H ; 1:Input 0:output for GPIO respective
OUT DX,AL
DEC DX
MOV AL,E2H ;
OUT DX,AL
INC DX
MOV AL,00H ;Set GPIO is normal not inverter
OUT DX,AL;
DEC DX
MOV AL,E1H
OUT DX,AL
INC DX
MOV AL,??H ; Put the output value into AL
OUT DX,AL
------------------------------------------
Exit extended function mode |
------------------------------------------
MOV DX,2EH
MOV AL,AAH
OUT DX,AL
Page view 107
1 2 ... 103 104 105 106 107 108 109

Comments to this Manuals

No comments