54 SBC330 3U VPX Single Board Computer
Publication No. SBC330-0HH/3
6.5.3 GPIO direction register
This
register
sets
the
direction
of
each
individual
bit.
A
‘1’
in
this
register
indicates
that
the
I/O
line
is
an
output;
a
‘0’
indicates
the
line
is
an
input.
At
power
up,
the
default
FPGA
code
sets
this
register
to
0x00,
so
the
I/O
lines
are
all
inputs.
If
the
GPIO
lines
are
set
up
as
inputs,
they
can
be
added
into
the
Interrupt
register
to
act
as
interrupts.
A
bit
in
the
Miscellaneous
Functions
register
determines
whether
the
GPIO
bits
are
seen
as
interrupts.
The
GPIO
lines
are
masked
in
the
same
way
as
the
other
interrupts.
6.5.4 GPIO output register
Chip
Select
CS2
Offset
0x005C
Reset
value
0x00
LAD Bit
Reg Bit
R/W
Description
15
0
R/W
GPIO(0) direction. ‘0’ = Input, ‘1’ = Output
14
1
R/W
GPIO(1) direction. ‘0’ = Input, ‘1’ = Output
13
2
R/W
GPIO(2) direction. ‘0’ = Input, ‘1’ = Output
12
3
R/W
GPIO(3) direction. ‘0’ = Input, ‘1’ = Output
11
4
R/W
GPIO(4) direction. ‘0’ = Input, ‘1’ = Output
10
5
R/W
GPIO(5) direction. ‘0’ = Input, ‘1’ = Output
9
6
R/W
GPIO(6) direction. ‘0’ = Input, ‘1’ = Output
8
7
R/W
GPIO(7) direction. ‘0’ = Input, ‘1’ = Output
Chip
Select
CS2
Offset
0x0060
Reset
value
0x00
LAD Bit
Reg Bit
R/W
Description
15
0
R/W
GPIO(0) output data
14
1
R/W
GPIO(1) output data
13
2
R/W
GPIO(2) output data
12
3
R/W
GPIO(3) output data
11
4
R/W
GPIO(4) output data
10
5
R/W
GPIO(5) output data
9
6
R/W
GPIO(6) output data
8
7
R/W
GPIO(7) output data