EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / USB WITH PIC18F4550 urgent help

USB WITH PIC18F4550 urgent help

|

Microcontroller › PIC › USB WITH PIC18F4550 urgent help

  • This topic has 6 replies, 5 voices, and was last updated 13 years, 2 months ago by P.Maaligai Parai Karuppa Samy.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • June 11, 2012 at 6:22 am #1839
    rahul saxena
    Participant

    please i need help to run USB module in PIC18F4550……….

     

    i want to display ADC data on hyperterminal using USB in PIC18f4550……

     

    if anyone have code for this…. ..

     

    please send me on [email protected]

    June 13, 2012 at 12:35 pm #8022
    midhun
    Participant

    ADC data after conversion will be found in two registers ie, ADRESH and ADRESL. you need to save the ADRESH value to a variable which is intiger in format. now you need to rotate the value of variable left 8 times. Now the * LSB will be free. You just OR the ADRESL value with this variable.

     

     

    This steps will give the value of ADC in a single variable.

     

    Now you just seperate each digit of the same variable by finding the modulus of the variable by dividing it with 10.

     

     

    JUST TRY THIS….yes

    June 13, 2012 at 12:40 pm #8023
    midhun
    Participant

    STEP 1: Read the value from ADRESH and ADRESL.

    STEP 2: Combine both to a single variale.

    STEP 3: Seperate each digit.

    STEP 4: Convert to ASCII.

    STEP 5: Send it to serial port, by placing it in TXREG.

    June 13, 2012 at 5:15 pm #8029
    Roy Thomas
    Participant

    USB Module in 4550 can be used in different classes.

    To keep things simple search code for HID class in PIC. Microchip Has example code.

    Then read ADC and convert to BCD and then to ASCII and then to USB.

     

    But Hyperterminal, It is for serial port. If you want PIC to work as USB to serial I think CDC classs is the way to go. Not sure anyway.

    All the best

     

    Roy Thomas

    June 14, 2012 at 4:33 am #8031
    Anonymous
    Guest

    thanks guys….but i want to use inbuilt USB module of PIC18F4550…………..

     

    i have done the program till adc data conversion with ascii value………………..

     

    now i want to display it on my PC using USB module……….for doing this presently i m using CDC program provided by microchip…………………………….

     

     

    but i can’t get the succes to implement this……pls help me…..

     

     

     

    June 19, 2012 at 12:22 pm #8077
    midhun
    Participant

    What you cah do is you can change your compiler to microc from MICROCHIP. it will be a very useful tool for you to do thic work. there are so many inbuilt functions present in this tool.

    You can use inbuilt USB library. 

    And also there will be example programs with this tool, which will make your work an easy task.

     

     

    Best of luck!

    October 2, 2012 at 10:13 am #8635
    P.Maaligai Parai Karuppa Samy
    Participant

    please tell how to used inbuild usb data communication please shared the step for compiling inbuild usb

     

    or

     

     

    please share the coding

     

     

    please,please ,help me …….

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • What is involved to convert a small town to fiber optic? December 13, 2025
  • Measuring controller current output with a meter December 13, 2025
  • Oshonsoft MSSP simulation question December 13, 2025
  • Droplet1 December 12, 2025
  • Help to Identify capacitor fault December 12, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise