+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Full Member level 3
    Points: 1,517, Level: 8

    Join Date
    Jul 2011
    Posts
    161
    Helped
    0 / 0
    Points
    1,517
    Level
    8

    anyone has test mikroc pro usb hid code on hardware

    hiz to all.

    i tried the mikroc pro hid example code in help. it is working great in proteus but when i program the same program in 18f4550, it was complete dead. i dont know what is the problem.

    i read that in a forum that i need to set register values of project.

    anyone has used that code in hardware?? if yes plz give me register settings or post your project.

    thanks in advance

    •   Alt14th November 2012, 17:07

      advertising

        
       

  2. #2
    Banned
    Points: 6,265, Level: 18

    Join Date
    Jul 2012
    Posts
    1,192
    Helped
    171 / 171
    Points
    6,265
    Level
    18

    Re: anyone has test mikroc pro usb hid code on hardware

    What is the oscillator frequency you are using? 48MHz? PIC18F4550 runs at 25 MHz max. zip and post your project files and proteus file. Do you use mcHID.dll?



    •   Alt14th November 2012, 17:35

      advertising

        
       

  3. #3
    Full Member level 3
    Points: 1,517, Level: 8

    Join Date
    Jul 2011
    Posts
    161
    Helped
    0 / 0
    Points
    1,517
    Level
    8

    Re: anyone has test mikroc pro usb hid code on hardware

    i have used 8MHz. its running fine in proteus but no response on hardware.



    •   Alt14th November 2012, 17:55

      advertising

        
       

  4. #4
    Advanced Member level 4
    Points: 10,955, Level: 25
    Kripton2035's Avatar
    Join Date
    Jul 2001
    Location
    Western Europe
    Posts
    1,136
    Helped
    205 / 205
    Points
    10,955
    Level
    25

    Re: anyone has test mikroc pro usb hid code on hardware

    take a look at datasheet section 2.3 Oscillator Settings for USB
    there are only some good oscillators possibilities for usb to work properly
    in proteus, the simulation is always good for that timing... but not in real life.



  5. #5
    Full Member level 3
    Points: 1,517, Level: 8

    Join Date
    Jul 2011
    Posts
    161
    Helped
    0 / 0
    Points
    1,517
    Level
    8

    Re: anyone has test mikroc pro usb hid code on hardware

    mikroc pro set all the registers by itself. i dont know what settings should i do to get the hardware running like simulation



--[[ ]]--