PIC 16f877a pwm varying by using PC serial communication data

Discussion in 'Embedded Systems and Microcontrollers' started by parthisval89, Sep 17, 2012.

  1. parthisval89

    Thread Starter New Member

    Sep 17, 2012
    2
    0
    How to calculate CCPR1L in varying data?

    and also,
    CCPR1L contains the upper 8 bits of the 10 bit Duty Cycle value CCP1CON<5:4> contain the lower 2 bits
    How to divide the 8 bits and 2 bits in calculation?

    - - - Updated - - -

    I have formula and i got a pwm in standard data but i am confused,about automatic calculation in program?

    I am using Hi-tech c compiler.
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
Loading...