Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] Problem with PWM-pic 16f877

Status
Not open for further replies.

derser

Member level 1
Joined
Sep 24, 2008
Messages
33
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,502
Hello Friends.
I am trying to control PWM from keypad.In the beginning I load-CCPR1L with value,that produce-8uS output impuls.When I press button I add value 0x14 that must produce 16uS output impuls.But the output impuls is not 16uS,it is about 100uS.I cannot find mistake in code.Where is mistake? I add sample of the code where-firs I load two registres to see-if value in CCPR1L is greater or lower some values.If it is ok-I add-0x14 to increase impulse.The freq of module is 5KHz.
 

Attachments

  • code.txt
    2.2 KB · Views: 54

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top