Page 1 of 1

Connecting your Microcontroller to PC

Posted: Sun May 02, 2010 10:46 pm
by Magneto
Most of the people complaining that they can not connect there microcontrollers to PC. The reason for this in many occasions , is wrong pin connections between MAX232 IC and PC and also MAX232 IC with microcontroller. Here you can
see very clear diagram , which explain all the story between PC- MAX232 - Microcontroller inter - connections.
max232ToPC.JPG
max232ToPC.JPG (50.74 KiB) Viewed 12811 times

Re: Connecting your Microcontroller to PC

Posted: Tue Jun 22, 2010 10:59 am
by SukhdeepMankoo
Note DB-9
pin 3 is the transmit pin of PC.
pin 2 is the receive pin of PC.

I have seen the schematic diagram, if u will interchange the pin2 and pin3 of DB-9 connector, it will work.

Re: Connecting your Microcontroller to PC

Posted: Tue May 31, 2011 4:20 pm
by DeepakPatil23
Hi Magneto,

Do you have any code for this :?: its quite interesting to connecting micro-controller to PC

Regards,
Deepak Patil

Re: Connecting your Microcontroller to PC

Posted: Tue May 31, 2011 4:26 pm
by SukhdeepMankoo
which microcontroller are you trying to connect?

Re: Connecting your Microcontroller to PC

Posted: Tue May 31, 2011 5:55 pm
by DeepakPatil23
I have 2 uC AT89C2051 and PIC16F628A. any one will do preferably PIC16F628A.

Re: Connecting your Microcontroller to PC

Posted: Tue May 31, 2011 8:08 pm
by Shane
If you are a beginner, I would recommend you to use either PIC16F877A or 16F84. Both are easy to handle and more importantly there are lots of support on the web. In addition to the first diagram, you could use the following one as well. (Both same).
PIC_serial_port_hardware.gif
PIC_serial_port_hardware.gif (18.23 KiB) Viewed 12621 times
Here are some C codes I found from HI-TECH C samples.

Non-interrupt drive version
serial.zip
(1.34 KiB) Downloaded 754 times
Interrupt drive version
iserial.zip
(2.63 KiB) Downloaded 756 times

Re: Connecting your Microcontroller to PC

Posted: Wed Jun 29, 2011 7:27 pm
by DeepakPatil23
Hi,

I got a one problem, My PC gets down HDD problem. I have Laptop but in laptop LPT port or Serial com1 RS232 port not available only USB is there. Now biggest problem is my JDM programmer is of RS232 and i have USB port now how to connect USB to RS232 any Circuit available :?: ?? I have MAX232 IC.

:cry:

Re: Connecting your Microcontroller to PC

Posted: Thu Jun 30, 2011 5:05 am
by Neo
JDM programmer will not work from USB-RS232 converters due to power issues (we have already discussed this and please search for that). Best solution I see is to buy a PICKit3 programmer which is very cheap now.

Check this eBay link. This has debug facilities as well in MPLab.