problem with 8051,please help!!!

Status
Not open for further replies.

micro12345

Newbie level 2
Joined
Oct 6, 2014
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
16
is not far Regards,
I would ask if anyone knows to help me, I need a program that will receive data TX / RX input and print them on a 7-segment display comon anod.
In my case the second microcontroller (AT89c2051) will send a serial command to count 0 to 999, as my microcontroller (AT89c2051) has to be completed and show it on three 7-segment display.
thank you in advance

 
Last edited by a moderator:

How will the master microcontroller send data to the second microcontroller(UART/synchronous data transfer)?
How will the slave microcontroller(receiving the data) will send the acknowledgement that it has received the data?
 

Regards udayan92.
Master microcontroller sends data via UART communication, his only task is to send a program that will command the slave microcontroller that starts counting from 0 to 999. Acknowledgement that it has received the data is not required.
 

What is the command that is sent by Master through UART to Slave ? RUN ? START ? Once the command is received slave starts counting from 0 to 999 and then resets to 0 ?
 

you are having a schematic and you need a program for interfacing, why dont you try to write yourself ?
did you ever tried ?
 

You can always start by writing the 3-digit counter and verify that it is working. If it counts correctly from 000 to 999. Then write the UART communication part to receive text from another mcu.

You can either test it with proteus sim using the "virtual terminal" to make sure that it is working properly by sending the command text to it to start the counting sequence.

After both are working, you can start writing UART program for the master and once working, then just connect the master Tx to the Rx of slave and vice versa.

Shouldn't be that hard I guess. I have done the same using 16F886 connected to 4-digit LED display in PicBasicPro language.

If you dont mind doing your project in assenbly language, you can refer my thread here. Starting from post #15, is a 2-digit LED display program. Enjoy.

https://www.electro-tech-online.com/threads/learning-8051.134119/

Allen
 
Last edited:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…