Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to use PIC16F84 as usb controller???

Status
Not open for further replies.

robokid

Junior Member level 1
Joined
Oct 8, 2006
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,429
pic16f84 usb

How to use PIC16F84 as usb controller(emulate usb IC controller)
any code my friends .:cry::cry:
 

Beowolf

Full Member level 2
Joined
Jun 19, 2006
Messages
130
Helped
11
Reputation
22
Reaction score
3
Trophy points
1,298
Activity points
2,071
pic16f usb

easy, thow it away and buy 18F2550 (same pin count)

USb works on 12MHz, thus you need 48Mhz clock, which is unacheavable for gradfather PIC 16F84...


P.S. Welcome to 21st century :)
 

alexz

Full Member level 5
Joined
Nov 19, 2004
Messages
283
Helped
6
Reputation
12
Reaction score
3
Trophy points
1,298
Location
UK
Activity points
2,246
pic 16f usb

Using the PIC16 series you would have to use an external USB controller with the SIE on in it.
I have done that using the USBN9203 controller from National Semi a while ago when there was no PIC18 available with the USB peripheral on chip
 

metal

Full Member level 6
Joined
Dec 21, 2004
Messages
364
Helped
19
Reputation
38
Reaction score
6
Trophy points
1,298
Activity points
3,834
pic16f84a usb

Another thing here, if you can write your own USB driver for the PIC part, then you can use the PIC14 family, provided the code fits in the program memory, hence you will throw PIC16F84A away because I don't expect the code to fit there. I have seen an AVR USB programmer that uses software based USB driver instead of the hardware, but I have not looked o the code.

Adding to what Beowolf said, hardware is better than software in such cases, and easier to use ;)

Good luck
 

SuperUser

Member level 1
Joined
Feb 26, 2004
Messages
38
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Location
Bulgaria
Activity points
271
usb pic16f84

As metal said, there is USB protocol implementation in firmware for small microcontrollers without USB controller. Of course it is USB 1.1 and is much slower than USB 2.0
The most famous project is from Igor Cesko for AVR's.
See the attached file or download it from his site: **broken link removed**
 

alexz

Full Member level 5
Joined
Nov 19, 2004
Messages
283
Helped
6
Reputation
12
Reaction score
3
Trophy points
1,298
Location
UK
Activity points
2,246
pic16 usb

You must have some Hardware SIE anyway.
It is just the USB stack is implemented in software
 

tiborv

Newbie level 2
Joined
Nov 15, 2006
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
pic 16f84 usb

It is very good Usb2serial converter use FT232 Chips. PCB & SCH is EAGLE format
 

robokid

Junior Member level 1
Joined
Oct 8, 2006
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,429
usb pic16f

Ok
I mean USB1.1 (low speed)
I think , I can use PIC16f88 like a ccontroller
to reciev data from PC (serial) and process it :D
 

Zedman

Full Member level 6
Joined
Oct 13, 2003
Messages
331
Helped
9
Reputation
18
Reaction score
6
Trophy points
1,298
Location
Hungary
Activity points
3,510
16f84 usb

I just bought an USB1.1->RS232 converter for half of the price of an FTDI chip disassembled it from it's molded plastic case and sticked it to my pcb.
And used a PIC16F628's serial port to communicate through it.
Of course it works only as a serial port, and you have to install a small driver tho have COM10, but you need this don't you?

Added after 3 minutes:

something like this:

60_1168961013.jpg
 

funnynypd

Banned
Joined
May 9, 2007
Messages
436
Helped
48
Reputation
100
Reaction score
25
Trophy points
1,308
Location
USA & Canada
Activity points
0
how to use usb controller

The USB speed might be too fast for the chip you picked.
 

dilan2005

Member level 4
Joined
Jul 22, 2007
Messages
75
Helped
8
Reputation
16
Reaction score
2
Trophy points
1,288
Activity points
1,837
pic16f84a interface usb

hello guys,

can't we come up with a software usb stack as avr does on attiny micro controllers.

Thanks,
Dilan
 

blueroomelectronics

Advanced Member level 5
Joined
Sep 17, 2006
Messages
1,681
Helped
180
Reputation
358
Reaction score
77
Trophy points
1,328
Location
Toronto, Canada
Activity points
8,696
pic16f84 usage

The old 16F simply isn't fast enough and as said before the 18F2550 is an ideal solution it has USB hardware built in.

Besides why would anyone use the anicient 16F84 for new designs.
 

blueroomelectronics

Advanced Member level 5
Joined
Sep 17, 2006
Messages
1,681
Helped
180
Reputation
358
Reaction score
77
Trophy points
1,328
Location
Toronto, Canada
Activity points
8,696
pic16f84a + usb

At 5MHz it'll be really crippled, I doubt it's doable.

It's also pointless IMO as the 18F2550 is designed to do this in hardware with 8k of dual buffered RAM and is much faster at 12MHz too.
 
  • Like
Reactions: be80be

    be80be

    Points: 2
    Helpful Answer Positive Rating

seadolphine2000

Advanced Member level 3
Joined
Apr 12, 2005
Messages
880
Helped
122
Reputation
244
Reaction score
87
Trophy points
1,308
Activity points
7,372
pic16f84 usb interface

You can use PIC24XX family. It has an on chip USB host controller.
For further information, check the microchip website.
 

photonic

Newbie level 2
Joined
Jul 2, 2005
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
usb pic16f*

hmm... maybe with an external RAM chip?
i see they do 256kbyte 8 pin now, handy for SD card block dumping.

regards, -A
 

GARRAPATO

Newbie level 1
Joined
Nov 5, 2010
Messages
1
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,286
Re: pic16f84 usb

One person has already done the miracle.
He is from the country with the worst politics known to men, but also with people with talent as old Picasso.
Here is the pseudo "censured" link for those who doubdt:

www_telefonica_net/web2/hidlcd

Some will post critics about "using overclocking", others will say that "not open code".
But NOW , I post:
"Those who can ... do" , those who can't ... talk critics.
 
  • Like
Reactions: be80be

    be80be

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top