Forum Discussion

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

PS2 to VGA

Hey there.

I got a Altera Cyclone III DE0 Board, and I try to write a Program to read the PS2 data and write it to the VGA display.

I also got a fully functional Media Computer to write my Program with Nios II in C.

But I'm new in C programming and I spent a whole day, but I can't figure out how to realize my Project (PS2 --> VGA)

I would be thankful if you could give me some hints, how to write the C code.

Thanks

Marcel

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    PS2 = keyboard or mouse? What a u trying to display on the screen, character, mouse co-ordinates, or ...?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You need to use character_buffer, check out Altera University IP suite

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You will also need to look up the keyboard codes - a PS2 keyboard gives you keycodes, not characters.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Use a lookup table for the keycode translation.

    Or possibly a switch statement.