TOP Contributors

  1. MIKROE (2655 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136784 times)
  2. FAT32 Library (69980 times)
  3. Network Ethernet Library (55950 times)
  4. USB Device Library (46274 times)
  5. Network WiFi Library (41889 times)
  6. FT800 Library (41184 times)
  7. GSM click (28988 times)
  8. PID Library (26419 times)
  9. mikroSDK (26374 times)
  10. microSD click (25382 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Library

PC keyboard in Proteus

Rating:

1

Author: Istvan K

Last Updated: 2014-01-02

Package Version: 4.0.0.0

Category: Other Codes

Downloaded: 3790 times

Not followed.

License: MIT license  

* UPDATED * To try/debug (before the construction, in Proteus) such PIC programs that use the MikroC PS2 Library,
here is a solution. It uses the Proteus Virtual Terminal as input device. * UPDATED * Now for any PIC *

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "PC keyboard in Proteus" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "PC keyboard in Proteus" changes.

Do you want to report abuse regarding "PC keyboard in Proteus".

  • Information
  • Comments (3)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Library Blog

** UPDATED ** (02.01.2014, Happy New Year).
Separated libraries for the three families (pic12/16, pic12/16_Enh and pic18).
Heavily hand-optimized for speed, and to minimize the code size, stack and ram usage.
The Ps2_Key_Read_ND (no keyname display) function is also added for time-critical applications.
The example projects (see below) are also actualized.
--------------
Simply this library (named as "p*_KbSim.mcl", see the new description) must be used while the original must be omitted, then recompile the project. Big advantage of the MikroC solution (and mine too) is that not interrupt driven, so any two I/O pins can be used, in fact, the PS2_Data can even an input-only pin (eg GP3 on 12F683).

This solution is totally transparent and equal to the original PS2_Library:
- same (a bit smaller) code-footprint,
- same RAM usage (a bit less too),
- same pin definitions,
- same global variables,
- same functions with same parameters,
- same results (return values);
- so you do not need to change your program
some minor exceptions, eg not all keys (like WINDOWS), details in the documentation.


I created also two sample project (see the pictures):

the first is the simplest Ps2 program from the MikroC Ps2 help

the second, a much more complete project is a 'real' one-line LCD editor (EDLIN-like ):
- insert - overwrite mode with different cursor shapes,
- full cursor movement (LEFT-RIGHT via arrow keys, also HOME and END), BACKSPACE and DELETE.

Although this is only a demo, the source includes useful details.

Ps2_sample project (from the help file)

Ps2_sample project (from the help file)

the simplest

View full image
Ps2 LCD Editor

Ps2 LCD Editor

a more complete program

View full image

ALSO FROM THIS AUTHOR

LCD BarGraph library

6

Contains an all-in-one function which allows to create parameterized LCD bargraph(s). 8 variants, 'unlimited' width. For any pic12/16, pic12/16_enhanced and pic18.

[Learn More]

Common output functions

6

Second part of my new library collection: the common output functions, using func-pointers or a user written char-out routine. In addition, an other library with the mikroC UART1 and LCD char-outs. For all 8-bit PICs.

[Learn More]

Full LCD library set

11

Same way usable (uniformized) LCD libraries. 4- and 8-bit (and both with Busy-flag checking), 1-, 2- and 3-wire interface. Every library allows you to manage 4 LCD. For all 8-bit PIC (p16, p16e and p18).

[Learn More]