H
hello
- Jan 1, 1970
- 0
I heard it is really difficult to interface to a pc usb port,
Does anyone know how to do it?
Rex
Does anyone know how to do it?
Rex
I need to connect a PIC16F84 to a pc interface so that I can
give it instructions from the pc. I want to use the usb port.
Here are the issues I need to solve:
How do I connect a usb cable to a pcb
How do I send data with a pc
How do I receive data with the PIC
Needless to say, the solution must be
- free (except for parts) , as it is an educational exercise
- the software needs to be explained/documented for
the same reason.
I need to connect a PIC16F84 to a pc interface so that I can
give it instructions from the pc. I want to use the usb port.
hello said:I heard it is really difficult to interface to a pc usb port,
Does anyone know how to do it?
Rex
know that this will be more than running a few wires from the '84 to the
PC.
USB is not as simple as, say, the PS2 keyboard interface. If you wish to
use the USB port, you will need to make the device that contains the
PIC16F84 into a USB device.
Robert Monsen said:Actually, the PIC16C745 has support for USB. The MicroChip PICkit(tm) FLASH
STARTER KIT uses one for programming PIC flash chips. The surrounding
circuitry looks relatively straightforward, consisting of a few simple
discrete elements (I'm staring at one right now.) I'm guessing that
microchip has more information on this in their datasheet, possibly
including some design examples. They may even have a development kit (but
not for free, I'm afraid.)
Robert Monsen said:Actually, the PIC16C745 has support for USB. The MicroChip PICkit(tm) FLASH
STARTER KIT uses one for programming PIC flash chips. The surrounding
circuitry looks relatively straightforward, consisting of a few simple
discrete elements (I'm staring at one right now.) I'm guessing that
microchip has more information on this in their datasheet, possibly
including some design examples. They may even have a development kit (but
not for free, I'm afraid.)
Regards,
Bob Monsen
hello said:I have just had a look at pickit1 and you are right, the controller there
directly controlls the USB.
Some problems to solve:
1. It seems there are some "supporting components", I can identify
several resistors, transistors, a diode, capacitors, an oscillator
2. It seems the usb itself is a 4 pin socket
3. the PIC is as you said pic16c745 and we cannot use the pickit1
to program it, i.e. we shall need the more expensive one which btw
still runs on the parallel port interface :-(
Let me know if you find more information. Thanks.
I heard it is really difficult to interface to a pc usb port,
Does anyone know how to do it?
Rex
I was thinking in my mind of rs232, i.e. I was thinking I can use the
ports of the PIC controller to send/receive
data. If that's what you mean by 'making the device into a usb device' then yes
this is what I want to do. It seems it is rather complex so I might just give it
a miss. Is it difficult even if I only want to use it as an on/off switch, i.e. no need
for high speed data transfer? Anyway, thanks to all the repliers for all the
ideas and all the links. Thanks.
Rex
Do you mean there is an adaptor that would allow me to connect fromport. If your computer doesn't have a serial port, you can buy a USB
<-> RS-232 adaptor, and connect the PIC to that adaptor. The adaptor
may look like two connectors and a bit of wire, but there is some
complex electronics inside the RS-232 connector.
Do you mean there is an adaptor that would allow me to connect from
the pc usb port to a serial connector on my pcb with pic on board ?
Are they expensive? And do they come with pc drivers ?
Do you mean there is an adaptor that would allow me to connect from
the pc usb port to a serial connector on my pcb with pic on board ?
Are they expensive? And do they come with pc drivers ?