Serial Communication Simulation with Microcontroller.

By IKTech May 29, 2017

Oh so What is the microcontroller he is talking with a microscope with the computer! There are protocols to talk about, in a certain way. Talking, that means we will use serial communication for data communication. It can be read about serial communication, how the data communication is done with the microcontroller …, and the project is being used, ATMEGA16 (8MHz), MAX232 IC, DB9 Female connector, and some accessories in Hajaji.
MAX232:

Serial communication using computer for microcontroller communication. But serial communication can not work much longer. Then it is placed on the neck of another protocol named RS232, which can go far away to make the tabbug. And the computer can not accept serial communication without the RS232 protocol. So, two protocols have to be converted in the middle of the middle. MAX232 Possible crossfire, one protocol data is converted to another. The whole thing is like that

In serial communication, a connector called DB9 is to be used, connecting to the computer’s wares and microcontrollers with a gasket. To see the picture below,

It has two variations, mail and filmy. Viewing the picture above with pin diagram can be understood.
Project overview:

Our job is to get some commands from the computer. For example,
Command work
ON LED will burn
OFF LED can be discarded
GET tells the current status of LED to the computer ON: LED is OFF: LED is out
Electronics:

The first part of this project will show how serial communication can be used with the microcontroller. 14, 15 pin at ATMEGA16 is the receiver and transmitter pin of serial communication respectively. Which will send serial data or send them respectively. It has been said before, the head and neck of this serial data will not understand the computer. It now needs to be converted to RS232 protocol. For this 14 and 15 Pinduto MAX232 have been installed on 12 and 11 pins, which are the MAX232 serial data. And 14, 13 pins are the RS232 data of those that are just converted from serial. These data will be on the computer, as a DB9 phone connector. The basic diagram of the MAX232 connection is,

The whole circuit is connected to the following (with an LED and fitted with)

There are two more things to talk about. In the above picture, there are two things called Terminal 1 and Terminal 2 that are only for debugging or testing. For example, on Terminal 1, on the ON enter, enter the name D1 and the OFF will be written off. Terminal 1 can be imagined in a computer’s place. Again in Terminal 2, it turns out that what is going on with Terminal 1 – in the microcontroller. Run a simulation at Proteus and write the above table commands in Terminal 1. Likewise, the GET and press Enter will show the status of the LEDs (ON or OFF) in the terminal. It can be read about Proteus software, fun software to create circuits: Proteus.
Programming:

MikroC’s serial communication library has been used in code code. Let’s see the code first,

Void main () {
Char buffer [10];
Char i;

DDB0_bit = 1;
PORTB0_bit = 0;

UART1_Init (9600);
Delay_ms (100);

While (1) {
If (UART1_Data_Ready ()) {
UART1_Read_Text (buffer, “\ r”, 8);

For (i = 0; i buffer [i] = tolower (buffer [i]);
}

If (! Strcmp (buffer, “on”)) {
PORTB0_bit = 1;
} Else if (! Strcmp (buffer, “off”)) {
PORTB0_bit = 0;
} Else if (! Strcmp (buffer, “get”)) {
If (PORTB0_bit) {
UART1_Write_Text (“ON \ r \ n”);
} Else {
UART1_Write_Text (“OFF \ r \ n”);
}
}
}
}
}
Explanation:

Checking the microcontroller, there is no data on the serial. If there is a Tamil mandate according to the table above. Transmitting LED status is necessary if necessary.

The next part will be the connection with the computer and the command from the computer.

