1 C Square wave Mode2.asm
chyavan-mc_Basic-8051-Assembly-Level-and-Embedded-C-Programs/Set 7/1 C Square wave Mode2.asm
org 000h
	mov tmod,#02h
	mov tl0,#00h
	mov th0,#00h	;(tl0,th0)=(00,00) for max delay and (FF,FF(Auto-reload)) for minimum delay
repeat:	setb tr0
wait:	jnb tf0,wait
	clr tf0
	cpl p1.5
	sjmp repeat
	end