PS2 Keyboard - Error in manual & help

General discussion on mikroPascal for AVR.
Post Reply
Author
Message
extec
Posts: 10
Joined: 13 Dec 2007 15:31
Location: Portsmouth, UK

PS2 Keyboard - Error in manual & help

#1 Post by extec » 17 Dec 2007 09:52

Dear All,

I have found an error in the Pascal manual, and the compiler’s help for the PS2 keyboard.

The Pascal manual / help states:-

procedure Ps2_Init(var port : byte; clock, data : byte);

The BigAVR manual (2nd Edition 2007) shows PC0=data, and PC1=clock

So you would expect to write the following code:-

procedure Ps2_Init(PORTC,1,0);

But if you look at the examples provided by Mikroelectronica the data and clock are the other way round e.g.

procedure Ps2_Init(PORTC,0,1);

As the examples work, I can only conclude the manual & help are wrong.

Regards

Simon
My Setup: BigAVR, Mega 128, pascal V4.02

User avatar
marko.ziv
mikroElektronika team
Posts: 531
Joined: 06 Dec 2007 10:11
Contact:

#2 Post by marko.ziv » 17 Dec 2007 10:19

Thank you for your feedback.
It has been noted, and it will be included in our next release.

Post Reply

Return to “mikroPascal for AVR General”