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.
Connecting your Microcontroller to PC
-
- Lieutenant
- Posts: 92
- Joined: Tue Oct 27, 2009 7:50 pm
Re: Connecting your Microcontroller to PC
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.
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.
-
- Sergeant
- Posts: 20
- Joined: Mon May 23, 2011 7:16 pm
Re: Connecting your Microcontroller to PC
Hi Magneto,
Do you have any code for this its quite interesting to connecting micro-controller to PC
Regards,
Deepak Patil
Do you have any code for this its quite interesting to connecting micro-controller to PC
Regards,
Deepak Patil
-
- Lieutenant
- Posts: 92
- Joined: Tue Oct 27, 2009 7:50 pm
Re: Connecting your Microcontroller to PC
which microcontroller are you trying to connect?
-
- Sergeant
- Posts: 20
- Joined: Mon May 23, 2011 7:16 pm
Re: Connecting your Microcontroller to PC
I have 2 uC AT89C2051 and PIC16F628A. any one will do preferably PIC16F628A.
Re: Connecting your Microcontroller to PC
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).
Here are some C codes I found from HI-TECH C samples.
Non-interrupt drive version Interrupt drive version
Here are some C codes I found from HI-TECH C samples.
Non-interrupt drive version Interrupt drive version
-
- Sergeant
- Posts: 20
- Joined: Mon May 23, 2011 7:16 pm
Re: Connecting your Microcontroller to PC
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.
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.
Re: Connecting your Microcontroller to PC
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.
Check this eBay link. This has debug facilities as well in MPLab.