All About Circuits Forum  

Go Back   All About Circuits Forum > Software, Microcomputing, and Communications Forums > Programmer's Corner

Notices

Programmer's Corner Discussion forum for all aspects of programming and software engineering. Any software programming language welcome: C, C++, C#, Fortran, Java, Matlab, etc.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 02-21-2011, 04:24 PM
Hayley Hayley is offline
New Member
 
Join Date: Feb 2011
Location: Newjersy
Posts: 1
Lightbulb 89c51rd2

Hi everybody,

am quite new in here...am not much familiar with the assembly codings..

I want to generate a PWM(pulse width modulation) using the PCA timer in 89C51RD2 microcontroller.I just needed the assembly language programm for this...The Pulse should be 20ms, The On time should be 4ms, and off time 16ms and the duty cycle must be 20%.

Please help ... I ll be greatful...:confused :
Reply With Quote
  #2  
Old 02-21-2011, 07:16 PM
Papabravo's Avatar
Papabravo Papabravo is offline
Senior Member
 
Join Date: Feb 2006
Location: Michigan, USA (GMT-5)
Posts: 5,786
Default

Do you have the datasheet for the part in question?

Here is the one I'm using

http://www.atmel.com/dyn/resources/p...ts/doc4235.pdf

So first things first. What is the frequency of the crystal or oscillator that you are using for the system?
__________________
We never have time to do it right,
But we always have time to do it over.

Last edited by Papabravo; 02-21-2011 at 07:24 PM.
Reply With Quote
Reply   Post New Thread

Tags
, , ,


Related Site Pages
Section Title
Video Lecture JK Flip-Flop - Digital
Worksheet Flip-flop circuits
Worksheet Passive integrator and differentiator circuits
Textbook Microprocessor programming : Principles Of Digital Computing
Video Lecture Representative System (Part 2) - Computer Hardware - Microprocessors
Video Lecture Counters - Digital
Video Lecture Boolean Expressions and Truth Tables - Digital
Video Lecture Boolean Algebra - Postulates - Digital
Video Lecture Working with Phase Angles (cont) - Alternating Current
Textbook Synchronous counters : Sequential Circuits Counters


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:42 AM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Powered by vBulletin
Copyright ©2000 - 2014, vBulletin Solutions, Inc.