How to setup 38kHz PWM with PIC18F1330


Results 1 to 15 of 15

Threaded View

  1. #2


    Did you find this post helpful? Yes | No

    Default Re: How to setup 38kHz PWM with PIC18F1330

    Quote Originally Posted by flotulopex View Post

    What is actually the highest PWM frequency I can get with the 8MHz crystal?

    The DS is confusing me a lot :-(
    Hi

    If you look on page 129 of the data sheet. There is a chart of Fosc vs. PWM frequency.
    They do not list 8mhz, but the highest 4mhz frequency is 3.9khz. So I guess you can expect
    it to be double at 8mhz or 7.8Khz

    If you configure the oscillator for 4x HSPLL you could get closer.

    8mhz crystal 4x HSPLL - PWM freq = 31.2khz max

    Did the PWM output anything, you didn't say?
    Last edited by mark_s; - 5th March 2015 at 17:54.

Similar Threads

  1. 38Khz Modulator
    By Gord11 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th September 2011, 08:14
  2. manual hardware PWM setup on 16F1824
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 31st January 2011, 18:34
  3. Use Button For setup
    By tump in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 21st November 2007, 19:43
  4. Generated square wave 19Khz and 38Khz
    By blinkstar88 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th August 2007, 16:40
  5. pic12f683 setup
    By erice1984 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th July 2007, 11:48

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