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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
John Papas
06/15/12 15:16
Read: 1352 times
Freiburg
Germany


 
#187722 - circuit repair, high level of all adress bytes
I was trying to repair a circuit that contains the SUB-C501 microcontroller with external EPROM, SRAM and some gates. In order to repair it, i wrote a simple program in assembly and i send in Hyper Terminal a string. The program works fine in working circuis. But in circuits which have problem i do not take anything in Hyper Terminal and checking the circuit i measure something strange. I measure with oscillator the ports of high byte adress in Port2 and i see that all take some time level high, something that do not hapen in working circuits.
Does anyone cope with such a problem, does anyone can me explain what can be gong wrong?
The circuit that i send is not real because the rel one i do not have it because everything i take it in paper or in pc monitor. Is not that i do not want to show the circuit
...insert code here[/org 0
JMP START

START:
MOV A,#0xFF
MOV P1,A
MOV P3,A
MOV A,#0x7F
ANL PCON,A

MOV R0,0xFF
j0:	DJNZ R0,j0
MOV R0,0xFF
j1:	DJNZ R0,j1

AGAIN:
MOV TMOD,#0x20
MOV TH1,#0xFF
MOV SCON,#0x50
SETB TR1

SETB P1.4

MOV SBUF,#'A'
JNB TI,$
CLR TI


MOV A,#0xEF
ANL P1,A
CLR A

JMP AGAIN

;--------------------------------------
RECV:
	JNB RI,RECV
	MOV A,SBUF
	CLR RI
	RET
;--------------------------------------

END
]
thank you for every suggestion or advise

List of 14 messages in thread
TopicAuthorDate
circuit repair, high level of all adress bytes      John Papas      06/15/12 15:16      
   what's on P2 is not that intersting initially, ...      Erik Malund      06/15/12 16:46      
      oszi daten      John Papas      06/18/12 12:16      
         depends on the app, but still      Erik Malund      06/18/12 12:51      
      we'll need a schematic, I believe.      Richard Erlacher      06/18/12 19:38      
   general guidelines      Mahmood Elnasser      06/18/12 22:45      
   RE      John Papas      06/19/12 03:39      
      Hardware check      Mahmood Elnasser      06/19/12 07:34      
      anyhow this begs a question      Erik Malund      06/19/12 09:24      
         Replay      John Papas      06/19/12 15:52      
            It wouldn't hurt to know how you've connected your hardware      Richard Erlacher      06/19/12 17:03      
               new      John Papas      06/20/12 07:12      
                  Just curious...      Hal Albach      06/20/12 07:34      
                     I have to agree with Hal, it can't be done ...      Richard Erlacher      06/20/12 09:13      

Back to Subject List