Forum Discussion
Altera_Forum
Honored Contributor
12 years agoNios II PS2 Keyboard
In QSYS I added a PS/2 Controller IP Core and wired it in Verilog. My code: #include <stdio.h># include <stdlib.h># include "system.h"
# include <altera_up_avalon_ps2.h># include <altera_up_ps...
Altera_Forum
Honored Contributor
12 years agoCan you help me?
I have a problem with ps2 keyboard interface. I used a ps2 controller and used code C in Nios ii for connect to PS2 keyboard But when I try to connected and detected device by instruction " printf("Detected device: %d\n", ps2->device_type);" then result is: "Detected device: -1". what wrong with my project? Please help me.