LatticeMico32 GPIO      

The LatticeMico32 general-purpose input/output core (GPIO) provides a memory-mapped interface between a WISHBONE slave port and general-purpose I/O ports. The I/O ports can connect to either on-chip or off-chip logic.

*If the data sheet fails to open, see the note at the bottom of this page.

Revision History

 

Version

Description

3.1 (7.2)

Updated the Edge Capture Register clean method

Made IRQ Mask register readable

3.0 (7.0 SP2)

Cleaned up code. No function change.

1.0

Initial release.

Dialog Box Parameters

Parameter

Description

Instance Name

Specifies the name of the GPIO instance. Alphanumeric values and underscores are supported. The default is gpio.

Base Address

Specifies the base address for the device. The minimum boundary alignment is 0X80. Supported values are 0X80000000 to 0XFFFFFF80. The default is 0x80000000. If other components are included in the platform, the allowable values will vary.

Port Types

Output Ports Only

Specifies the transfer mode of PIO ports as output only. This option is selected by default.

Input Ports Only

Specifies the transfer mode of PIO ports as input only. This option is deselected by default.

Tristate Ports

Specifies the transfer mode of PIO ports as tristate only. This option is deselected by default.

Both Input and Output

Specifies the transfer mode of PIO ports as both input and output. This option is deselected by default.

Port Width

Data Width

Specifies the width of the I/O port, in bits. Supported values are 1 to 32. The default is 1.

Input Width

Specifies the input data bus width for an independent input/output GPIO, in bits. Supported values are 1 to 32. The default is 1.

Output Width

Specifies the output data bus width for an independent input/output GPIO, in bits. Supported values are 1 to 32. The default is 1.

IRQ Mode

IRQ Mode

Provides IRQ signal output when a specified event occurs on input ports. This option is deselected by default.

Level

Generates an IRQ whenever a specific input is high and interrupts have been enabled for that input in the IRQ-MASK register. This option is deselected by default.

Edge

Generates an IRQ whenever a specific bit in the edge capture register is high and interrupts have been enabled for that bit in the IRQ-MASK register. This option is selected by default.

Edge Response

Either Edge

Generates an IRQ on either low-to-high or high-to-low transitions. This option is deselected by default.

Positive Edge

Generates an IRQ on low-to-high transitions. This option is selected by default.

Negative Edge

Generates an IRQ on high-to-low transitions. This option is deselected by default.

 

Note: If the data sheet fails to open, click on the Available Components toolbar, and then click the note button.