Appendix d Page 49
Page 49
HS-873P User’s Manual Programming GPIO’s
Programming GPIO’s
49
Appendix D
The GPIO can be programmed with the MSDOS debug program using simple
IN/OUT commands. The following lines show an example how to do this.
GPIO0...GPIO7 bit0……bit7
-o 2E 87 ;enter configuration
-o 2E 87
-o 2E 2A
-o 2F FD ;enable GPIO function
-o 2E 07
-o 2F 07 ;enable GPIO configuration
-o 2E F0
-o 2F xx ;set GPIO as input/output; set ‘1’ for input,’0’for output
-o 2E F1
-o 2F xx ;if set GPIO’s as output, in this register its value can be set
Optional :
-o 2E F2
-o 2F xx ; Data inversion register ; ‘1’ inverts the current value of the bits ,’0’
leaves them as they are
-o 2E 30
-o 2F 01 ; active GPIO’s
For further information, please refer to Winbond W83627THG datasheet.
- FS-A76 (41 pages)
- LV-67H (62 pages)
- FS-A78 (50 pages)
- FS-A73 (52 pages)
- FS-A74 (45 pages)
- FS-A72 (54 pages)
- FS-A71 (49 pages)
- FE-97G (55 pages)
- FS-97E (54 pages)
- FS-A70 (53 pages)
- FS-97B (58 pages)
- FS-97D (61 pages)
- FS-97C (55 pages)
- HS-870S (53 pages)
- FS-977 (42 pages)
- FS-961 (46 pages)
- HE-875P (56 pages)
- HS-874P (58 pages)
- HS-872PE (56 pages)
- HS-862P (46 pages)
- HE-860S (37 pages)
- HE-B71 (46 pages)
- HS-B70 (51 pages)
- HS-773 (56 pages)
- HE-772 (53 pages)
- HS-770E (46 pages)
- HE-760 (41 pages)
- HS-771 (48 pages)
- LE-575 (61 pages)
- LS-573 (54 pages)
- LS-572 (64 pages)
- LS-571 (57 pages)
- LE-37E (29 pages)
- LS-570E (58 pages)
- LE-565 (55 pages)
- LE-37D (39 pages)
- LS-37B (49 pages)
- LE-37C (47 pages)
- LE-380 (51 pages)
- LE-379 (53 pages)
- LS-377 (47 pages)
- LE-376 (45 pages)
- LE-375 (45 pages)
- LE-374 (54 pages)