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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/17/07 08:35
Read: times


 
#141950 - Your program is OK. Look for hardware problem
Responding to: ???'s previous message
Hello Jack,

Your program is OK. Look for hardware problem or else where.

Regards,

Charles Bannister


braun.asm
org 0
RESET1:
	LJMP MAIN
org 0x2B
TIMER2:
	CLR TF2 		;clear timer 2 interrupt
	CPL P3.5
	RETI
org 0x30
MAIN:
	mov RCAP2L, #0xF4 	; 0xCA
	mov RCAP2H, #0xD0 	; 0xCB
	mov T2CON, #4 		; setb TR2 0xC8
	setb EA 		; IE^7
	setb ET2		; IE^5
HERE:
	SJMP HERE
end
;================================================================
braun.hex
:03000000020030CB
:05002B00C2CFB2B532A6
:0F00300075CAF475CBD075C804D2AFD2AD80FEBF
:00000001FF
;================================================================
;
;  D52 V3.3.6 8052 Disassembly of braun.hex
;  07/16/07 22:14
	org	0
X0000:
	ljmp	X0030		; 0000   02 00 30 
	org	2bh
X002B:
	clr	tf2		; 002b   c2 cf      
	cpl	t1		; 002d   b2 b5      
	reti			; 002f   32         
X0030:	
	mov	rcap2l,#0f4h	; 0030   75 ca f4   
	mov	rcap2h,#0d0h	; 0033   75 cb d0   
	mov	t2con,#4	; 0036   75 c8 04   
	setb	ea		; 0039   d2 af      	
	setb	ie.5		; 003b   d2 ad      
X003d:	
	sjmp	X003d		; 003d   80 fe      
	end

D52 disassembler compliments of Jeff Post (thanks Jeff)


List of 16 messages in thread
TopicAuthorDate
AutoReload Timer2            01/01/70 00:00      
   Missing interrupt handler software            01/01/70 00:00      
      AutoReload Timer2            01/01/70 00:00      
   which deerivative?            01/01/70 00:00      
      AT89S52            01/01/70 00:00      
         as a quick hardware test...            01/01/70 00:00      
   Your program is OK. Look for hardware problem            01/01/70 00:00      
      Sorry, I didn't look in the thread before posting            01/01/70 00:00      
   Timer 2 is missing!            01/01/70 00:00      
      Maybe you're right...            01/01/70 00:00      
         Well, then the die must be wrong            01/01/70 00:00      
            maybe ...            01/01/70 00:00      
               Yes, all ports tested and o.k.            01/01/70 00:00      
                  stick another chop on and see            01/01/70 00:00      
                     Another chop/chip?            01/01/70 00:00      
                        ah, OK            01/01/70 00:00      

Back to Subject List