0
12kviews
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.4kviews

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 …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.