0
11kviews
Write an assembly language to generate a rectangular waveform of frequency 1KHz and 30% duty cycle at pin P1.0 using 8051. Assume 8051 is operating at frequency 12 MHz.
1 Answer
1
1.3kviews

10kHz Means time period is 1ms ........

Duty Cycle 30% so on period is only 30% of .1ms

1. Make a delay of .01ms

call it three times ....during that time keep port high

2. Again call delay of .01ms 7 times keep the value of the chosen port logic zero

3. repeat the steps 1 and 2 forever ....

enter image description here

Please log in to add an answer.