B.1 About Digital I/O
The onboard GPIO or digital I/O has 4 bits (DIO1~4). 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 2 inputs and 2 outputs.
B.2 Digital I/O Programming
Assembly sample code :
mov
dx,fa31
mov
al,00
out
dx,al
mov
dx,fa32
mov
al,0c
out
dx,al
mov
dx,fa31
mov
al,0f
out
dx,al
mov
dx,fa32
in
al,dx
mov
dx,fa31
mov
al,03
out
dx,al
mov
dx,fa32
mov
al,08
out
dx,al
in
al,dx
Digital I/O
; Set DIO 0-3 to Output
; Set DIO 2-3 to High
; Set DIO 0-3 to Input
; Get DIO 0-3 status
; Set DIO 0-1 to Input, 2-3 to Output
; al = 03 => 00000011
; Set DIO 3 to High
; al = 08 => 00001000
; Get DIO 0-2 status
PICO52R Pico-ITX Board
Appendix B
Digital I/O
CN14
Pin
Signal
Pin
1
DIO 0
2
3
DIO 1
4
5
+5V
6
Signal
DIO 3
DIO 2
GND
61
Need help?
Do you have a question about the PICO52R and is the answer not in the manual?
Questions and answers