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.

Pulse Width Modulation

Status
Not open for further replies.

Sherif Welsen

Junior Member level 1
Joined
Feb 3, 2005
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
137
Hi all,

Please I wanna you provide me with a code written in ASM for 8051 that perform the Pulse Width Modulation of some date.

Regards.
 

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,309
Reputation
4,620
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,459
Here you will find an example of a code for 8051 on PWM controlled LEDs:
https://www.iguanalabs.com/pwm.htm
There will be scores of other examples but I think this one is one of the simples and most comprehensive desription of PWM using basic 8051 (without built-in PWM block) ..

good luck and rgs ..
 

Sherif Welsen

Junior Member level 1
Joined
Feb 3, 2005
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
137
Thanks for immediate reply. Could you provide me with another examples.
 

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,309
Reputation
4,620
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,459
As you probably know, some of 8051 microcontrollers have a PWM module built in. In this case control of this module is relatively simple.
If you would like to compare more examples on PWM and 8051, do you prefer pure 8051-core (software PWM) or 8051 derivatives with buil-in PWM module (hardware solution) ?
 

redhat

Advanced Member level 4
Joined
Aug 1, 2004
Messages
116
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,296
Location
Egypt
Activity points
979
you can find an example of PWM Motor Control in Myke Predko's book which you can download from the forum
 

Sherif Welsen

Junior Member level 1
Joined
Feb 3, 2005
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
137
IanP said:
... some of 8051 microcontrollers have a PWM module built in ... do you prefer pure 8051-core (software PWM) or 8051 derivatives with buil-in PWM module (hardware solution) ?

I would prefere PURE 8051-core ( software PWM ).

Thanks inadvance.

Added after 4 minutes:

redhat said:
you can find an example of PWM Motor Control in Myke Predko's book which you can download from the forum h**p://

This book deals with PIC MCU. I need to understand it in 8051 MCU.

Regards.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top