34 thoughts on “Serial Communication Simulation with Microcontroller.

  • I know this if off topic but I’m looking into starting my own blog and was curious what all is required to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web savvy so I’m not 100 sure. Any recommendations or advice would be greatly appreciated. Appreciate it

  • I not to mention my pals ended up viewing the good tactics from your web blog and then instantly I got a horrible suspicion I never thanked the site owner for those secrets. The women are already totally happy to see them and have clearly been using those things. Many thanks for being quite helpful and then for making a choice on this kind of good subject matter most people are really desperate to know about. Our own sincere regret for not expressing appreciation to earlier.

  • Can I simply say what a aid to seek out someone who really knows what theyre talking about on the internet. You definitely know easy methods to bring a difficulty to light and make it important. More people have to read this and perceive this aspect of the story. I cant consider youre not more in style because you undoubtedly have the gift.

  • I have to express some thanks to the writer just for bailing me out of this type of difficulty. Because of browsing throughout the world-wide-web and finding tricks which were not powerful, I thought my entire life was gone. Living without the solutions to the problems you have sorted out through your main blog post is a critical case, and those which might have in a wrong way affected my entire career if I hadn’t encountered the blog. Your own personal expertise and kindness in playing with every item was precious. I am not sure what I would’ve done if I hadn’t come across such a thing like this. I am able to at this moment relish my future. Thank you very much for the impressive and sensible help. I won’t hesitate to refer your site to anyone who needs and wants tips on this problem.

  • I’m usually to blogging and i really admire your content. The article has really peaks my interest. I’m going to bookmark your web site and preserve checking for brand spanking new information.

  • My wife and i got quite peaceful Raymond managed to finish off his reports with the ideas he obtained from your own site. It is now and again perplexing to simply continually be freely giving secrets and techniques that many men and women might have been making money from. And we all take into account we have got the blog owner to appreciate for that. The entire illustrations you have made, the simple web site navigation, the relationships your site make it easier to create – it is most astounding, and it is making our son and the family reason why that situation is entertaining, which is exceptionally vital. Thank you for the whole lot!

  • Thank you for another informative site. Where else could I get that kind of information written in such a perfect way? I have a project that I’m just now working on, and I’ve been on the look out for such information.

  • My spouse and i have been very relieved Michael could complete his basic research with the precious recommendations he made through the web page. It is now and again perplexing to just happen to be giving away helpful hints which often most people have been trying to sell. And we remember we have you to appreciate for that. All of the illustrations you have made, the straightforward web site navigation, the friendships your site make it possible to engender – it’s all wonderful, and it’s really leading our son in addition to the family understand that topic is enjoyable, and that is exceptionally essential. Thanks for everything!

  • Admiring the hard work you invested in the site and thorough details you display. It is amazing to find a blog now and then that is not the same obsolete re-written material. Fantastic read! We have bookmarked your webpage and I am adding your RSS feeds to our Arvind Pandit site.

  • I wanted to make a simple word so as to express gratitude to you for those amazing suggestions you are placing at this site. My prolonged internet look up has at the end been compensated with professional content to exchange with my good friends. I ‘d claim that many of us site visitors are quite lucky to dwell in a very good site with very many perfect people with interesting advice. I feel quite grateful to have seen the webpage and look forward to many more cool times reading here. Thanks a lot again for all the details.

  • It抯 arduous to search out educated people on this topic, however you sound like you recognize what you抮e talking about! Thanks

  • I have to voice my passion for your kindness for people that need guidance on this one area of interest. Your very own dedication to passing the message up and down had become rather insightful and has truly allowed somebody like me to realize their targets. Your valuable guideline signifies a great deal to me and extremely more to my peers. With thanks; from everyone of us.

  • Admiring the time and effort you put into your website and thorough material you provide. It is nice to find a site every now and then which is not the same expired rehashed content. Excellent read! We’ve bookmarked your site and I’m adding your RSS feeds to my own thai lottery today webpage.

  • Can I simply say what a aid to seek out someone who really knows what theyre speaking about on the internet. You definitely know how one can bring a problem to gentle and make it important. Extra folks have to read this and understand this side of the story. I cant believe youre not more common since you definitely have the gift.

  • There are definitely plenty of details like that to take into consideration. That is a great level to deliver up. I provide the thoughts above as normal inspiration but clearly there are questions like the one you bring up where crucial factor shall be working in trustworthy good faith. I don?t know if finest practices have emerged around things like that, but I am sure that your job is clearly identified as a good game. Both boys and girls feel the affect of just a moment抯 pleasure, for the remainder of their lives.

  • I and also my guys happened to be reading the good items found on the website then unexpectedly came up with a terrible suspicion I had not expressed respect to the web blog owner for them. The people are actually so passionate to read through all of them and have in actuality been having fun with them. Thank you for getting simply considerate and also for considering this kind of fabulous subject matter millions of individuals are really wanting to be aware of. Our own honest regret for not expressing gratitude to you sooner.

  • This site can be a walk-via for the entire data you wished about this and didn抰 know who to ask. Glimpse right here, and you抣l undoubtedly uncover it.

  • I have to convey my passion for your kindness giving support to those individuals that have the need for help with that field. Your special commitment to getting the solution along appears to be surprisingly insightful and has surely helped others just like me to arrive at their objectives. Your warm and friendly tutorial denotes so much to me and extremely more to my mates. Many thanks; from each one of us.

  • I have to show my gratitude for your kindness in support of those who really want guidance on the area. Your special dedication to passing the solution all-around appears to be unbelievably informative and has surely permitted others just like me to reach their ambitions. Your amazing insightful guideline entails much to me and much more to my colleagues. Warm regards; from each one of us.

  • I was very pleased to seek out this net-site.I wanted to thanks in your time for this excellent read!! I undoubtedly enjoying each little little bit of it and I’ve you bookmarked to check out new stuff you blog post.

  • You’re totally right and I trust you. When you want, we might also talk about house intercom, one thing which fascinates me. Your website is truly brilliant, best wishes!

  • July sale of hypoallergenic Curry 4 champions suit sales extraordinarily hot, a lot of folks with money to buy long ago chuai, there is zero snap up. But not too long ago, this title set with platinum color version will likely be released in this thirty day period alone, made the new round of the opportunity to give the fans

    Tag: curry 4 footlocker curry 2 kyrie 4 shoes kyrie 4 kyrie 3 shoes kyrie irving shoes Lebron Shoes kyrie 3 curry 4 air jordan 32 kyrie 4 confetti kyrie 4 Lebron Shoes Adidas Apparel calvin klein underwear

    curry shoes new era caps kyrie 4 curry 3 adidas nmd womens lebron 15 kyrie irving jersey barbour jackets yeezy shoes curry 1 curry 3 shoes kyrie 3 shoes Adidas Apparel lebron soldier 10 kyrie 4 confetti nike air more uptempo new balance shoes kyrie 1 nmd human race air jordan shoes kyrie irving shoes puma fenty yeezy triple white adidas nmd xr1 kyrie 4 air jordan 31 kd shoes under armour shoes adidas iniki adidas yeezy boost 350 v2 zebra

  • A pair of steals in his System, stephen curry shoes in the first fraction, and the two steals to garage an overall total of 106 times inside the playoffs career steals, which in turn transcends the rick Barry, became the steals in the history of the warriors team inside playoffs.

    Garage into seven three-pointers inside the game, this also let his playoff three-pointers hit number around 261, match the Robert horry, 9th three points in playoff history list. Distance comes 8th Chauncey billups, he in addition only six three items.

    37 points in merely three games, came curry shoes to life, and this is his there is much surprise, including playoffs) 9th score 35 + game with three alone, in excess of 7 times of Russell westbrook, the top league.

    So many record the initial world war, there is no doubt that this game can be reportedly the garage in this series played the very best game. The first about three games, garage is averaging 27. 3 points and 4. 7 rebounds, 6 helps, shooting 40. 3% and also 35. 3% from three, compared with the regular season shooting stage, a particular degree of decline, even so the game, garage completely ridiculous. The blazers in several players to hound your pet, but no one may disturb his rhythm. Storage area, as it were, in the game again to find out “day day” feeling.

    11 three-point range out hand, hit kd shoes several goals, including vast mileage of three points. Wearing warriors baseball hat sitting within the stands to watch this old garage, it also appears to obtain son’s playing god are some incredible performance. The lens towards the old garage, he could not help but shook the head.

    Of course, regardless of other people think, garage three points because of their own performance with absolute confidence. In the next quarter the warriors together with 88-58 big lead this blazers, garage outside your three-point line again, the ball far from the one hand, he or she turned back field, the ball firmly in to the basket, the whole upheaval. Can put the three points within this state, the other gathering can say what?

    Tag: kyrie irving shoes asics gel kayano 24 kyrie irving basketball shoes ultra boost kyire 3 curry 4 footlocker kobe shoes kyrie 3 stephen curry jersey nike lunar force 1 air max 90 bape hoodie stephen curry basketball shoes adidas alphabounce nike air presto kd 10 asics gel kayano 23 mizuno running shoes nike free lebron 15 ashes nike kyrie 4 stephen curry shoes kyrie 4 adidas ultra boost uncaged adidas iniki kyrie shoes 3 curry 3 shoes lebron 14 nike zoom vaporfly elite hyperdunk 2017 kyrie 2 adidas zx flux adidas porsche shoes birkenstock sandals NMD R1 Primeknit puma suede

Leave a Reply

Your email address will not be published. Required fields are marked *