help about the simulation project interfacing PIC16F877A with esp8266

Jean Marck
Jean Marck's picture
Offline
Joined: Sep 08, 2017
help about the simulation project interfacing PIC16F877A with esp8266
September 8, 2017 - 11:33am

when I run the simulation nothing happens on the virtual terminal.help me please

Jean Marck
Jean Marck's picture
Offline
Joined: Sep 08, 2017
https://circuitdigest.com
September 8, 2017 - 11:43am
B.Aswinth Raj
B.Aswinth Raj's picture
Offline
Joined: Aug 16, 2016
Since your LCD is working
September 8, 2017 - 2:24pm

Since your LCD is working properly I assume that you were able to successfully compile the code and obtain the hex file.

The reason for your Virtual terminal to show nothing might be due to some wrong settings in with your baudrate or Crystal frequency.

Kindly check the following

1. Have you changed any parameters from the original code?

2. Ensure baudrate is set as 9600 in virtual terminal

3. The crystal frequency of both your external Crystal and your MCU both should be set as 20Mhz.

If it does not work still, try the simple USART program from here

https://circuitdigest.com/microcontroller-projects/uart-communication-us...

and check if your virtual terminal could display something 

Jean Marck
Jean Marck's picture
Offline
Joined: Sep 08, 2017
I tried with the simple usart
September 8, 2017 - 5:29pm

I tried with the simple usart program, it works very well

B.Aswinth Raj
B.Aswinth Raj's picture
Offline
Joined: Aug 16, 2016
Hi Jean,
September 13, 2017 - 1:21pm

Hi Jean,

 

If the USART prgram is working then the problem should be with how you compiled the pogram. Did you make any changes to the code before actually compiling it?

Maybe I could share the hex file to corss check the same,if at all it might help!

zhouying
zhouying's picture
Offline
Joined: Sep 19, 2017
i am facing the same problem
September 19, 2017 - 10:05am

i am facing the same problem as well. instead of AT the virtual terminal display Ÿ. Never change the code, baudrate is set as 9600 in virtual terminal, crystal frequency of external Crystal and MCU both are set as 20Mhz. can you send the hex file ? 

tq :)

B.Aswinth Raj
B.Aswinth Raj's picture
Offline
Joined: Aug 16, 2016
Hex file for the progrem.
September 21, 2017 - 2:37pm

You can find the hex file from here.

https://github.com/Aswinth-raj/Interfacing-PIC-with-ESP8266

Kindly let me know if this works, so that I can tail back to where the bug is. 

 

Thanks,

Aswinth

zhouying
zhouying's picture
Offline
Joined: Sep 19, 2017
not working
September 21, 2017 - 11:50pm

tested but still unknown character displayed instead of AT. can you share the proteus file as well ? 

im planning to use an esp8266 (master) to start 4 pic timers interfacing with an esp8266 (slave) each at the same time wirelessly. may i know if esp8266 is capable of doing this task ?

appreciate your guidance !