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

Back to Subject List

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


 
#86736 - be sure your problem easily solved again
Responding to: ???'s previous message
Vijayganesh S said:
i have already givem one sample code earlier.
and also the following simple code too not working
while i change the delay count it gives only constant same value

C:0x0000 850189 MOV TMOD(0x89),0x01
HERE:
C:0x0003 85F28A MOV TL0(0x8A),0xF2
C:0x0006 85FF8C MOV TH0(0x8C),0xFF
C:0x0009 B295 CPL 0x90.5
C:0x000B 110F ACALL DELAY(C:000F)
C:0x000D 80F4 SJMP HERE(C:0003)
DELAY:
C:0x000F D28C SETB TR0(0x88.4)
AGAIN:
C:0x0011 308DFD JNB TF0(0x88.5),AGAIN(C:0011)
C:0x0014 C28C CLR TR0(0x88.4)
C:0x0016 C28D CLR TF0(0x88.5)
C:0x0018 22 RET




HERE:
MOV TL0(0x8A),#0xF2 ;difference between immediate and
MOV TH0(0x8C),#0xFF ;direct addressing mode is only # sign
CPL 0x90.5
ACALL DELAY
SJMP HERE

DELAY:
MOV TMOD(0x89),0x01
SETB TR0(0x88.4)
AGAIN:
JNB TF0(0x88.5),AGAIN
CLR TR0(0x88.4)
CLR TF0(0x88.5)
RET



List of 41 messages in thread
TopicAuthorDate
constant delay-----problem            01/01/70 00:00      
   clarification needed            01/01/70 00:00      
   Timer 0 Mode 1            01/01/70 00:00      
       Timer 0 Mode 1            01/01/70 00:00      
         yes 16-bit mode            01/01/70 00:00      
            show the code            01/01/70 00:00      
               code            01/01/70 00:00      
                  check            01/01/70 00:00      
                  be sure your problem easily solved            01/01/70 00:00      
                     no i am using a trainer kit            01/01/70 00:00      
                        re:no i am using a trainer kit            01/01/70 00:00      
                           code again            01/01/70 00:00      
                              direct vs. immediate addressing            01/01/70 00:00      
                              be sure your problem easily solved again            01/01/70 00:00      
                                 i tried ur code            01/01/70 00:00      
                                    Please be specific!            01/01/70 00:00      
                                       oh YOU            01/01/70 00:00      
                                       re:jan            01/01/70 00:00      
                                          hello            01/01/70 00:00      
                                             use MOVX @Ri            01/01/70 00:00      
                                                8-BIT MEMORY I/O ?            01/01/70 00:00      
                                                   can't be done            01/01/70 00:00      
                                                   can be done            01/01/70 00:00      
                                                      i am asking 8-bit I/O            01/01/70 00:00      
                                                         If you read Erik's answer            01/01/70 00:00      
                                                         now you lost me            01/01/70 00:00      
                                                            Guessing what he means            01/01/70 00:00      
                                                         Set P2            01/01/70 00:00      
                                                            Write P2 once            01/01/70 00:00      
                                       tested code and pulses            01/01/70 00:00      
                                          Missing Picture            01/01/70 00:00      
                                          picture again            01/01/70 00:00      
                                             Re:Picture again            01/01/70 00:00      
                                          picture and code posted again            01/01/70 00:00      
                                    Have you Tried a fixed value?            01/01/70 00:00      
                     no i am using a trainer kit            01/01/70 00:00      
                        Divide and conquer            01/01/70 00:00      
                           And not writing them...            01/01/70 00:00      
               want a program of timer            01/01/70 00:00      
   tracing your code manually....            01/01/70 00:00      
   thanks            01/01/70 00:00      

Back to Subject List