Thread: Hello and PWM help

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    2

    Hello and PWM help

    Hello everyone my name is Josh I am a beginner with C code(I don’t know how to write at all), I am looking at a book: C++: A Beginner's Guide, Second Edition, Herbert Schildt.

    The majority of code I need to write will be PWM (Pulse-width modulation), I want to program a PIC to turn on some LEDs based on the current time, I would like them to fade on and off(PWM). Does anyone know of some info/resource I can use to help explain how to write PWM(I don’t want anyone to write it for me)

  2. #2
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Your question boils down to "how do I use google?" Try this:
    pic pwm - Google Search

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Joshp689 View Post
    Hello everyone my name is Josh I am a beginner with C code(I don’t know how to write at all), I am looking at a book: C++: A Beginner's Guide, Second Edition, Herbert Schildt.
    Tell me... if you had a Ford to fix... would you try to do it from a Chevy manual?

    If you want to learn C... learn C... not C++.

    (Yes, they're two completely different things)

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    You'll need to get some books by a different author as well.
    bullschildt
    Schildt books might be easy on the eye, but when it comes to technical accuracy, they're about as useful as a mills & boon novel.

    See our book list sticky thread.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Dec 2011
    Posts
    2
    Could you move this thread to the right board and give me some suggestions on a better book?

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    This is the right forum, and how hard did you look for this -> C Book Recommendations
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed