Erratic behavior on a HPWM on a 16F88


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Erratic behavior on a HPWM on a 16F88

    Hi, Ken

    1) just modify Duty and Frequency ... ONLY if pots inputs changes.
    no need any PAUSE then ...

    2) "Frequency" is a Byte ... and the minimum available frequency is ... 489 Hz !!!
    rings you a bell somewhere ???



    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Erratic behavior on a HPWM on a 16F88

    Do you need PAUSE 100 after setting ADCON0?

    Robert

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Erratic behavior on a HPWM on a 16F88

    Alain,
    why should it change the data on 'only' if POT changes. It still should give me the same value and not going from 100hz then 2khz !!!
    Y I have 256 bits so I SHOULD BE GETTING MAX 256 Hz .......
    Like I said the duty cycle works fine, on both AN0 And AN1 !!
    I will try the Dont change thing, because i have no more idea
    ken

  4. #4
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Erratic behavior on a HPWM on a 16F88

    I am getting 1200 Hz with this HPWM command:
    HPWM 1,DutyCycle,350 'channel, dutycycle, frequency
    Do not make sense..... My OSCON is good at 8Mhz

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Erratic behavior on a HPWM on a 16F88

    Try fixed values just to test setup.

    Robert

Similar Threads

  1. PIC16F887 erratic behavior with DT interrupts
    By GordonCook in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th October 2012, 03:58
  2. Erratic Behavior on a 18F452
    By markcadcam in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th October 2010, 18:20
  3. erratic behavior when using MPASM vs. PM
    By cool_justin in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th June 2006, 02:08
  4. Erratic LCD behavior
    By Travin77 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 1st April 2006, 20:48
  5. Erratic PIC12F675 behavior
    By russman613 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 27th February 2006, 15:46

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