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++

PS2 to VGA

Altera_Forum
Honored Contributor II
1,510 Views

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 

0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
425 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
425 Views

PS2 Keyboard data 

 

I try to display characters :)
0 Kudos
Altera_Forum
Honored Contributor II
425 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
425 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
425 Views

TO_BE_DONE

0 Kudos
Altera_Forum
Honored Contributor II
425 Views

Use a lookup table for the keycode translation. 

Or possibly a switch statement.
0 Kudos
Altera_Forum
Honored Contributor II
425 Views

What is this character_buffer?

0 Kudos
Reply