By: Masud-ul-Hasan
20
Ex4-1: Pulse Wave Generation
Write a program that creates a periodic waveform on P1.0 with
as high a frequency as possible. What are the frequency and
duty cycle of the waveforms?
ORG
0000H
LOOP:
SETB
P1.0
; one m/c cycle
CLR
P1.0
; one m/c cycle
SJMP
LOOP
; two m/c cycle
END
Frequency = 1/4
µs = 250kHz
Duty Cycle = 25%