Greetings friends,
I am a student doing my Btech.EEE, I am assigned to make a project compiling smart home automation using android devices, I just need some help to convert a 8051 program to pic16F877a.
hereby in this mail I send the main program of 8051 and circuit diagram
Source down to line 46 include 8051 specific low level code and have to be rewritten for PIC. Your compiler suite (XC8, Mikro-C, CCS C or what?) has library functions to simplify access to IO ports and UART.
Did you consider to learn something about PIC programming or just looking for a volunteer to write the code for you?
May be you find help for the latter option, but it doesn't sound so well if you report your project work in a job interview...
I have ported the code to PIC16F877A. As it is your University project which you have to do to get a degree Certificate it is not good to post the project here because your Instructor or project guide may see it. If you don't have problem with me posting the project here then I will post it here. I have also sent a Private Message. reply to it.
The schematic doesn't show bluetooth module HC-05 as Proteus doesn't have that model. Virtual Terminal is used to send data to PIC in Simulation. In real hardware he has to use PIC16LF877A 93.3V device) to directly interface with BT module (3.3V device) or if he uses PIC16F877A (5V device) then he has to use voltage divider made of two resistors between the Rx pin of BT module and Tx pin of PIC. I have tested the project in hardware (EasyPIC v7) using PIC16LF877A I/P and HC-05 ad it works fine.