1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Add USB to any PIC project for less then $3

Discussion in 'Microcontrollers' started by Mike - K8LH, Feb 28, 2010.

  1. DirtyLude

    DirtyLude Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    1,904
    Likes:
    56
    Location:
    Toronto, Canada
    Noticed this crystal is a suggested crystal in the MCP2200 datasheet. .42 in singles at Mouser and has built in capacitance, so no external caps needed.

    CSTCE12M0G55-R0 Murata Resonators
     
  2. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    Why wont it work in Parallel? a 18pf and 10pf heh

    Capacitors in Parallel

    Im no pro but thats what i would do ...
     
  3. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    Nice work Mark!!! i just added it to my basket heh. I love SMT then you had to go and make it be a Resonator type ... man its a all in one solution...

    Thanks again. I probably would have been using a Cap and Crystal forever heh

    Also it says the capacitance can be 30/33/39pF

    so 39pf can be used?

    In the datasheet for MCP2200 they have a example of:
    http://www.mouser.com/ProductDetail/Murata/CSTCE12M0G15L99-R0/?qs=8wOOb4nECAtGxVWl3FcxzQ==

    Also
    http://www.electro-tech-online.com/custompdfs/2010/12/51901A.pdf

    Page 19 ; x1 = CSTCE12M0G15L99-R0

    So heh there the same brand too
     
    Last edited: Dec 25, 2010
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Mosaic

    Mosaic Well-Known Member

    Joined:
    Jun 3, 2010
    Messages:
    2,568
    Likes:
    128
    Location:
    Caribbean

    Hmm, resonators are not noted for their accuracy...here's a .1% version...same price

    http://www.newark.com/avx/pbrc-12-00hr/ceramic-resonator-12mhz-smd/dp/96M0954
     
    Last edited: Dec 25, 2010
  6. mvs sarma

    mvs sarma Well-Known Member

    Joined:
    Oct 29, 2006
    Messages:
    3,512
    Likes:
    76
    Location:
    Hyderabad, India.
    I feel that two numbers of 22pF, one on each side, are enough. and no need to be too specific .
     
    Last edited: Dec 26, 2010
  7. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,791
    Likes:
    134
    Location:
    morristown,tn
  8. Mosaic

    Mosaic Well-Known Member

    Joined:
    Jun 3, 2010
    Messages:
    2,568
    Likes:
    128
    Location:
    Caribbean
    looks good!!
     
  9. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    yeah,. i hesitated at first since its a exe and from a site called "hackinglab" heh makes you think a bit.... but then i thought heh its Burt... hes legit! :)
     
  10. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,791
    Likes:
    134
    Location:
    morristown,tn
    It's a good program You can even program chips with it. The old school way
     
  11. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    Looks full featured heh like i can do anything needed with it heh... ill test it right now

    Ah... cant select custom PORT :( my MCP2200 is on COM8... ill have to change it heh
     
    Last edited: Dec 26, 2010
  12. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    Nice here is a small token of data from my Accelerometer UART... i have it set at 4800bps... (for now)

    Code (text):

    Terminal log file
    Date: 12/26/2010 - 8:24:15 PM
    -----------------------------------------------
    00 00 00 58 00 00 02 00 00 00 58 00 00 02 00 00
    00 58 00 00 02 01 00 01 58 00 00 02 00 00 00 58
    00 00 01 00 00 00 58 00 00 02 00 00 00 58 00 00
    02 00 00 00 58 00 00 02 00 00 00 58 00 00 02 00
    00 00 58 00 00 02 00 00 00 58 00 00 02 00 00 00
    58 00 00 02 00 00 00 58 00 00 02 00 00 00 58 00
    00 02 00 00 00 58 00 00 02 00 00 00 58 00 00 02
    00 00 00 58 00 00 02 00 00 00 58 00 00 02 00 00
    00 58 00 00 02 00 00 00 58 00 00 02 00 00 00 58
    00 00 02 00 00 00 58 00 00 02 00 00 00 58 00 00
    02 00 00 00 58 00 00 02 01 00 01 58 00 00 02 00
    00 00 58 00 00 02 00 00 00 58 00 00 02 00 00 00
    58 00 00 02 00 00 00 58 00 00 02 00 00 00 58 00
     
    58 = 0x58 which is the signal to collect the next 6 bytes of data which is, Xn,XH,XL,Yn,YH,YL

    Xn is a flag to signify X is NEGATIVE
    XH is the upper byte of int X
    XL is the lower byte of int X

    Y is the same as X but well... Y :)

    So " 58 00 00 02 01 00 01" would be Start, X=+2,Y=-1
    Simple heh

    This all falls into this USB post since its from the MCP2200... I miss my FTDI but too expensive... I like it more because i dont have to worry about crystal/resonator heh. But price matters a ton these days.
     
    Last edited: Dec 26, 2010
  13. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,791
    Likes:
    134
    Location:
    morristown,tn
    You can alias com ports but that a book in it self Google aliasing serial com ports for windows xp you'll see what I mean

    And when you get into Linux you get real power over Com ports
     
    Last edited: Dec 26, 2010
  14. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    Yeah i get it heh... Yet another reason to play with Linux... heh
     
  15. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    On the topic of linux and usb and PIC you think it would be harder or easier to write straight USB code for LINUX?
     
  16. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,791
    Likes:
    134
    Location:
    morristown,tn
    Linux has a lot out there as way of code that you could learn by and reuse. I think as good as you are at C you'll be more at home with Linux
     
  17. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    heh thanks for the complement. Im learning as i go.

    Slight off topic right here... i play lotto now almost everyday... hoping to win big... if i do i plan on buying a little set of things and hosting a contest here on the forums. Maybe like $500 worth of stuff... like sensors, buttons and a whole starter kit to making PCBs (including a printer)....

    So do me a favor and wish me luck guys... if i get it ill host something ... and some people will win.. (of course there will be 2nd and 3rd prizes) :D

    ok back on topic... I am going to setup a PC i have on the side with Linux and see how it goes. I hear Ubuntu is like all the rage in the linux world heh
     
  18. mvs sarma

    mvs sarma Well-Known Member

    Joined:
    Oct 29, 2006
    Messages:
    3,512
    Likes:
    76
    Location:
    Hyderabad, India.
    All the best of success in your learning Atomsoft !!
     

Share This Page