USBDemo, something to learn USB a little bit


Closed Thread
Results 1 to 40 of 279

Hybrid View

  1. #1
    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

  2. #2
    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

  3. #3
    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.

  4. #4
    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.

  5. #5
    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

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


    Did you find this post helpful? Yes | No

    Default

    interesting. So i can't confirm if it's a MPASM problem (5.06 now) or a PBP V2.46 problem.

    I know they fixed the config fuse problem in 2.47, but can't say if they have only edit the .INC file (LIST line) or they also change something else.

    Anyways, if it's working
    Steve

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

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


    Did you find this post helpful? Yes | No

    Talking Got CDC driver working!!!

    Mr_E
    Yeah ok well thanks for your input anyway - always welcome I'm happy to edit the the .inc file and leave it at that.

    Great news! I finally got the CDC virtual comport working!!!!!!

    Now I can send data via USB (virtual comport) and out of the Pic 18F4550 USART! and vice versa!

    I'm stoked that this actually works!

    Squib

  8. #8
    Join Date
    Jan 2007
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Good

    Thanks for your sharing!


  9. #9
    Join Date
    Feb 2007
    Posts
    9


    Did you find this post helpful? Yes | No

    Default Nice

    Thanx for share

    I have a problem when I program the PIC with the version of the zip and that I makes all the connection necessary,
    I connect it on the USB and Windows says to me every 3 minutes Unrecognized device

    20MHz
    10nF on pin 18
    resistor 1k5 on pin 23 ?

    what did I wrong?

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