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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/04/05 21:20
Read: times


 
#86581 - code
Responding to: ???'s previous message
hERE IS THE CODE:


MOV TMOD,#0x01
REPEAT: MOV R4,#0xA1
MOV R2,#0x42 ;...........Time interval data location
MOV R3,#0x00 ;...........
MOV DPTR,#0x4400 ;........output port data location
AGAIN: CLR A
MOVC A,@A+DPTR
MOV P1,A
INC DPTR
CLR A
MOVC A,@A+DPTR
MOV P2,A
INC DPTR
MOV R0,DPL
MOV R1,DPH
MOV DPH,R2
MOV DPL,R3
CLR A
MOVC A,@A+DPTR
MOV TL0,A
INC DPTR
CLR A
MOVC A,@A+DPTR
MOV TH0,A
INC DPTR
SETB TR0
HERE: JNB TF0,HERE
CLR TR0
CLR TF0
MOV R2,DPH
MOV R3,DPL
MOV DPH,R1
MOV DPL,R0
DJNZ R4,AGAIN
SJMP REPEAT
END

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