90 likes | 302 Views
ECT 358. Lecture 22 MicroBlaze Peripherals. Falling down doesn’t make you a failure, but staying down does. For a just man falleth seven times, and riseth up again. Proverbs 24:16a. MicroBlaze Peripherals.
E N D
ECT 358 Lecture 22 MicroBlaze Peripherals
Falling down doesn’t make you a failure, but staying down does. For a just man falleth seven times, and riseth up again. Proverbs 24:16a
MicroBlaze Peripherals • All peripherals are implemented on the FPGA fabric and operate off the on-chip peripheral bus (OPB).
Peripheral Types • OPB UARTLITE (simple RS232 transceiver) • OPB UART16550 (advanced RS232 XCVR) • OPB GPIO (General Purpose I/O) • OPB TIMEBASE WDT • OPB TIMER • OPB BRAM IF CNTRLR
OPB GPIO • General purpose input/output interface to a 32-bit On-Chip Peripheral Bus (OPB). • Number of GPIO bits configurable from 1-32 bits • Each GPIO bit dynamically programmable as input or output • Can be configured as inputs-only on a per channel basis to reduce resource utilization (extra tri-state buffers) • Ports for both 3-state and independent input output • Independent reset values for each bit of all registers • Optional interrupt request generation on any input transition • Configurable as single or dual GPIO channels • The channel width is configurable and when both channels are enabled, the channel width remains the same for both.
OPB TIMER • Two programmable interval timers with interrupt generation, and event capture capabilities • Configurable counter width up to 32 bits • Pulse Width Modulation (PWM) output • Three Modes (Generate, Capture, PWM) • Generate – Count Up/Down Reload Interrupt Source • Capture – Stores counter value with external signal • PWM – Specify Frequency and Duty Cycle