How to do PWM using microcontroller?

Status
Not open for further replies.

zia.roghani

Member level 1
Joined
Sep 13, 2006
Messages
37
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,519
CAN ANY BODY TELL ME HOW ONE CAN DO PWM USING MICROCONTROLLER
 

Re: PWM

which microcontroller u r using??in 8051 u can use any timer with auto reload mode and enable the interrupt for this timer.then simply write the interrupt routine as u want.
 

Re: PWM

if u are using PIC controller and PIC BASIC Compiler it is very easy to generate PWM on any pin using pulsout command
 

Re: PWM

which micro u are using? if u are using AVR it is very ieasy to make pwm u should study its timers.see it in its datasheet.
 

PWM

if i using PIC12c508 & 12f508a? is it very easy too?
but i can't understand ,how to adjust cycle.because,
it had one timer and no interrupt . is it right?
 

PWM

u have to set variable on time and off time. initially increase on time and decrese off time and vice versa. plz try.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…