easyHID question


Closed Thread
Results 1 to 40 of 49

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by keymuu View Post
    This is kind of confusing. It is in c:\pbp\usbdemo.asm and as far as I understand it is generated all over again when basic is compiled. Correct? Or have I a misunderstanding somewhere here?
    So change it!

    I saw those errors (113,118) with both version (5.14 and 5.20) of MPASM, and those errors are in c:\pbp\usbdemo.asm, rebuild at every compile? ... So I'm confused here also... ...upgrade from 5.20 to what?
    And did you read the aforementioned thread that was linked in post #26?

  2. #2

    Default

    Quote Originally Posted by skimask View Post
    So change it!
    Change what? The understanding? Yes I try to do that ....

    And did you read the aforementioned thread that was linked in post #26?
    Yes, but I can not see anything else than 3b prompting to take a close look at 18F4550.INC that could be the only thing causing something, but what?
    I looks ok to me, however I can't grasp the r,w,w and f:
    LIST p = 18F4550, r = dec, w = -311, w = -230, f = inhx32
    INCLUDE "P18F4550.INC" ; MPASM Header
    AND I can not find the above MPASM Header file,
    could that be the villain here?

    The basic question is still: Why doesn't DT's code compile and easyHID code compiles but kills the USB-port. ?????

  3. #3
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by keymuu View Post
    Change what? The understanding? Yes I try to do that ....
    FCMEN to FCMEM...Could the statement be taken any other way?

    The link in post #27....it's all about the CONFIG fuses, something that is a bit more complicated when using the 18F series PICs. Read it, learn it, live it...the sooner the better...

  4. #4

    Default

    Quote Originally Posted by skimask View Post
    FCMEN to FCMEM...Could the statement be taken any other way?
    Ok, need the optician again...
    Maybe I do not understand what you mean, but the FCMEN is in USBDemo.asm that is generated every time when USBDemo.pbp is compiled with MPASM. I can not find FCMEN in any other file, or should I find it somewhere else? So, if you try change anything in the USBDemo.asm, it will not have any effect, in matter of fact it can be deleted, and it will "born" again on the next compile of USBDemo.pbp. Correct?

    The link in post #27....it's all about the CONFIG fuses, something that is a bit more complicated when using the 18F series PICs. Read it, learn it, live it...the sooner the better...
    The better one knows... that is true
    The concern here (the last one ) is how to compile DT's USBDemo.pbp successfully. Can not see in Melanies 3 and 3b anything that could be the reason for the compile errors here. I may be blind or stupid but I do not see the error source for the the compile errors there... The files in DT's USDemo.zip should work straight away, and probably so they do in general, but not here...

  5. #5

    Default

    Quote Originally Posted by keymuu View Post
    ... compile DT's USBDemo.pbp ... The files in DT's USDemo.zip should work ...
    Steve (mister_E) and Darrel, I'm sorry that I mixed you two, sorry
    It should have been Steve's USBDemo not DT's, one should not hurry too much...

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

    Default

    Open USBDemo.PBP, look at the top of it.
    Code:
        '
        '   Pic Configuration
        '   =================
        asm
        __CONFIG    _CONFIG1L, _PLLDIV_1_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L  
                                ;              ;                      ; USB clock source comes from the 96 MHz PLL divided by 2
                                ;              ; [OSC1/OSC2 Src: /1][96 MHz PLL Src: /2]
                                ; No prescale (4 MHz oscillator input drives PLL directly)
    
    
        __CONFIG    _CONFIG1H, _FOSC_XTPLL_XT_1H & _FCMEN_OFF_1H & _IESO_OFF_1H 
                                ;                  ;               ; Oscillator Switchover mode disabled
                                ;                  ; Fail-Safe Clock Monitor disabled
                                ; XT oscillator, PLL enabled, XT used by USB
        __CONFIG    _CONFIG2L, _PWRT_ON_2L & _BOR_ON_2L  & _BORV_2_2L  & _VREGEN_ON_2L   
        __CONFIG    _CONFIG2H, _WDT_OFF_2H 
        __CONFIG    _CONFIG3H, _MCLRE_ON_3H & _LPT1OSC_OFF_3H & _PBADEN_OFF_3H & _CCP2MX_ON_3H 
        __CONFIG    _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _ICPRT_OFF_4L  & _XINST_OFF_4L & _DEBUG_OFF_4L 
        endasm
    about now?

    That would be great if you could tell us wich MPASM version you're using.

    All config fuses can be found in the MPASM Suite folder.

    The default installation path is C:\Program Files\Microchip\MPASM Suite

    First USBDemo was for the 18F4550 if you're using something else, you'll need to change some files... or go at the following
    http://www.picbasic.co.uk/forum/show...8&postcount=99

    HTH
    Steve

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

  7. #7

    Default

    Quote Originally Posted by mister_e View Post
    Open USBDemo.PBP, look at the top of it.

    about now?
    It look equal, it is like this:
    __CONFIG _CONFIG1H, _FOSC_XTPLL_XT_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
    ; ; ; Oscillator Switchover mode disabled
    ; ; Fail-Safe Clock Monitor disabled
    ; XT oscillator, PLL enabled, XT used by USB
    and is exactly eqal....
    By the way, why do you suspect your own code?
    I have not changed anything within it and that is why I'm confused here...

    That would be great if you could tell us wich MPASM version you're using.
    Downloaded it yesterday, it is 5.20

    All config fuses can be found in the MPASM Suite folder.

    The default installation path is C:\Program Files\Microchip\MPASM Suite

    First USBDemo was for the 18F4550 if you're using something else, you'll need to change some files... or go at the following
    http://www.picbasic.co.uk/forum/show...8&postcount=99
    HTH
    I'm using 18F4550, so hopefully there is no need to mess up things more in my mind, too many things to think over already...

Similar Threads

  1. USB and EasyHID Problems
    By Rob in forum USB
    Replies: 8
    Last Post: - 6th January 2007, 18:19
  2. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 06:49
  3. HIDMakerFS versus EasyHID
    By Demon in forum USB
    Replies: 4
    Last Post: - 15th August 2006, 08:01
  4. EasyHID VB help with multiple HID's
    By pfinfrock in forum USB
    Replies: 1
    Last Post: - 6th October 2005, 19:16
  5. Replies: 0
    Last Post: - 5th September 2005, 09:09

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