Discussion in "PIC Microcontroller Discussion" started by    pravin_pk    Apr 3, 2014.
Thu Apr 03 2014, 04:41 AM
at coding-what's the purpose for keyboard operation?
-'pc control software' will it work for PIC16F877A?
-actual working of software?
Thu Apr 03 2014, 06:53 AM
1. Keyboard was used for Windows media player control
2. Yes PC control software can work with PIC you need to send proper data to the software which is 1 byte data only
3. See source code for working. basically one byte data received from serial port is mapped to keys or mouse movements.
Fri Apr 04 2014, 05:25 AM
-sir can we replace your 8051 code with PIC 16f877a instructions??
will it work??

-in mouse operation
"CJNE a,#0CH"
What does "0CH" specify??
Fri Apr 04 2014, 05:53 AM
You can use PIC instead of 8051 but might need to change the code as it is very much time and controller dependent.

CJNE is a compare instruction. Here I am comparing what I received from IR remote (Command) with register A. I am comparing with number 0CH which is 12 in decimal and its a command for standby or power button in TV remote. So when you press power button IR send 12 as command and in software when power button is pressed you switch between mouse mode and keyboard mode.
Fri Apr 04 2014, 05:21 PM

-'pc control software' will it work for PIC16F877A?
-actual working of software?


To use a 16F877a will mean big changes.
Obviously you will need to change the 89c2051 to a 16F877a and change the circuit to suit it.

Then you must write your own code for the 16F877a .
To do that you must be competent in coding for the 16F877a and fully understand how Ajay's code works.

Unless you have a stack of 16F877a chips I see no point in changing

[ Edited Fri Apr 04 2014, 07:06 PM ]
Sat Apr 05 2014, 01:14 AM
Thank u sir we will do it according to that
Sat Apr 05 2014, 03:19 AM
"mskip3: CJNE a,#04H,mskip4
mov a,#34H
acall tx
what these value determine '31H, 32H, 33H, 34H, 35H, 36H, 37H, 38H'....?
Mon Apr 07 2014, 01:10 AM

what these value determine '31H, 32H, 33H, 34H, 35H, 36H, 37H, 38H'....?


These are the commands that is sent from controller to GUI application. It compares these values and do the programmed job.
Mon Apr 07 2014, 07:00 AM

[ Edited Thu Apr 10 2014, 02:16 AM ]
Mon Apr 07 2014, 09:13 AM
are you trying to port it to PIC? I suggest you first print whatever data received from TV remote. only then do rest of checking and stuff. get the data store it in ram and print using uart. I also did the same while writing this code. one you get right decoded data you are good to go with rest of the coding.

Get Social


Powered by e107 Forum System


Wed Mar 25 2020, 09:39 AM
Sir kindly send the code file i2c for 8051
Fri Mar 13 2020, 06:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 08:55 AM
how can get hadwere of this project
Sat Mar 07 2020, 12:11 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 11:58 AM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?
Sat Feb 01 2020, 05:12 AM
Pearl Olin
Wed Jan 22 2020, 01:16 PM
I m getting errors while simulation process during interfacing socket output and lcd... Can i get the report of ur project which is same as us.
Tue Jan 14 2020, 02:08 AM
shubham kharade
when i am trying to simulate the program in Proteus 8 professional, I am getting some errors as cannot find module file dhtxx.md can u help me
Tue Dec 17 2019, 08:44 AM
hello..i am programming industrial timer using 8051 with 24lc64 eeprom. i have query in storing the 3 diff value in eeprom with enter button. can anyone share c code ?
Tue Dec 17 2019, 05:30 AM
Hello. Can anyone share the code in Bascon and scheme in Proteus?



Thu Apr 09 2020, 12:05 AM
Wed Apr 08 2020, 11:08 PM
Wed Apr 08 2020, 04:57 PM
Wed Apr 08 2020, 03:38 AM
Mon Apr 06 2020, 07:54 PM
Mon Apr 06 2020, 09:13 AM
Sun Apr 05 2020, 10:33 PM
Sun Apr 05 2020, 03:26 AM


Guests: 48, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 01:37 AM

Members: 38149
Newest member: ukkorikerist
Forum Activity
PHANTOM28 Avatar
Posted By PHANTOM28
Fri Feb 28 2020, 10:25 AM
Hi.I hope you all can help me. I am relatively ne...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Feb 21 2020, 05:05 PM
ajay_bhargav Avatar
Posted By ajay_bhargav
Fri Feb 21 2020, 04:45 AM
Yes you can do that.1. Create a channel @Thingspea...
ananyagupta Avatar
Posted By ananyagupta
Thu Feb 20 2020, 03:58 AM
With regards to the particular characters sent to ...
sarrahjuzar Avatar
Posted By sarrahjuzar
Wed Feb 19 2020, 04:24 AM
I have a gsm module sim900a and dht22 connected to...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Feb 18 2020, 04:52 PM
figureyang Avatar
Posted By figureyang
Tue Feb 18 2020, 04:59 AM
figureyang Avatar
Posted By figureyang
Tue Feb 18 2020, 04:50 AM
wounder Avatar
Posted By wounder
Mon Feb 10 2020, 03:32 AM
From below sample code for nuvoton 8051 timer0 mod...
Just4Fun Avatar
Posted By Just4Fun
Sat Feb 01 2020, 09:20 AM
If you want to use a CH55x MCU there isn't any adv...