
IFO2225-873 Series User’s Manual
Digital I/O
63
Appendix B
Digital I/O
B.1 Digital I/O Software Programming
The following example enables configuration using debug tool.
Start digital I/O programming
↓
Enable configuration:
-O 2E 87 ; Un-lock super I/O
-O 2E 87
↓
Select logic device:
-O 2E 07
-O 2F 07
↓
Enable GPIO2:
-O 2E 30
-O 2F DC
-O 2E 1C
-O 2F 1D
↓
Set I/O register: (set GP20-23: input, GP24-27: output)
-O 2E E8
-O 2F 0F ; 1: input port, 0: output port
↓
Set data register:
-O 2E E9
-O 2F 00 ; GP24-27 output ports = low
; GP20-23 input ports are read only
-I 2F ; Read GP20-23 input ports (default is high)
Note
Pin
Signal
Pin
Signal
1
GP20 (Bit 0)
2
GP24 (Bit 4)
3
GP21 (Bit 1)
4
GP25 (Bit 5)
5
GP22 (Bit 2)
6
GP26 (Bit 6)
7
GP23 (Bit 3)
8
GP27 (Bit 7)
9
GND
10
GND
Summary of Contents for IFO2225-873 Series
Page 10: ...x This page is intentionally left blank...
Page 15: ...IFO2225 873 Series User s Manual Introduction 5...
Page 72: ...IFO2225 873 Series User s Manual 62 Watchdog Timer This page is intentionally left blank...
Page 74: ...IFO2225 873 Series User s Manual 64 Digital I O This page is intentionally left blank...