max frequency on pwm channel 16f88


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2011
    Location
    Indian Harbour Nova Scotia
    Posts
    108

    Default max frequency on pwm channel 16f88

    What is the max frequency output on a 16F88 MCU on PB3 (ccp1), the PWM output? Tell me I can go to 38000Hz.

    In the PBP3.0 manual there's a table that shows max frequencies for given oscillator frequencies. For 8Mhz oscillator, this is 489 Hz. Is this true?

    I had 38000Hz output from a LabX1 using a 16F887 MCU. I THINK I had 38000 Hz: my hardware circuit was running (and it's supposed to work at 38000 Hz) but I DID NOT measure the frequency.

    I want to trigger an IR LED and detect the signal with a standard IR detector chip like a TSOP 18. If I can't do it with PWM, should I, can I, just toggle a IR detector at 38000Hz? (I know, detectors have a certain protocol to understand the signal, but there are some that simply detect a 38000 Hz IR signal without any fancy modulation.

    My 16F88 should be putting out 38000 Hz now...it isn't.

  2. #2
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: max frequency on pwm channel 16f88

    Quote Originally Posted by queenidog View Post
    What is the max frequency output on a 16F88 MCU on PB3 (ccp1), the PWM output? Tell me I can go to 38000Hz.
    Very simple, just check the data sheet Table 9-3.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: max frequency on pwm channel 16f88

    Hi,
    In the PBP3.0 manual there's a table that shows max frequencies for given oscillator frequencies. For 8Mhz oscillator, this is 489 Hz. Is this true?
    No, the table in the manual lists the lowest possible frequency obtainable using the HPWM command at the given oscillator frequency.

    /Henrik.

  4. #4
    Join Date
    Jun 2011
    Location
    Indian Harbour Nova Scotia
    Posts
    108


    Did you find this post helpful? Yes | No

    Default Re: max frequency on pwm channel 16f88

    Thank you all! I can't believe I've been misreading the PBP3.0 manual wrong all this time regarding the LOWEST usable frequency. It is NOT highest. And there in the spec sheet, in table 9-3 which I've not seen before (because I was just letting the HPWM command take of stuff), is a table of frequencies.

    I'm on a roll.

    Thanks again guys.

  5. #5
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: max frequency on pwm channel 16f88

    BTW, the numbers in table 9-3 are not the highest PWM frequency that the PIC can attain. It can reach much higher frequencies than those stated - depending on the resolution you want.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

Similar Threads

  1. PWM to Frequency
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th October 2011, 02:59
  2. 3 channel PWM with customize duty cycle
    By photoelectric in forum mel PIC BASIC Pro
    Replies: 56
    Last Post: - 16th May 2011, 13:49
  3. Low frequency PWM
    By Charlie in forum General
    Replies: 3
    Last Post: - 16th February 2011, 14:31
  4. 16f88 internal osc 8mhz max serial baudrate ?
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th December 2008, 23:27
  5. frequency meter from 16f84a to 16f88
    By savnik in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th November 2006, 13:28

Members who have read this thread : 1

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