Configuration
LatticeMico GPIO
7
Figure 4: LatticeMico GPIO Usage with IRQ (Level Triggered)
Table 1: GPIO UI Parameters
Dialog Box Option
Description
Allowable Values
Default Value
Instance Name
Specifies the name of the GPIO instance. Alphanumeric and underscores
gpio
Base Address
Specifies the base address for the
device. The minimum byte alignment is
0X80.
0X80000000 – 0XFFFFFF80
If other components are included
in the platform, the range of
allowable values will vary.
0X80000000
Port Types
Output Ports Only
Specifies the transfer mode of PIO ports
as output only.
selected|not selected
selected
Input Ports Only
Specifies the transfer mode of PIO ports
as input only.
selected|not selected
not selected
Tristate Ports
Specifies the transfer mode of PIO ports
as tristate only.
selected|not selected
not selected
Both Input and Output
Specifies the transfer mode of PIO ports
as input and output.
selected|not selected
not selected
Port Width
Data Width
Specifies the width of the I/O port, in bits. 1 to 32
1
PIO_DATA
Read
Write
PIO_TRI
PIO_IO [
n
- 1:0]
IRQ
Control
Address
Data
Direction
W
I
S
H
B
O
N
E
b
u
s
Interrupt
mask
Level
detection