Generating High Resolution Sine wave Using PIC's PWM

Discussion in 'Embedded Systems and Microcontrollers' started by priyersi, Jan 17, 2017.

  1. priyersi

    Thread Starter New Member

    Feb 25, 2013
    9
    0
    Hi all,

    I am trying to generate sine wave using PIC18F2550's PWM and a low a pass filter. I need to generate sine waves in the range of 100- 200 Hz with a resolution of 0.5 Hz . But the maximum resolution I could get now is 4Hz. I use an 8 MHz internal oscillator. CCP1 is used for generating PWM.

    Can any one suggest me a solution ?
     
  2. AlbertHall

    AAC Fanatic!

    Jun 4, 2014
    6,212
    1,446
    Use an external 48MHz clock source.
    Use a different PIC with higher internal clock frequency available.
     
    priyersi likes this.
  3. LesJones

    Well-Known Member

    Jan 8, 2017
    1,423
    337
    Last edited: Jan 17, 2017
    priyersi likes this.
  4. jjw

    Member

    Dec 24, 2013
    236
    34
    priyersi likes this.
  5. priyersi

    Thread Starter New Member

    Feb 25, 2013
    9
    0
    Thank You all for your suggestions !

    Using a different PIC or adding DAC is not possible for now as I already have the circuit made on a PCB.

    I will give a try to jjw's suggestion and update you.
     
Loading...