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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/30/07 05:05
Read: times


 
#140021 - cant debug a problem...
Responding to: ???'s previous message


TL EQU 07Ch ;Endereços das variaveis
TH EQU 07Dh
TS EQU 07Eh
LINE EQU 07Fh



MOV A,#0
MOV DPTR,#TEXTDB

START: MOVC A,@A+DPTR

CPL A
MOV P0,A
CALL DELAY

INC LINE
MOV A,LINE
CJNE A,#45,START
MOV LINE,#0
MOV A,#0
JMP START


DELAY: MOV TS,#3
MOV TH,#255
MOV TL,#255
DTL: DJNZ TL,$
MOV TL,#255
DJNZ TH,DTL
MOV TH,#255
DJNZ TS,DTL
RET



TEXTDB: DB 00000000b, ...More 43 values...

Please help me to debug this, i broke my head trying but couldnt. I want to build a skywriter, but when LINE reaches 26 it just reads 0's

Thanks.

List of 24 messages in thread
TopicAuthorDate
How to store data in 8051/DB command            01/01/70 00:00      
   More Detail            01/01/70 00:00      
      Data            01/01/70 00:00      
         DB            01/01/70 00:00      
            1k in db            01/01/70 00:00      
               depends            01/01/70 00:00      
                  starting to understand            01/01/70 00:00      
                     Yes            01/01/70 00:00      
                        better?            01/01/70 00:00      
                           Example ?            01/01/70 00:00      
                              need...            01/01/70 00:00      
                                 Thats it            01/01/70 00:00      
   some answers...            01/01/70 00:00      
      I got MOVC!            01/01/70 00:00      
         The datasheet is the cuestion            01/01/70 00:00      
         store the A contents away...            01/01/70 00:00      
   cant debug a problem...            01/01/70 00:00      
      First step            01/01/70 00:00      
         a skywriter...            01/01/70 00:00      
            well, if you copy crap,, you get crap            01/01/70 00:00      
      I always thought.....            01/01/70 00:00      
   Cant debug, explained + Code            01/01/70 00:00      
   I THINK i found the problem            01/01/70 00:00      
      Long lines            01/01/70 00:00      

Back to Subject List