3301825 3.5” Embedded SBC
Bit 4
00h
00h
Bit 5
00h
00h
Bit 6
00h
00h
Bit 7
00h
00h
A.2 Assembly Language Samples
A.2.1 GPIO Initialization Procedure
The following instruction set initializes one pin on the GPIO connector.
MOV
DX,
320h
Moves 320h into the DX data register for one of the
GPIO pins
MOV
AL,
XXh
Moves the user defined output value XXh into the low bit
accumulator register AL
OUT
DX,
AL
The content of the low bit accumulator register AL is
transmitted to the address stored in the DX data register
The following instruction set initializes the input/output setting register for one pin on the
GPIO connector to specify whether that pin inputs or outputs data.
MOV
DX,
321h
Moves 320h into the DX data register for one of the
GPIO pins
MOV
AL,
YYh
Moves the user defined output value YYh into the low bit
accumulator register AL. If YY is specified as 0, the pin is
an output pin. If YY is specified as 1, the pin is an input
pin.
OUT
DX,
AL
The content of the low bit accumulator register AL is
transmitted to the address stored in the DX data register
A.2.2 General Purpose Output Procedure
The following instruction set is for a GPO procedure for one pin on the GPIO connector.
Page 81
Содержание 3301825
Страница 1: ...User s Manual Version 1 0 November 2006 Single Board Computer 3301825 ...
Страница 13: ...3301825 3 5 Embedded SBC Chapter 1 Introduction Page 1 ...
Страница 19: ...3301825 3 5 Embedded SBC Chapter 2 Detailed Specifications Page 7 ...
Страница 33: ...3301825 3 5 Embedded SBC Chapter 3 Unpacking Page 21 ...
Страница 36: ...3301825 3 5 Embedded SBC Table 3 1 Package List Contents Page 24 ...
Страница 37: ...3301825 3 5 Embedded SBC Chapter 4 Connector Pinouts Page 25 ...
Страница 54: ...3301825 3 5 Embedded SBC Figure 4 12 PC 104 Slot Location Page 42 ...
Страница 71: ...3301825 3 5 Embedded SBC Chapter 5 Installation Page 59 ...
Страница 91: ...3301825 3 5 Embedded SBC Appendix A GPIO Connection Page 79 ...
Страница 95: ...3301825 3 5 Embedded SBC Appendix B Watchdog Timer Page 83 ...
Страница 98: ...3301825 3 5 Embedded SBC Appendix C Address Mapping Page 86 ...
Страница 101: ...3301825 3 5 Embedded SBC D External AC 97 Audio CODEC Page 89 ...