Electronics > FPGA

Pin like interruption on Altera FPGA

(1/1)

marcelogadotti:
Is there any way to emulate MCU interruption on FPGA using VHDL?

My application needs a high response time, sending the modification of the pin status to the UART.

Bassman59:

--- Quote from: marcelogadotti on May 11, 2021, 07:49:12 pm ---Is there any way to emulate MCU interruption on FPGA using VHDL?

My application needs a high response time, sending the modification of the pin status to the UART.

--- End quote ---

Logic can respond to a change in a signal -- an "interrupt" -- pretty much immediately.

marcelogadotti:
I think I will use AND logic to check any pin change and trigger an UART event to send the value, like interruptions.

Palmitoxico:
The concept of interrupts only makes sense when we are talking about something executing code. FPGAs typically don't execute 'code', unless you are implementing a MCU softcore into it.

hamster_nz:
The UART will be much slower than the FPGA, so you run a risk of missing transitions, or at least introducing latency.

Consider time stamping the events at putting them into a FIFO to be streamed through the UART.

Oh, and pay due attention.to synchonizing and debouncing your inputs.

Navigation

[0] Message Index

There was an error while thanking
Thanking...
Go to full version