TOP Contributors

  1. MIKROE (2780 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139576 times)
  2. FAT32 Library (72043 times)
  3. Network Ethernet Library (57260 times)
  4. USB Device Library (47633 times)
  5. Network WiFi Library (43229 times)
  6. FT800 Library (42567 times)
  7. GSM click (29932 times)
  8. mikroSDK (28312 times)
  9. PID Library (26934 times)
  10. microSD click (26309 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: 3869 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

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]

My libraries 1 (more LCD, more Sw Uart)

5

They contain extremely simplified interface for -- max 2 LCD (write-only 4bit mode, 6 pins), -- max 2 LCD (using a HC595, 3 pins), -- max 4 Sw-Uart (1, 2 or 3 pins, CTS handshake) . Also some routines as Hex2out, Dec3out, CstrOut. A separated library for using them via funcptr. For now only for all PIC16 (PIC12). UPDATED.

[Learn More]

Memory manipulation library

5

Memory manipulation (eg sprint-like) function-collection plus some simplified arithmetic and bit-handling routine in one library. For all 8-bit PIC (pic12/16, pic12e/16e and pic18).

[Learn More]