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 GENERATION IN 89C2051

Status
Not open for further replies.

usmani

Newbie level 4
Newbie level 4
Joined
Oct 1, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
PaKistan
Activity points
1,331
PWM IMPLEMETATION IN 89C2051

i want to use pin 8 & 9 of 89c2051 as two inputs. and according to these i want to generate pwm out at pin 19. actully when signal comes at pin 8 it should generate an increasing pwm and when signal comes at pin 9 it should generate decreasing pwm at pin 19 to decrease the motor speed. and the code should be in C++. plz help me as soon as possible.
 

Re: PWM IMPLEMETATION IN 89C2051

Assalam,

Dear Usman,

I think if u post ur query in Microcontroller blog then might be u get more replies. Anyway u can use timer and run it in 16bit mode.

when u detect signal on pin8 u start decreasing the count and as soon u detect signal on Pin9 then u start increase the timer count in this way u can implement ur PWM .

~ Ashad Mustufa
 

  • Like
Reactions: gella

    gella

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top