Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Input from keyboard in loop

Hi,

I have a problem.My PWM is working fine.But now I will change the the time of the pwm fpr example from 30% to 50% t_on.

So I must leave the loop or update the loop.

I found the kbhit function but it´s not working.It is not part of the default library. So have somebody a idea how i can solve the problem or include the kbhit function.

Sure I can read the keyboard but I don´t want to stop in the loop and wait of an keyboard entry.

Only when I hit a button oder something like that i will interrupt the loop.

I use a DE0-Nano board.

I hope someone can help me