• AVR Freaks

PIC24FJ64GA002 with AS3993

Author
aleix20
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2019/03/07 00:17:45
  • Location: 0
  • Status: offline
2019/09/13 04:36:56 (permalink)
0

PIC24FJ64GA002 with AS3993

Hi,
I want to use the USB capability of PIC24FJ with a Linux machine (Raspberry), but unlike other devices, it doesn't show itself as a compatible serial port under /dev/tty though it's listed as /dev/hidraw0.
The datasheet of PIC24FJ64GA002 about USB it's not very clear, it mentions that a driver could be needed and that there is support but I haven't found it.
 
Thank you in advance.
#1

5 Replies Related Threads

    ric
    Super Member
    • Total Posts : 23598
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC24FJ64GA002 with AS3993 2019/09/13 04:47:54 (permalink)
    0
    That means the firmware you have running inside the PIC is implementing an HID device (human interface = keyboards and mice), not a CDC (communications device = serial ports)
     
    You are thinking about "other" USB devices that already have fixed firmware in them. The PIC24 is a programmable device which can act as any type of USB device, depending upon what firmware is loaded into it.
     
    n.b. USB is not just a ready to run peripheral that you turn on in the PIC, it requires extensive firmware support in the PIC, which unless you are VERY familiar with USB, is not something you can write yourself from scratch, you will need library code that someone else has written.
    post edited by ric - 2019/09/13 04:49:57

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    MBedder
    Circuit breaker
    • Total Posts : 6786
    • Reward points : 0
    • Joined: 2008/05/30 11:24:01
    • Location: Zelenograd, Russia
    • Status: offline
    Re: PIC24FJ64GA002 with AS3993 2019/09/13 05:06:00 (permalink)
    0
    Since when the PIC24FJ64GA002 has the USB at all??
    #3
    ric
    Super Member
    • Total Posts : 23598
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC24FJ64GA002 with AS3993 2019/09/13 05:29:47 (permalink)
    0
    Good point. I took the OP's word that there was a USB interface.
    My guess is that they have some development board with a PIC24FJ64GA002 on it, and a USB connector, which is probably for some on board programmer, and thye just assumed it went directly to the PIC.
    As always, the devil is in the detail, and it's what they DON'T tell you that is most relevant.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #4
    mpgmike
    Super Member
    • Total Posts : 255
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: PIC24FJ64GA002 with AS3993 2019/09/13 07:50:22 (permalink)
    0
    I believe the PIC24FJ64GB is USB capable, and the A & B share the same data sheet.

    I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
    #5
    BobAGI
    Super Member
    • Total Posts : 1721
    • Reward points : 0
    • Joined: 2011/03/09 00:04:35
    • Location: Texas and Sweden
    • Status: offline
    Re: PIC24FJ64GA002 with AS3993 2019/09/13 10:47:42 (permalink)
    0
    FYI: The AS3993 is an RFID reader chip which is advertised in its datasheet as needing only a "simple 8 bit controller" to make up a complete reader.
    The example seems to use an SPI interface into the controller for sending out the detected codes.
    And I don't understand where the OP got the USB from....
    But hooking up the reader to an RPi unit would not be difficult using the SPI interface directly and then there would be no need for any PIC at all.
    And nothing to discuss here either....

    --
    Bo B
    Sweden & Texas
     
    #6
    Jump to:
    © 2019 APG vNext Commercial Version 4.5