Maximum HPWM freq. 12F683


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Location
    Indiana, USA
    Posts
    72

    Default Maximum HPWM freq. 12F683

    I need to know the maximum HPWM frequency I can run on a 12F683 using the internal 8 MHz osc. I know that the manual says "32 point whatever" is the max for HPWM on any chip, but reading some posts with mister-e's pic calc it looks as though it can do 38 kHz for IR modulation.
    I'll be doing some IR modulating as well, but I have some 56 kHz detectors that i'd like to use,
    which would require that i output a 56 kHz signal on the HPWM output while i read the detector on another port. I really need this to be a one chip solution, insted of having a 56 kHz osc using logic chips AND having a pic to read the detector....

    so to recap.. ONE pic12F683 driving a IR led on the HPWM at 56 kHz while using the same PIC to read the IR detector on a different port. can this be done?

    Also.. I cannot install the pic calc on this computer, I don't have admin rights.....

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Page 79 of the PIC12F683 datasheet (DS41211D), Paragraph 11.3.1, Equation 11-1.
    Do that math, then do a 1/x on the calculator, and you have your freq for PWM.
    You also have to realize that with higher frequencies, you lose PWM duty cycle resolution. (See the tables right below that equation). For instance, you could run the PWM at 2Mhz, but you can only turn it on and off (1 bit resolution).
    Last edited by skimask; - 12th August 2008 at 15:58.

Similar Threads

  1. 12F683 HPWM Usage
    By MARAD75 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th November 2007, 02:16
  2. sound command & music
    By trying in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th May 2006, 14:14
  3. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  4. HPWM on a 628 is not changing freq.
    By dtit in forum General
    Replies: 2
    Last Post: - 25th February 2005, 09:34
  5. HPWM min freq ?
    By swordman in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 6th September 2004, 14:41

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