Proteus Serial Communication

2020. 3. 6. 16:37카테고리 없음

Hello everyone,Can anyone suggest me a way to perform serial communication between an Arduino Uno and a 8051 micro-controller?For my project the Uno is the master and 8051 is the slave device. What should be the hardware configuration? I'm simply connecting the Tx of Uno with Rx of 8051 and vice versa. But I'm not getting the desired output. Communication is done at 9600 Baud rate.

Both the software serial and hardware serial is used for the Arduino. The basic algorithm of the project is: Read data via blue tooth using S/W Serial. Then send some character according to the read data(from blue tooth) to the 8051 using hardware serial. The 8051 reads these characters and performs the necessary actions.

The I'm using Keil IDE for 8051 programming.Thanks. @PaulBThe Simulator is used to test the code as when I tested on the actual hardware circuit, it didn't work. Also, I was unsure on how to 'see' the serial data at the 8051 end, sent from the the Uno to the 8051 serially. I would like you to suggest me a way to do that! Also, burning the code on both the controllers for testing a single line/couple of lines change of code and making the breadboard ckt again and again seems pretty inconvenient( for me at-least )!! I'm pretty sure most will agree to it!

Virtual Serial Port Emulator

Terminals

Most of us who are prepared to look at code here are not prepared to download it from an 'ino' file and even less so 'C', you need to use the 'code' tags to post each in a meaningful form within the text - according to the.Clearly in order to figure out what the problem is with your code, we do need to understand the code and examine it in detail. That is quite an 'ask', but if the code is presented in a convenient form, we will generally do so.

Proteus Technologies

So far, you have apparently not made it sufficiently inviting for any of us to actually do that and therefore the answers have been entirely general and relating only to the hardware.Of course, a further problem is that you have code for an 8051 system which few of us are in a position to test, so we will be reduced to examining it for problems.The connections between the two systems should be straightforward and you would realise the requirement for a common ground. The ATmegas use 5 V logic (the term 'TTL' is a misnomer as it is not TTL logic levels at all) and presumably so does the 8051. As you have - apparently - connected each of these in reality to a PC and exchanged data correctly in each direction, you clearly should know all about the necessary connections.So if it is not working, it is because the code is not working. A simulator is not going to tell you why it is not working and is even more likely to have some subtle additional restriction to make matters even more problematic than the Real Thing. Most of us who are prepared to look at code here are not prepared to download it from an 'ino' file and even less so 'C', you need to use the 'code' tags to post each in a meaningful form within the text - according to the.The connections between the two systems should be straightforward and you would realise the requirement for a common ground. The ATmegas use 5 V logic (the term 'TTL' is a misnomer as it is not TTL logic levels at all) and presumably so does the 8051.

Proteus Porterville Ca

As you have - apparently - connected each of these in reality to a PC and exchanged data correctly in each direction, you clearly should know all about the necessary connections.So if it is not working, it is because the code is not working. A simulator is not going to tell you why it is not working and is even more likely to have some subtle additional restriction to make matters even more problematic than the Real Thing.