Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

Input from keyboard in loop

Altera_Forum
Honored Contributor II
1,311 Views

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
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
277 Views

Which keyboard are you trying to read from?

0 Kudos
Altera_Forum
Honored Contributor II
277 Views

from the normal Keyboard of my Laptop

0 Kudos
Reply