Forum Discussion
Altera_Forum
Honored Contributor
14 years agoPS/2 Keyboard with C
Hello, i am trying to make a PS/2 Keyboard work with my FPGA and C language. I tried to capture sequences from the keyboard by using the following code : while(1)
{
...
Altera_Forum
Honored Contributor
14 years agoWhat ps2Data is? Is it a pointer to the rx register of your ps2 serial port?
Why do you read it 4 times? And, what's the meaning of if(*ps2Data!=1) ? Usually you need to test a "rx ready" bit on rx status register in order to know if new data word is available.