Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 08, 2016, 12:54:35 12:54


Login with username, password and session length


Pages: [1]
Print
Author Topic: PICKit2 as a USB to serial converter  (Read 9900 times)
0 Members and 1 Guest are viewing this topic.
kcsoft
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 4
-Receive: 68


« on: January 18, 2009, 06:23:11 18:23 »

  The idea is to use the PicKit2 programmer as a USB to serial converter.
The PicKit2 has a built-in UART tool, this will tell you rx,tx and GND pins to be used from PK2.
! The signals are TTL levels (0-5v) not +/-12v RS232 levels but this should be what you need if you use this for a microcontroller communication.
  The atached program puts the PK2 in serial mode and redirects USB traffic to a serial port.
Use com0com (com0com.sourceforge.net) or other software to create 2 bridged virtual serial ports on your computer.
Use one port with the attached program and the 2nd port in your PC serial application.
The baud rate is set from the attached program.
PicKit2 manual recommands baud rates up to 38400bps.
Original idea and implementation by kcsoft
Enjoy.
Logged
newboy
Junior Member
**
 Muted
Offline Offline

Posts: 94

Thank You
-Given: 42
-Receive: 20


« Reply #1 on: January 18, 2009, 07:42:57 19:42 »

I got this error.

How to use it ... any steps?

I already install com0com and open 2 hyperterminal and both can talk each other but your exe file fail ( as error.jpeg).
Logged
kcsoft
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 4
-Receive: 68


« Reply #2 on: January 18, 2009, 08:48:13 20:48 »

The problem is that some dll files are missing from your computer.
The program is compiled with VS2005.
Install .NET 2.0 if you dont already have it.
Or try to goolge the error message.
Logged
janakfun
Junior Member
**
 Warned
Offline Offline

Posts: 36

Thank You
-Given: 4
-Receive: 4


« Reply #3 on: December 22, 2009, 07:41:08 07:41 »

Hi,
I downloaded the Pickit2 and run the .exe file. The dialogue box says "PicKit2 not connected!"

Well my application is like I have a USB dongle and towards computer side it should appear as a serial port...
Something like as if the data is coming from the serial port.
Will this application help me?? Or suggest me an application to do the same.

Thanks.
Logged

Regards,

Janak
kcsoft
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 4
-Receive: 68


« Reply #4 on: December 22, 2009, 11:43:22 11:43 »

I'm not aware of any other app that can do this.
Read my first post carefully.
Did you install com0com? com0com creates the 2 virtual serial ports. For example name them COM3 and COM4.
pk2uart should open COM3 and you application should connect to COM4.
You will also need the Pickit2 programmer.


For the error a few post above, this is caused by missing vs redist files. search, download and install this from microsoft
"Microsoft Visual C++ 2005 Redistributable Package (x86)"
Logged
janakfun
Junior Member
**
 Warned
Offline Offline

Posts: 36

Thank You
-Given: 4
-Receive: 4


« Reply #5 on: December 22, 2009, 11:53:22 11:53 »

Hi kcsoft,

I have used and installed com0com on my pc but I couldn't fine any option for USB.
it just mapped two serial ports, but my requirement is one actual USB to one virtual serial port.

Can this be done by com0com??
Logged

Regards,

Janak
kcsoft
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 4
-Receive: 68


« Reply #6 on: December 22, 2009, 12:32:00 12:32 »

no, com0com has nothing to do with USB.
I'm not sure I understand what is that you want to do.
The USB device attached must be the pickit2 programmer, I have the impression that you need to attach other device, like a USB to serial converter. If you need to have a com port that communicates with a usb device, that device must register itself as a USB CDC device.
The point of my application is to use Pickit2 (Microchip programmer) as a replacement for a USB to serial converter cable. Another advantage is that the microcontroller board does not need the TTL-RS232 level converter (MAX232 IC).
Logged
janakfun
Junior Member
**
 Warned
Offline Offline

Posts: 36

Thank You
-Given: 4
-Receive: 4


« Reply #7 on: December 22, 2009, 12:42:13 12:42 »

Ohhh.. I got your application, but my requirment is a bit different.
I have a USB device having a TI controller in it. This device will send the data to USB port (using USB protocol). But on my PC application it should appear as the data is coming from serial port (Serial protocol) and not from the USB.
I want to avoid witnig code for USB. So I'm asking if such kind of things are available...
Logged

Regards,

Janak
3v0
Guest
« Reply #8 on: March 15, 2010, 08:41:21 20:41 »

I had problems getting com0com to work, Vista.
http://www.eterlogic.com/Products.VSPE.html ( mentioned in another thread) did work.

Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC