+ Post New Thread
Results 1 to 17 of 17
  1. #1
    Junior Member level 1
    Points: 1,200, Level: 7

    Join Date
    Oct 2006
    Posts
    18
    Helped
    0 / 0
    Points
    1,200
    Level
    7

    pic16f84 usb

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

    •   Alt18th December 2006, 12:55

      advertising

        
       

  2. #2
    Full Member level 2
    Points: 3,105, Level: 13
    Beowolf's Avatar
    Join Date
    Jun 2006
    Posts
    130
    Helped
    10 / 10
    Points
    3,105
    Level
    13

    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 :)



  3. #3
    Full Member level 5
    Points: 3,108, Level: 13

    Join Date
    Nov 2004
    Location
    UK
    Posts
    283
    Helped
    6 / 6
    Points
    3,108
    Level
    13

    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


    1 members found this post helpful.

  4. #4
    Full Member level 6
    Points: 3,829, Level: 14
    metal's Avatar
    Join Date
    Dec 2004
    Posts
    364
    Helped
    19 / 19
    Points
    3,829
    Level
    14

    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



  5. #5
    Member level 1
    Points: 2,264, Level: 11
    SuperUser's Avatar
    Join Date
    Feb 2004
    Location
    Bulgaria
    Posts
    38
    Helped
    4 / 4
    Points
    2,264
    Level
    11

    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: http://www.cesko.host.sk/



    •   Alt19th December 2006, 15:16

      advertising

        
       

  6. #6
    Full Member level 5
    Points: 3,108, Level: 13

    Join Date
    Nov 2004
    Location
    UK
    Posts
    283
    Helped
    6 / 6
    Points
    3,108
    Level
    13

    pic16 usb

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



    •   Alt19th December 2006, 15:18

      advertising

        
       

  7. #7
    Newbie level 2
    Points: 1,141, Level: 7

    Join Date
    Nov 2006
    Posts
    2
    Helped
    0 / 0
    Points
    1,141
    Level
    7

    pic 16f84 usb

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



  8. #8
    Junior Member level 1
    Points: 1,200, Level: 7

    Join Date
    Oct 2006
    Posts
    18
    Helped
    0 / 0
    Points
    1,200
    Level
    7

    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



  9. #9
    Full Member level 6
    Points: 6,448, Level: 19

    Join Date
    Oct 2003
    Location
    Hungary
    Posts
    329
    Helped
    6 / 6
    Points
    6,448
    Level
    19

    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:




  10. #10
    Advanced Member level 5
    Points: 14,575, Level: 29
    blueroomelectronics's Avatar
    Join Date
    Sep 2006
    Location
    Toronto, Canada
    Posts
    1,682
    Helped
    178 / 178
    Points
    14,575
    Level
    29

    pic 16f84 and usb

    As Beowolf said, just use a 18F2550 it has all the need USB hardware built in.



  11. #11
    Banned
    Points: 22,963, Level: 36

    Join Date
    May 2007
    Location
    USA & Canada
    Posts
    437
    Helped
    50 / 50
    Points
    22,963
    Level
    36

    how to use usb controller

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



  12. #12
    Member level 4
    Points: 2,351, Level: 11

    Join Date
    Jul 2007
    Posts
    75
    Helped
    7 / 7
    Points
    2,351
    Level
    11

    pic16f84a interface usb

    hello guys,

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

    Thanks,
    Dilan



  13. #13
    Advanced Member level 5
    Points: 14,575, Level: 29
    blueroomelectronics's Avatar
    Join Date
    Sep 2006
    Location
    Toronto, Canada
    Posts
    1,682
    Helped
    178 / 178
    Points
    14,575
    Level
    29

    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.



  14. #14
    Advanced Member level 5
    Points: 14,575, Level: 29
    blueroomelectronics's Avatar
    Join Date
    Sep 2006
    Location
    Toronto, Canada
    Posts
    1,682
    Helped
    178 / 178
    Points
    14,575
    Level
    29

    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.


    1 members found this post helpful.

  15. #15
    Advanced Member level 3
    Points: 17,217, Level: 31

    Join Date
    Apr 2005
    Posts
    880
    Helped
    126 / 126
    Points
    17,217
    Level
    31

    pic16f84 usb interface

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



  16. #16
    Newbie level 2
    Points: 1,343, Level: 8

    Join Date
    Jul 2005
    Posts
    2
    Helped
    0 / 0
    Points
    1,343
    Level
    8

    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



  17. #17
    Newbie level 1
    Points: 389, Level: 4

    Join Date
    Nov 2010
    Posts
    1
    Helped
    1 / 1
    Points
    389
    Level
    4

    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.


    1 members found this post helpful.

+ Post New Thread
Please login