how can i send data from pc tp mic-controller using serial port. can i use Hyperterminal. how?
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).Originally Posted by sohagiut
And that's it.If you're a newb, it's not near as simple as I make it sound, but not so very difficult either.
Last edited by futz; 19th February 2008 at 05:30 PM.
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]
Here's a link to a thread where I set up my Junebug 18F1320 to do RS232 with a PC:
Junebug users - fun little diag program for ya
There's a couple photos and some asm code there.