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.

pwm output using pic16f887

Status
Not open for further replies.

pavithr

Newbie level 3
Joined
Feb 23, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,305
hello

should we use a interrupt while trying to get a software pwm using pic16f887.
i thought it is essential only when we want hardware pwm.am i right??
 

Not necessarily. You can write code as you find it apropriate.
 

Not necessarily. You can write code as you find it apropriate.

if it is possible to write a code without using interrupt can u please show me how to do it..
i am completely new to this pic codes.do u have a program that u have used for this purpose

thanks
 

hello

should we use a interrupt while trying to get a software pwm using pic16f887.
i thought it is essential only when we want hardware pwm.am i right??

It depends on your method of coding. You can use interrupts. You can also choose to use flag-polling instead of interrupt and just control everything in the main code along with the "code flow". If there are multiple tasks to be taken care of, though, using interrupt would be easier.

Hope this helps.
Tahmid.
 

You can use timer to count for exact duty cycle . when time interrupt occurs or pole flag bit of corresponding timer , High and low your GP output pin to generate pwm signal
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top