what is the wrong in this ??


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    8

    Default what is the wrong in this ??

    I used proteus 7 simulator to design a HID device using PIC18F2550, and when I run it the PC sound ding-dong (it mean's that new hardware had plugged in) and a dialog window (beside the watch in the tashbar appeared) say's that new hradware had plugged in ... until now I thing there is no problem .

    and then a pop window appeared that want to install the HID device driver and here I'm confused because as well as I konw that the HID devices' do not need a driver (or I'm wrong!?).

    if the HID devieces' need driver, how I can have one ?

    please help me to build my HID device.

    thanks alot.

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

    Default

    This would help if you show us your code. Unless you're using a different USB framework (such as EasyHID provide) you may indeed need a special driver.

    Can't tell for Proteus, i don't have it, i don't trust it, hence i don't use it.

    Try my USBDemo, this is enough to start.
    Steve

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

  3. #3
    Join Date
    Nov 2008
    Posts
    8

    Default

    Hello Mr.e

    thank you for your advice, but I still have some questions, and here it is ...

    1. I want the HID I/O device schema (using 18F2550).
    2. when I extract USBdemo.zip I'll have two folders (PICBasicPRO and VisualBASIC) in PICBasicPRO there is these files :


    so which file I use to program the PIC 18F2550, and what shall I do with the others'.

    thank you so much.
    Attached Images Attached Images  

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

    Default

    At the very first post of USBDemo, i send you to POST #99, which have the whole schematic in a pdf

    http://www.picbasic.co.uk/forum/show...8&postcount=99

    USBDemo_2550.pbp is the source code. When you compile it, it generate a USBDemo_2550.HEX file, this one will be use to dump in your PIC.
    Last edited by mister_e; - 6th November 2008 at 16:44.
    Steve

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

  5. #5
    Join Date
    Nov 2008
    Posts
    8

    Default

    another question ...

    I opened (USBdemo_2550.asm) I saw a line that confused me and this is it ...

    Code:
    INCLUDE	"C:\PBP\18F2550.INC"
    to make the device work probably do I need PBP installed on my PC?

    if I need PBP installed on my PC, what can I do when I don't have it?

    can any one supply me with these files :

    18F2550.INC , PBPPIC18.RAM , PBPUSB18.LIB

    and what about (USB18.inc).

    thank u Mr.e for your patient and for your helping me thanks alot.

    _____________
    anas

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    Quote Originally Posted by alwindawee View Post
    another question ...

    I opened (USBdemo_2550.asm) I saw a line that confused me and this is it ...

    Code:
    INCLUDE	"C:\PBP\18F2550.INC"
    to make the device work probably do I need PBP installed on my PC?

    if I need PBP installed on my PC, what can I do when I don't have it?

    can any one supply me with these files :

    18F2550.INC , PBPPIC18.RAM , PBPUSB18.LIB

    and what about (USB18.inc).

    thank u Mr.e for your patient and for your helping me thanks alot.

    _____________
    anas
    Yes, you need PBP. What is your general location and someone can point you to a dealer or buy direct from http://www.melabs.com/

    With out PBP you can use assembler or C, But the routine you are trying to do will need a re-write.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. LCD Showes Some Wrong Letters
    By sbobowski in forum General
    Replies: 2
    Last Post: - 23rd September 2008, 19:15
  2. Anyone know whats wrong with this code
    By Bonxy in forum Serial
    Replies: 10
    Last Post: - 9th March 2007, 16:29
  3. ADCIN - AD settings are wrong
    By teverett in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th December 2006, 16:32
  4. What am I doing wrong?
    By mankan in forum General
    Replies: 1
    Last Post: - 23rd June 2006, 19:03
  5. HDD IDE ATA 2 interface problems. code wrong?
    By rastan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th March 2005, 16:01

Members who have read this thread : 0

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

Posting Permissions

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