Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

how to send data using serial port

Status
Not open for further replies.
sohagiut said:
how can i send data from pc tp mic-controller using serial port. can i use Hyperterminal. how?
Connect the MCU to the PC with a level shifter (MAX232 or other method). Write a program for the MCU to receive RS232 and do something with the data it receives so you'll know something happened. Set up Hyperterminal to match the baud rate and other stuff that you programmed the MCU to receive (typically you'll start at 9600-8-N-1. Go faster later, after you get that working).

And that's it. :D If you're a newb, it's not near as simple as I make it sound, but not so very difficult either.
 
Last edited:
it's easy with visual basic and mscomm, once you get your head round it. if that's what you don't forget mscomm will only accept ascii characters for output, so you must convert data to bytes and send using 'chr$(n)'.

that's assuming you have the neccessary hardware set up [rs232 interface for uC]
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top