USBDemo, something to learn USB a little bit


Closed Thread
Results 1 to 40 of 279

Hybrid View

  1. #1
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Talking Works a treat!!

    Yep got mine working today too!!! Woo Hoo!!

    Golly gosh, loaded Mr E's sample prgram, connected the USB cable and Presto - Windows detected it and it started to work first time!!!

    On the demo PCB I added a serial connector so that I can program the 18F4550 via serial ICSP, and also added a couple a RS422/232 line driver receiver so that the PC can communicate via USB to serial devices.

    I'm sure I'll have more to add once I've played around with this toy some more.

    Cheers
    Squib.

    See photo attached.
    Attached Images Attached Images  

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Now there's a circuit that made for the mister_e USBDEMO.

    Uhhh, let me guess.

    USB to DMX convertor?
    <br>
    DT

  3. #3
    Join Date
    Jan 2007
    Posts
    70


    Did you find this post helpful? Yes | No

    Default

    hey squibcakes - nice demo board..

    question... you have 3 LEDs by you USB port, is one an activity indicator by chance? I want to put a activity LED on my USB, and was wondering if that is what you have there..

    what do you plan on doing with that board, just learn? i considered building a special purpose mister e pcb as well.. but didnt.. instead i put most of the circuit on a protoboard from demicro.com, and the rest is on a breadboard with leader from sockets i put on the protoboard IO..

    that code mister e posted is.. yeah... have you got any plans to move it into .net? i may start a seperate thread detailing my progress attempting to convert the usbdemo software from vb6 to .net... i dont know if i can do it without help...

    thanks!

    Robert

  4. #4
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Default

    Hi Vacpress,

    The Two LEDs are for the PWM output and the Other green led is just connected to Vdd to indicate that there is power on the board.

    I built the board for two reasons -
    1. Get a grip on all this USB stuff
    2. Use it as a programmer for these chips.

    I added a DB-9 / Max3486 chips so that I can learn a bit about serial to usb as well.

    Now can someone please explain how to use Microchip's CDC? http://www.microchip.com/stellent/id...param=en022625

    No plans for Dot net. We use PowerBasic around these parts.

    Cheers

  5. #5
    Join Date
    Jan 2007
    Posts
    70


    Did you find this post helpful? Yes | No

    Default

    powerbasic. cool... i wish i wasnt addicted to the VB language...

    if vb would compile for mac like powerbasic does i would be extremely happy.. in the meantime ive downloaded so much stuff in an attempt to learn cross compatability... and never really got too far, as i havent got a mac so it is no fun..

    hehe... you must use power basic cuz its free... i like .net express for the same reason!

    how is the usb battle going? any luck comprehending the usbdemo code? it sure looks different from my picbasic code!

    currently i am trying to find the best usb bootloader, hopefully one that has code for the PC side as who knows, I may eventually develop something marketable!

    carry on
    -robert

  6. #6
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Default

    Yeah your right it is a battle!

    Couple of things.,... I am finding that jumping straight into USB with these 18F chips may be a bit ambitious.

    These 18F series do seem to be a bit more complex than your average 16F chips.

    Just getting my head around the config fuses and using mpasm as opposed to using PBP Compilier is mind boggling but I think I got it.

    At this stage I'm just trying to get the 18F to flash the LEDs and stuff LOL!

    On another note, I tried to compile Mr E's usbdemo.pbp file and I get all soughts of errors. Any idea why? I mean the hex file works, but cant I compile his pbp file. I want to make sure that I can get the basics working first.

    I tried tiny bootloader which apparantly supports 18F4550 chips but couldnt get it to work yet.


    Squib

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Squibcakes View Post
    On another note, I tried to compile Mr E's usbdemo.pbp file and I get all soughts of errors. Any idea why? I mean the hex file works, but cant I compile his pbp file. I want to make sure that I can get the basics working first.
    mmm, i suspect those usuals
    1. upgrade your MPASM version
    2. comment all default PBP config fuses in the 18F4550.inc file, AND if you don't have PBP 2.47, modify the LIST line to.....
    Code:
            LIST p = 18F4450, r = dec, w = -311, w = -230, f = inhx32
    once done, if everything is in the same directory, it MUST work!3

    for the Tiny loader, i know there's some DEFINEs to add... wich? i don't know, i don't and won't use it.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by vacpress View Post
    how is the usb battle going? any luck comprehending the usbdemo code? it sure looks different from my picbasic code!
    What's not clear enough?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  9. #9
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Default

    HI Mr E,

    Yep tried that but still get those errors BTW I have Mpasm 5.03, PBP 2.46.

    Anyways after searching the posts the only thing that works is this (I think maybe one of your ideas)....

    Don't use any preset fuses in the main code, and edit them manually in the .inc file. This for sure is working!!!

    I have all the fuses setting in this file, and just REM out the ones I dont use.

    OK after all that, I now have some simple programs working on the demo PCB at last including my serial coms!!!

    Squib

  10. #10
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Squibcakes View Post
    Yep got mine working today too!!! Woo Hoo!!
    See photo attached.
    I just ordered and received the wrong USB connector...AGAIN!!! (insert Mr_E's headbanging against desk picture here)...

    Could ya take a look at www.digikey.com and match up a part number if you get a chance?

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 08:55
  2. How to receive stream of bytes using PIC USART
    By unifoxz in forum mel PIC BASIC Pro
    Replies: 34
    Last Post: - 20th June 2009, 11:38
  3. Replies: 9
    Last Post: - 31st July 2008, 09:56
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 01:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 02:07

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts