Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/24/06 06:03
Modified:
  06/24/06 06:05

Read: times


 
#118995 - 1st program TMOD wrong.
Responding to: ???'s previous message
Hello Munaza,

I fixed your program. It has a lot of problems. Most are just simple mistakes. Also learn how to format you code so that it looks good when you display it to the other members on this forum.

Regards,

Charles Bannister


ORG 00H 
RESET1:	LJMP MAIN 
 
ORG 0x30

MAIN: 	;MOV TMOD,#01100000B	; TIMER 1,MODE 2 
	MOV TMOD,#00100000B
	MOV R0,#452	; COUNTER FOR MULTIPLE DELAY (0xC4)
AGAIN: 	MOV TH1,#0H 
	SETB P3.5 
	SETB TR1 
BACK: 	MOV A,TL1 
	MOV P2,A 
	JNB TF1,BACK 
	CLR TR1 
	CLR TF1 
	DJNZ R0,AGAIN 
	SJMP $          ; Missing this little thingie
END 
:03000000020030CB
:1000300075892078C4758D00D2B5D28EE58BF5A078
:0B004000308FF9C28EC28FD8EC80FE1A
:00000001FF




List of 18 messages in thread
TopicAuthorDate
im confused program not working            01/01/70 00:00      
   the upper one will never assemble!            01/01/70 00:00      
      bascom-8051            01/01/70 00:00      
         BASIC compiler; proper link            01/01/70 00:00      
   1st program TMOD wrong.            01/01/70 00:00      
      How to post code            01/01/70 00:00      
   as usual            01/01/70 00:00      
      Evidently...            01/01/70 00:00      
         do not judge people on their mistakes, j            01/01/70 00:00      
   As Usual Erik BULLIES Not Help            01/01/70 00:00      
      Instead of bullying ME why do'nt YOU hel            01/01/70 00:00      
      Charles take note            01/01/70 00:00      
      fait accompli            01/01/70 00:00      
         That's true...            01/01/70 00:00      
         Why would he?            01/01/70 00:00      
      Stop the War please            01/01/70 00:00      
         the crux            01/01/70 00:00      
   Program # 2            01/01/70 00:00      

Back to Subject List