Hwpw


+ Reply to Thread
Results 1 to 20 of 20

Thread: Hwpw

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    167


    Did you find this post helpful? Yes | No

    Default Re: Hwpw

    Well, I don't know what to say. I get all the same frequency with different pulse width.
    Even the program shows different pulse width.
    I even went back to the pick basic plus and i'm running for with four different timers, and they all run the same frequency, and if you set it for a different frequency, they shut down pulse width, I can control

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,643


    Did you find this post helpful? Yes | No

    Default Re: Hwpw

    Even the program shows different pulse width.
    what do you mean ,that makes little sense


    Well, I don't know what to say. I get all the same frequency with different pulse width.
    my code works perfectly on the simulator and the actual hardware
    post your code and schematic .
    Warning I'm not a teacher

  3. #3
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    167


    Did you find this post helpful? Yes | No

    Default Re: Hwpw

    I ran the code that you posted.

  4. #4
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    167


    Did you find this post helpful? Yes | No

    Default Re: Hwpw

    Walking and talking on the phone does not work well.
    I ran your program my scope has measure function all 3 channels showed the same frequency. But the duty cycle was the only difference. I used pbp setting ccp1, ccp2, ccp3 and ccp5 port c1, c2, and port b0, b5 there is also no control of individual frequency only duty cycle

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,643


    Did you find this post helpful? Yes | No

    Default Re: Hwpw

    If you don't get three frequencies with 50% duty cycle then you are not using my code ,chip or schema.


    Post your code and schema
    Warning I'm not a teacher

  6. #6
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    167


    Did you find this post helpful? Yes | No

    Default Re: Hwpw

    I will rerun tomorrow and post scope pictures. Its
    definitely possible. I did something wrong. I am only running at 40 MHz. At this time, I have 16 mhz crystal's coming.

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    2,643


    Did you find this post helpful? Yes | No

    Default Re: Hwpw

    I have 16 mhz crystal's coming.
    totally not needed for this simple test, it uses internal osc
    Warning I'm not a teacher

  8. #8
    Join Date
    Aug 2009
    Location
    Paso Robles California
    Posts
    167


    Did you find this post helpful? Yes | No

    Default Re: Hwpw

    RICHARD
    I reloaded your program exactly and it gave me
    12.54khz with a duty of 48.75 PW on channel A1
    8.02khz with a duty of 49.61 on channel C2
    10.02khz with a duty of 50.01 on channel B0

    You were absolutely correct and it works perfectly
    do you have any documentation of the settings and what to change for different freq and duty cycles Im just getting back into this after years of being away

Members who have read this thread : 9

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