Serial Communication with Microcontroller-2

By IKTech May 29, 2017

In the previous episode we have seen how to simulate serial communication with microcontrollers. And in this phase, the microcontroller’s connection to the computer is to be done, in reality.

What it needs to do is to provide computer connections with the DB9 connector from the previous circuit’s circuit diagram. First, find out the 9-pin serial port behind the computer’s CPU. What have you found?


It does not seem to be found, because now CPU does not have a 9-pin serial port. Then the way? One way is to use the computer’s US port. Then there will be something that will convert it into the series with input from the USB. This is called the USBT-serial converter. It has one head on the head of the USB 9 pin serial connector, which can be easily inserted into our circuit DB9 connector. It looks like the picture below,

Now let’s come to the whole point of connection, the concept of connection is very low,

We have all the left DB9 connectors of our circuits. It will connect with our serial port of USB-to-Serial Converter. The remaining USB port will connect with the computer. Better to say, separate driver for USB-to-serial converter is installed, it is available on the CD while buying converter. After installing the driver, after installing the Converter computer, it will be installed on the Windows operating system found New Hardware … and it will be named COMXX (Any number instead of XX).

Now it’s time to connect to the computer. Open MikroC and go to Tools> UART Terminal. Then there will come a window like this,

On the left side of this window, select Com Port, in the select box, select the COM port that contains the USB-2-serial converter. The remaining options of COM Port Settings should be kept in default values, as we have configured the microcontroller in Episode 1. Everything will be ok to click on Commands’ Connect. The diameter, the computer connection with the microcontroller, the congratulation, Eid-Mobarak !!

This is the turn of the Communication. We will use the command table found in Part 1. To send the command to the microcontroller, the data will be entered in the text area on the right side of Send. And for this project, Append New Line has to be checked. By pressing the command and pressing the send button, the data will be left in the microcontroller. There is also more, the receiver section below to receive data from the microcontroller. There will be data from the microcontroller. Then type commands from Part 1 of the command table and write it down and see the fun of serial communication.

18 thoughts on “Serial Communication with Microcontroller-2

  • Youre so cool! I dont suppose Ive learn anything like this before. So nice to seek out someone with some original thoughts on this subject. realy thanks for beginning this up. this web site is one thing that’s wanted on the net, somebody with a little bit originality. helpful job for bringing one thing new to the internet!

  • Thank you a lot for providing individuals with such a spectacular possiblity to read critical reviews from this site. It is always very amazing and full of amusement for me and my office mates to search your web site at minimum three times in one week to study the latest items you have got. And lastly, I’m so usually motivated with your impressive points served by you. Selected two points on this page are particularly the simplest we have had.

  • I found your blog website on google and check just a few of your early posts. Proceed to keep up the very good operate. I just extra up your RSS feed to my MSN Information Reader. Seeking forward to studying extra from you in a while!?

  • I wanted to post a brief note to thank you for some of the fabulous advice you are writing at this website. My extensive internet investigation has at the end been recognized with beneficial strategies to talk about with my partners. I would assert that many of us site visitors are very endowed to live in a decent community with many awesome professionals with good secrets. I feel rather lucky to have seen your entire website and look forward to so many more excellent minutes reading here. Thank you again for all the details.

  • The next time I learn a weblog, I hope that it doesnt disappoint me as much as this one. I imply, I know it was my option to learn, but I really thought youd have one thing fascinating to say. All I hear is a bunch of whining about something that you could repair if you happen to werent too busy looking for attention.

  • Thanks so much for providing individuals with an exceptionally breathtaking possiblity to read from this web site. It is usually so sweet and as well , full of amusement for me personally and my office acquaintances to search your website no less than three times per week to find out the newest stuff you have. And lastly, I’m just certainly impressed concerning the tremendous tips you serve. Certain 2 points in this posting are completely the finest I have ever had.

  • I as well as my guys appeared to be checking out the excellent suggestions on the website and so all of a sudden I got a horrible feeling I never thanked the web blog owner for those techniques. Most of the young boys were for this reason very interested to read all of them and now have very much been taking pleasure in these things. Appreciation for turning out to be simply thoughtful and also for opting for some tremendous ideas millions of individuals are really desperate to understand about. My honest apologies for not saying thanks to you earlier.

  • Can I simply say what a relief to find somebody who actually is aware of what theyre speaking about on the internet. You definitely know how you can convey a difficulty to mild and make it important. Extra individuals have to read this and perceive this side of the story. I cant believe youre no more fashionable since you definitely have the gift.

  • I am glad for writing to make you know what a incredible experience my cousin’s princess went through studying your web page. She came to understand a wide variety of issues, which include what it’s like to have a marvelous teaching character to make folks smoothly learn various impossible issues. You really did more than her expected results. Many thanks for presenting such practical, trustworthy, edifying not to mention cool guidance on your topic to Sandra.

  • Thank you for each of your hard work on this website. Ellie delights in going through investigation and it’s easy to see why. A number of us notice all of the dynamic form you give useful suggestions on the website and therefore welcome contribution from some others about this issue plus our princess is really understanding a lot of things. Take advantage of the remaining portion of the new year. You’re the one doing a superb job.

  • I was very pleased to find this net-site.I wanted to thanks for your time for this excellent read!! I positively having fun with every little bit of it and I have you bookmarked to take a look at new stuff you weblog post.

  • Thank you for every one of your efforts on this site. Kim take interest in managing internet research and it’s obvious why. Most people notice all regarding the compelling medium you convey good suggestions on your web site and in addition strongly encourage contribution from some other people about this idea plus our own simple princess is undoubtedly studying a great deal. Take advantage of the rest of the year. Your conducting a great job.

  • I must point out my affection for your generosity in support of folks that have the need for assistance with that idea. Your very own dedication to passing the message all through had become wonderfully good and have surely enabled people like me to realize their targets. The helpful information entails a great deal to me and extremely more to my office workers. Thanks a ton; from everyone of us.

  • I’m just writing to let you know of the really good discovery my wife’s daughter enjoyed reading the blog. She came to find some pieces, most notably what it is like to have an incredible teaching mood to have the rest very easily fully understand certain grueling subject areas. You truly exceeded readers’ desires. Many thanks for coming up with these productive, dependable, revealing and unique tips on that topic to Evelyn.

  • I wanted to create you that little bit of note to finally give thanks as before regarding the marvelous views you’ve documented here. It’s quite seriously generous of you to deliver without restraint just what a few individuals would’ve supplied for an e book in making some money for themselves, principally given that you could have tried it in the event you decided. Those creative ideas additionally served to provide a great way to recognize that many people have the identical keenness like my very own to find out a little more in regard to this issue. I’m certain there are several more fun occasions ahead for those who read your site.

  • After study just a few of the blog posts in your website now, and I actually like your way of blogging. I bookmarked it to my bookmark website list and shall be checking again soon. Pls check out my web page as properly and let me know what you think.

  • I simply wished to thank you very much once again. I do not know what I could possibly have taken care of without the type of ways provided by you on my theme. Certainly was the distressing difficulty for me, but spending time with the very specialized approach you managed that took me to jump with happiness. Extremely happier for this help as well as wish you find out what a great job you are always accomplishing teaching many others through the use of your website. Probably you haven’t got to know all of us.

Leave a Reply

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