nios2_uc nios2_uc_pio_MATRIX_s1_altera_avalon_pio0x00000000 0x0 32 registers DATA Data Reading from data returns the value present at the input ports. If the PIO core hardware is configured in output-only mode, reading from data returns an undefined value. Writing to data stores the value to a register that drives the output ports. If the PIO core hardware is configured in input-only mode, writing to data has no effect. If the PIO core hardware is in bidirectional mode, the registered value appears on an output port only when the corresponding bit in the direction register is set to 1 (output). 0x0 32 read-write 0x0 0xffffffff data Reads: Data value currently on PIO inputs. Writes: New value to drive on PIO outputs. 0x0 32 read-write DIRECTION Direction The direction register controls the data direction for each PIO port, assuming the port is bidirectional. When bit n in direction is set to 1, port n drives out the value in the corresponding bit of the data register The direction register only exists when the PIO core hardware is configured in bidirectional mode. The mode (input, output, or bidirectional) is specified at system generation time, and cannot be changed at runtime. In input-only or output-only mode, the direction register does not exist. In this case, reading direction returns an undefined value, writing direction has no effect. After reset, all bits of direction are 0, so that all bidirectional I/O ports are configured as inputs. If those PIO ports are connected to device pins, the pins are held in a high-impedance state. In bi-directional mode, to change the direction of the PIO port, reprogram the direction register. 0x4 32 read-write 0x0 0xffffffff direction Individual direction control for each I/O port. A value of 0 sets the direction to input; 1 sets the direction to output. 0x0 32 read-write IRQ_MASK Interrupt mask Setting a bit in the interruptmask register to 1 enables interrupts for the corresponding PIO input port. Interrupt behavior depends on the hardware configuration of the PIO core. The interruptmask register only exists when the hardware is configured to generate IRQs. If the core cannot generate IRQs, reading interruptmask returns an undefined value, and writing to interruptmask has no effect. After reset, all bits of interruptmask are zero, so that interrupts are disabled for all PIO ports. 0x8 32 read-write 0x0 0xffffffff interruptmask IRQ enable/disable for each input port. Setting a bit to 1 enables interrupts for the corresponding port. 0x0 32 read-write EDGE_CAP Edge capture Bit n in the edgecapture register is set to 1 whenever an edge is detected on input port n. An Avalon-MM master peripheral can read the edgecapture register to determine if an edge has occurred on any of the PIO input ports. If the option Enable bit-clearing for edge capture register is turned off, writing any value to the edgecapture register clears all bits in the register. Otherwise, writing a 1 to a particular bit in the register clears only that bit. The type of edge(s) to detect is fixed in hardware at system generation time. The edgecapture register only exists when the hardware is configured to capture edges. If the core is not configured to capture edges, reading from edgecapture returns an undefined value, and writing to edgecapture has no effect. 0xc 32 read-write 0x0 0xffffffff edgecapture Edge detection for each input port. 0x0 32 read-write SET_BIT Outset You can use the outset register to set individual bits of the output port. For example, to set bit 6 of the output port, write 0x40 to the outset register. This register is only present when the option Enable individual bit set/clear output register is turned on. 0x10 32 write-only 0x0 0xffffffff outset Specifies which bit of the output port to set. 0x0 32 write-only CLEAR_BITS Outclear You can use the outclear register to clear individual bits of the output port. For example, writing 0x08 to the outclear register clears bit 3 of the output port. This register is only present when the option Enable individual bit set/clear output register is turned on. 0x14 32 write-only 0x0 0xffffffff outclear Specifies which output bit to clear. 0x0 32 write-only nios2_uc_pio_LED_s1_altera_avalon_pio0x00000000 0x0 32 registers DATA Data Reading from data returns the value present at the input ports. If the PIO core hardware is configured in output-only mode, reading from data returns an undefined value. Writing to data stores the value to a register that drives the output ports. If the PIO core hardware is configured in input-only mode, writing to data has no effect. If the PIO core hardware is in bidirectional mode, the registered value appears on an output port only when the corresponding bit in the direction register is set to 1 (output). 0x0 32 read-write 0x0 0xffffffff data Reads: Data value currently on PIO inputs. Writes: New value to drive on PIO outputs. 0x0 32 read-write DIRECTION Direction The direction register controls the data direction for each PIO port, assuming the port is bidirectional. When bit n in direction is set to 1, port n drives out the value in the corresponding bit of the data register The direction register only exists when the PIO core hardware is configured in bidirectional mode. The mode (input, output, or bidirectional) is specified at system generation time, and cannot be changed at runtime. In input-only or output-only mode, the direction register does not exist. In this case, reading direction returns an undefined value, writing direction has no effect. After reset, all bits of direction are 0, so that all bidirectional I/O ports are configured as inputs. If those PIO ports are connected to device pins, the pins are held in a high-impedance state. In bi-directional mode, to change the direction of the PIO port, reprogram the direction register. 0x4 32 read-write 0x0 0xffffffff direction Individual direction control for each I/O port. A value of 0 sets the direction to input; 1 sets the direction to output. 0x0 32 read-write IRQ_MASK Interrupt mask Setting a bit in the interruptmask register to 1 enables interrupts for the corresponding PIO input port. Interrupt behavior depends on the hardware configuration of the PIO core. The interruptmask register only exists when the hardware is configured to generate IRQs. If the core cannot generate IRQs, reading interruptmask returns an undefined value, and writing to interruptmask has no effect. After reset, all bits of interruptmask are zero, so that interrupts are disabled for all PIO ports. 0x8 32 read-write 0x0 0xffffffff interruptmask IRQ enable/disable for each input port. Setting a bit to 1 enables interrupts for the corresponding port. 0x0 32 read-write EDGE_CAP Edge capture Bit n in the edgecapture register is set to 1 whenever an edge is detected on input port n. An Avalon-MM master peripheral can read the edgecapture register to determine if an edge has occurred on any of the PIO input ports. If the option Enable bit-clearing for edge capture register is turned off, writing any value to the edgecapture register clears all bits in the register. Otherwise, writing a 1 to a particular bit in the register clears only that bit. The type of edge(s) to detect is fixed in hardware at system generation time. The edgecapture register only exists when the hardware is configured to capture edges. If the core is not configured to capture edges, reading from edgecapture returns an undefined value, and writing to edgecapture has no effect. 0xc 32 read-write 0x0 0xffffffff edgecapture Edge detection for each input port. 0x0 32 read-write SET_BIT Outset You can use the outset register to set individual bits of the output port. For example, to set bit 6 of the output port, write 0x40 to the outset register. This register is only present when the option Enable individual bit set/clear output register is turned on. 0x10 32 write-only 0x0 0xffffffff outset Specifies which bit of the output port to set. 0x0 32 write-only CLEAR_BITS Outclear You can use the outclear register to clear individual bits of the output port. For example, writing 0x08 to the outclear register clears bit 3 of the output port. This register is only present when the option Enable individual bit set/clear output register is turned on. 0x14 32 write-only 0x0 0xffffffff outclear Specifies which output bit to clear. 0x0 32 write-only nios2_uc_pio_BUTTON_s1_altera_avalon_pio0x00000000 0x0 32 registers DATA Data Reading from data returns the value present at the input ports. If the PIO core hardware is configured in output-only mode, reading from data returns an undefined value. Writing to data stores the value to a register that drives the output ports. If the PIO core hardware is configured in input-only mode, writing to data has no effect. If the PIO core hardware is in bidirectional mode, the registered value appears on an output port only when the corresponding bit in the direction register is set to 1 (output). 0x0 32 read-write 0x0 0xffffffff data Reads: Data value currently on PIO inputs. Writes: New value to drive on PIO outputs. 0x0 32 read-write DIRECTION Direction The direction register controls the data direction for each PIO port, assuming the port is bidirectional. When bit n in direction is set to 1, port n drives out the value in the corresponding bit of the data register The direction register only exists when the PIO core hardware is configured in bidirectional mode. The mode (input, output, or bidirectional) is specified at system generation time, and cannot be changed at runtime. In input-only or output-only mode, the direction register does not exist. In this case, reading direction returns an undefined value, writing direction has no effect. After reset, all bits of direction are 0, so that all bidirectional I/O ports are configured as inputs. If those PIO ports are connected to device pins, the pins are held in a high-impedance state. In bi-directional mode, to change the direction of the PIO port, reprogram the direction register. 0x4 32 read-write 0x0 0xffffffff direction Individual direction control for each I/O port. A value of 0 sets the direction to input; 1 sets the direction to output. 0x0 32 read-write IRQ_MASK Interrupt mask Setting a bit in the interruptmask register to 1 enables interrupts for the corresponding PIO input port. Interrupt behavior depends on the hardware configuration of the PIO core. The interruptmask register only exists when the hardware is configured to generate IRQs. If the core cannot generate IRQs, reading interruptmask returns an undefined value, and writing to interruptmask has no effect. After reset, all bits of interruptmask are zero, so that interrupts are disabled for all PIO ports. 0x8 32 read-write 0x0 0xffffffff interruptmask IRQ enable/disable for each input port. Setting a bit to 1 enables interrupts for the corresponding port. 0x0 32 read-write EDGE_CAP Edge capture Bit n in the edgecapture register is set to 1 whenever an edge is detected on input port n. An Avalon-MM master peripheral can read the edgecapture register to determine if an edge has occurred on any of the PIO input ports. If the option Enable bit-clearing for edge capture register is turned off, writing any value to the edgecapture register clears all bits in the register. Otherwise, writing a 1 to a particular bit in the register clears only that bit. The type of edge(s) to detect is fixed in hardware at system generation time. The edgecapture register only exists when the hardware is configured to capture edges. If the core is not configured to capture edges, reading from edgecapture returns an undefined value, and writing to edgecapture has no effect. 0xc 32 read-write 0x0 0xffffffff edgecapture Edge detection for each input port. 0x0 32 read-write SET_BIT Outset You can use the outset register to set individual bits of the output port. For example, to set bit 6 of the output port, write 0x40 to the outset register. This register is only present when the option Enable individual bit set/clear output register is turned on. 0x10 32 write-only 0x0 0xffffffff outset Specifies which bit of the output port to set. 0x0 32 write-only CLEAR_BITS Outclear You can use the outclear register to clear individual bits of the output port. For example, writing 0x08 to the outclear register clears bit 3 of the output port. This register is only present when the option Enable individual bit set/clear output register is turned on. 0x14 32 write-only 0x0 0xffffffff outclear Specifies which output bit to clear. 0x0 32 write-only nios2_uc_jtag_uart_avalon_jtag_slave_altera_avalon_jtag_uart0x00000000 0x0 8 registers DATA Data Embedded software accesses the read and write FIFOs via the data register. A read from the data register returns the first character from the FIFO (if one is available) in the DATA field. Reading also returns information about the number of characters remaining in the FIFO in the RAVAIL field. A write to the data register stores the value of the DATA field in the write FIFO. If the write FIFO is full, the character is lost. 0x0 32 read-write 0x0 0xffffffff data The value to transfer to/from the JTAG core. When writing, the DATA field holds a character to be written to the write FIFO. When reading, the DATA field holds a character read from the read FIFO. 0x0 8 read-write rvalid Indicates whether the DATA field is valid. If RVALID=1, the DATA field is valid, otherwise DATA is undefined. 0xf 1 read-only ravail The number of characters remaining in the read FIFO (after the current read). 0x10 16 read-only CONTROL Control Embedded software controls the JTAG UART core's interrupt generation and reads status information via the control register. A read from the control register returns the status of the read and write FIFOs. Writes to the register can be used to enable/disable interrupts, or clear the AC bit. 0x4 32 read-write 0x0 0xffffffff re Interrupt-enable bit for read interrupts. 0x0 1 read-write we Interrupt-enable bit for write interrupts 0x1 1 read-write ri Indicates that the read interrupt is pending. 0x8 1 read-only wi Indicates that the write interrupt is pending. 0x9 1 read-only ac Indicates that there has been JTAG activity since the bit was cleared. Writing 1 to AC clears it to 0. 0xa 1 read-write wspace The number of spaces available in the write FIFO 0x10 16 read-only