+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 3
    Points: 420, Level: 4

    Join Date
    Mar 2011
    Posts
    4
    Helped
    2 / 2
    Points
    420
    Level
    4

    Virtual PIC18F4550 USB communication (Proteus & MPLAB)

    Hi,
    I have been doing virtual PIC18F4550 USB communication project using MPLAB and Proteus. I managed to connect virtual Pic board using Proteus VSM debugger in MPLAB (Win XP makes "USB connected" sound). I installed required drivers so I can see that PIC18F4550 is connected.
    My questions would be:
    o If I virtual can send some data to HyperTerminal?
    o If yes, how?
    o Or should I buy components, build the board and then try to send data?
    thx.

    p.s. I attached my MPLAB project and Proteus file with board schematics in .rar file.
    Attachment 54188

    •   AltAdvertisment

        
       

  2. #2
    Newbie level 3
    Points: 420, Level: 4

    Join Date
    Mar 2011
    Posts
    4
    Helped
    2 / 2
    Points
    420
    Level
    4

    Re: Virtual PIC18F4550 USB communication (Proteus & MPLAB)

    I found out that USB simulation is very hard. Simulation software would have to simulate USB host device, simulate enumeration process and even would have to
    allow device driver installation - it would be very similar to whole
    virtual PC machine. Other approach would be to create some kind of
    universal virtual device and it would not be easy either.
    For simulation purposes use UART as communication interface rather
    than USB. UART is easy to simulate, USB is not.



    •   AltAdvertisment

        
       

  3. #3
    Newbie level 4
    Points: 767, Level: 6

    Join Date
    Aug 2011
    Location
    india
    Posts
    6
    Helped
    1 / 1
    Points
    767
    Level
    6

    Re: Virtual PIC18F4550 USB communication (Proteus & MPLAB)

    Eimantas can u please tell me how to use your code to send a value to PC via USB



    •   AltAdvertisment

        
       

  4. #4
    Advanced Member level 4
    Points: 7,116, Level: 20
    xpress_embedo's Avatar
    Join Date
    Jul 2011
    Location
    India
    Posts
    1,160
    Helped
    199 / 199
    Points
    7,116
    Level
    20
    Blog Entries
    4

    Re: Virtual PIC18F4550 USB communication (Proteus & MPLAB)

    Quote Originally Posted by hareesh350 View Post
    Eimantas can u please tell me how to use your code to send a value to PC via USB
    Have a look at these links...
    You will find many usb tutorials and projects with mikroC, CCS PIC-C and MPLAB C18 Compiler

    https://sites.google.com/site/coolem...sing-mplab-c18

    https://sites.google.com/site/coolem...nitoring-syste

    https://sites.google.com/site/coolem...sing-ccs-pic-c

    https://sites.google.com/site/coolem...ome/pic18f4550

    https://sites.google.com/site/coolembeddedlaboratory/

    Hope this helps


    1 members found this post helpful.

--[[ ]]--