I have two input pin as buttons connected to hps and their status are the input to a component in fpga, they work correctly.
The others 3 output pins, connected to hps as leds, are controlled by a component of the fpga managed by a NIOS routine, they doesn't work.
I manage the leds by a custom component programmed by Avalon Memory Mapped Interface,
its output is the status of single led ( off, on, slow blinking, fast blinking and so on)
They stay permanently in ON state, independently to the the status programmed by software.
in the attach, I have extracted the vhdl code of relative to the connection of the leds (not work) and the keys (working).
Thankyou for the reply.
I'm using a CV 5CSEBA4U23 on a custom board.
This issue is to help me to understand how drive a led connected to an hps pin by a fpga's routine.
On Pheripheral_Pin/MuxTable I have set as LOANIO the pins connected to the leds on the hw board.
They are LOANIO40, LOANIO44 and LOANIO53 mapped respectively to PIN_H13, PIN_B12 and PIN_A20.
I should like to know the error of the configuration of the loanIO pin related to the led section.
Thanks in advance
How fast is the LED blinking frequency (Controlled by NIOS delay), normally people see the LED on because it is blinking very fast. As long as nothing else is blinking the lED and you see it is always ON, we suspect the Code in NIOS II. How long is the delay?
I believe that led management has created a bit of confusion.
To avoid management problems with the software, I have directly driven the LEDs with a fixed value, some at 1 and the others at 0.
In my code I wrote:
hps_0_h2f_loan_io_out(53) <= '1' ; -- Red
hps_0_h2f_loan_io_out(40) <= '0' ; -- Yellow
hps_0_h2f_loan_io_out(44) <= '1' ; -- Green
Also in this way all the LEDs are on.
I want to know if I can use pins connected to the HPS section both as input and output in LOAN mode.
In my project the pins connected in HPS and used as input in LOAN mode work correctly,
the HPS pins used as output in LOAN mode do not work.
Can you check my code attached?
Is my code for the HPS pin section in LOAN mode written correctly or does it wrong for output pins?
Thankyou in advance, i looking forward your news.
have you any suggestion?
I haven't solve the problem yet!
I should like to know the correct way to use the loan pin of hps section in output mode.
Which is the right code to configure them in output mode?
I looking forward your news!