Discussion in "PIC Microcontroller Discussion" started by    pravin_pk    Apr 3, 2014.
Thu Apr 03 2014, 02:11 pm
#1
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, 04:23 pm
#2
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, 02:55 pm
#3
-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, 03:23 pm
#4
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.
Sat Apr 05 2014, 02:51 am
#5


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

pravin_pk


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 Sat Apr 05 2014, 04:36 am ]
Sat Apr 05 2014, 10:44 am
#6
Thank u sir we will do it according to that
Sat Apr 05 2014, 12:49 pm
#7
"mskip3: CJNE a,#04H,mskip4
mov a,#34H
acall tx
ret"
what these value determine '31H, 32H, 33H, 34H, 35H, 36H, 37H, 38H'....?
Mon Apr 07 2014, 10:40 am
#8

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

pravin_pk



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, 04:30 pm
#9





[ Edited Thu Apr 10 2014, 11:46 am ]
Mon Apr 07 2014, 06:43 pm
#10
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

Information

Powered by e107 Forum System

Downloads

Comments

Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am
utaletxcyw
Wed Apr 17 2024, 10:21 am
Anthonyvab
Wed Apr 17 2024, 08:48 am
RobertCix
Wed Apr 17 2024, 06:46 am