CAPA315 3.5
” Board
Digital I/O
57
Appendix B
Digital I/O
B.1 About Digital I/O
The onboard GPIO or digital I/O has 8 bits (DIO1~8). Each bit can be set to function as input or
output by software programming. In default, all pins are pulled high with +5V level (according
to main power). The BIOS default settings are 4 inputs and 4 outputs.
CN5
B.2 Digital I/O Programming
Assembly sample code :
mov
dx,fa31
; Set DIO 0-7 to Output
mov
al,00
out
dx,al
mov
dx,fa32
; Set DIO 4-7 to High
mov
al,f0
out
dx,al
mov
dx,fa31
; Set DIO 0-7 to Input
mov
al,ff
out
dx,al
mov
dx,fa32
; Get DIO 0-7 status
in
al,dx
mov
dx,fa31
; Set DIO 0-4 to Input, 5-7 to Output
mov
al,1f
; al = 1F => 00011111
out
dx,al
mov
dx,fa32
; Set DIO 6 to High
mov
al,40
; al = 40 => 01000000
out
dx,al
in
al,dx
; Get DIO 0-7 status
Pin
Signal
Pin
Signal
1
DI1
2
DO8
3
DI2
4
DO7
5
DI3
6
DO6
7
DI4
8
DO5
9
+5V
10
GND
Содержание CAPA315
Страница 1: ...CAPA315 Intel Pentium Processor N4200 and Celeron Processor N3350 3 5 Board User s Manual ...
Страница 6: ...vi This page is intentionally left blank ...
Страница 10: ...CAPA315 3 5 Board 4 Introduction This page is intentionally left blank ...
Страница 12: ...CAPA315 3 5 Board 6 Board and Pin Assignments Bottom View Side View ...
Страница 13: ...CAPA315 3 5 Board Board and Pin Assignments 7 2 2 Board Layout Top View Side View ...
Страница 14: ...CAPA315 3 5 Board 8 Board and Pin Assignments Bottom View ...
Страница 26: ...CAPA315 3 5 Board 20 Board and Pin Assignments This page is intentionally left blank ...
Страница 28: ...CAPA315 3 5 Board 22 Hardware Description 3 4 I O Port Address Map ...
Страница 30: ...CAPA315 3 5 Board 24 Hardware Description ...
Страница 31: ...CAPA315 3 5 Board Hardware Description 25 ...
Страница 32: ...CAPA315 3 5 Board 26 Hardware Description ...
Страница 33: ...CAPA315 3 5 Board Hardware Description 27 ...
Страница 34: ...CAPA315 3 5 Board 28 Hardware Description 3 6 Memory Map The memory mapping list is shown as follows ...
Страница 62: ...CAPA315 3 5 Board 56 Watchdog Timer This page is intentionally left blank ...
Страница 64: ...CAPA315 3 5 Board 58 Digital I O This page is intentionally left blank ...