PWM generation with PIC16F628


Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by HankMcSpank View Post
    now I'm no programmer and I might be laying myself bare for everyone to laugh at, but this is how I'd likely approach it...
    That is my story too... And it does not stop me.

    127 exactly might be hard to get with a POT so maybe change the range some.

    Code:
    if (pot_sample >= 122) AND (pot_sample <= 132) then
    
    if pot_sample > 132 then
    
    if pot_sample < 122 then
    Last edited by mackrackit; - 15th July 2010 at 22:31. Reason: TYPO
    Dave
    Always wear safety glasses while programming.

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