electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Is it possible to connect Pic directly to usb


Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> Is it possible to connect Pic directly to usb
Author Message
Analyzer



Joined: 18 Nov 2001
Posts: 414


Post18 Feb 2003 20:53   

serial interface engine avr


Hi,

I would like to know if it is possible to connect pic mcu (for example 16f628) directly to usb port? A guy connected atmel mcu directly to usb.May be it can be possible to do that with most common mcu. Look at this : Rolling Eyes

http://xxx.cesko.host.sk/IgorPlugUSB/IgorPlug-USB%20(AVR)_eng.htm

Analyzer
Back to top
ME



Joined: 14 Mar 2002
Posts: 1523
Helped: 13


Post18 Feb 2003 21:35   

connect pic


Well, if you read the page you have linked to, then you will find the answer for your question.
Back to top
Nick C.



Joined: 20 Dec 2002
Posts: 184
Helped: 4


Post18 Feb 2003 22:03   


Don't bother with the link. It's just some
spam site.
Back to top
Analyzer



Joined: 18 Nov 2001
Posts: 414


Post18 Feb 2003 23:26   


Pfff...Just change xxx to www!
Back to top
btbass



Joined: 20 Jul 2001
Posts: 1187
Helped: 113
Location: Oberon


Post18 Feb 2003 23:29   


Anything is possible, but is it worth the effort? USB is a high speed differential analogue interface, it is possible to get a Serial interface engine IC to convert this to digital, but then you have the protocol to sort out, bit stuffing, clock synchronization, packet recovery, handshaking and all that. It is a lot less headache to use a pic chip with a USB port on it such as the 16C765. Only supports low speed usb though. Or use a chip like the philips PDIUSBD11/12 as the usb interface.
Microchip have been threatening to bring out a full speed version for some time, still a future product though. If it was easy, they would have it on the market by now.
Back to top
ME



Joined: 14 Mar 2002
Posts: 1523
Helped: 13


Post18 Feb 2003 23:58   


It is not a spam site. You have to replace xxx with www in the link. I don't understand why you don't make the correct link, there is nothing illigal in that.


Here is a part of the article:

Firstly I choose PIC16F84-20, with which I have experiences. To ensure synchronizing with USB clock and speed increasing was used microcontroller clock 24MHz = 6MIPS (PIC was slightly overclocked). For one bit from USB processing were 4 instructions (4=6MIPS/1.5Mbit for LowSpeed USB). I reject this solution (after some time) - PIC is too slow (and in addition the no so good instruction set ...) .

As you can read the PIC i too slow to make it work with a software-based USB-interface, so you have to use an Atmel.
Otherwise you have to use one of the PICs with built-in hardware USB-interface - just like you can read in the article if you bother.
Back to top
H_u_n_t_e_r



Joined: 24 Nov 2001
Posts: 207
Helped: 4


Post02 Mar 2003 12:20   


ccs pic c has solution for usbn9xxx and onchip usb pics..you can try...
you can find this compiler from MCU..programs...ccs

Regards.
Back to top
Google
AdSense
Google Adsense




Post02 Mar 2003 12:20   

Ads




Back to top
rchadwick



Joined: 22 Feb 2002
Posts: 25


Post07 Mar 2003 7:02   

USB


I believe some of the newer PIC chips, I think the 18F series, has a built in USB port.
Back to top
ME



Joined: 14 Mar 2002
Posts: 1523
Helped: 13


Post07 Mar 2003 19:16   


That's correct but he wanted to connect a PIC without hardware USB. Just a software USB soloution for a PIC hardware USB. But the PIC is not fast enough for this you have to use an AVR or a PIC with harware USB interface.
Back to top
System.out



Joined: 11 Jan 2003
Posts: 74
Helped: 1


Post07 Mar 2003 22:07   

.


And if I would like to use an AVR or SX, where would i find specs to program a USB interface? is there one implemented?

Thanks
Back to top
ME



Joined: 14 Mar 2002
Posts: 1523
Helped: 13


Post08 Mar 2003 13:55   


Here's the link for the english version of AVR USB interface:
http://cryo.pslib.cz/~cesko/IgorPlugUSB/IgorPlug-USB%20(AVR)_eng.htm

http://cryo.pslib.cz/~cesko/hardware.php
Back to top
silvio



Joined: 31 Dec 2001
Posts: 801
Helped: 90


Post08 Mar 2003 14:36   


Not so good as the link posted above, but at least give it a try:

The following design does not meet all USB requirements
and provides just an example of simple interface to USB using Scenix MCU and widely
available components:
bus driver 74LCX125
Resonator - 50 MHz (Murata)

http://www.sxlist.com/techref/ubicom/lib/io/dev/keys/usbdemo-mh.htm
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> Is it possible to connect Pic directly to usb
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
connect usb port directly to micro (2)
How to connect USB to PIC (6)
USB connect to PIC 18F2550 (4)
connecting the micro to pc with usb directly- mega8 and usb (1)
help!connect mcu to printer and print data on it directly (1)
Any method to connect nokia phone directly to the pic16f8? (3)
Is it possible for GSM module connect to analog fax? (3)
PIC & usb GPS (need PIC host usb) (1)
where to connect shield of USB? (2)
direct connect 2 usb clients (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS