PWM of PIC16f877

Posted on 2006-05-20
Last Modified: 2013-11-12
Hi everyone,

I have set up a 40Khz oscillator using PWM utility, using the following code
// pic @ 4 mhz, prescaler 1

TRISC =0x00;
PORTC =0x00;
CCPR1L =0x0C;
CCP1CON =0x2C;
PR2 =0x18;
T2CON =0x04;

I want to know how to send 10 pulses only with a delay of 30 msec in between two pulse trains.

Please help,


Question by:vpool
    1 Comment
    LVL 1

    Accepted Solution


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    This article explores the difference between two entities: List and Category.   In part one,  we'll look at the basic concepts, and set some groundwork.  In part two, we'll get to some conclusions. I know that these two things are different, but…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now