This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

moving data for timer to any where

hi there i strucked with the following problem.
i am using the 89s52.from that i m using the one of timer as the counter,after some time i am going to stop the counter and the value(count) form the counter i want to shift or to load to the to another reg. how can i do this with the help of accumalator is fine but in which way as TH and TL is there how i move the data from these two to ACC. plz any one can explain me with proper example

Parents
  • as i said with the ACC is fine i.e i am aware of the mov instruction i am facing the problem when i collect the data suppose THMOVE from ACC to OTHER REG1 and TLMOVE from ACC to OTHER REG2 but when i want to combne it to the single number at that point what would i do as while loading the the value in to the we ex.AA00 AA moved to the TH and 00 moved to TL but when i retrived the data how i combined the data

Reply
  • as i said with the ACC is fine i.e i am aware of the mov instruction i am facing the problem when i collect the data suppose THMOVE from ACC to OTHER REG1 and TLMOVE from ACC to OTHER REG2 but when i want to combne it to the single number at that point what would i do as while loading the the value in to the we ex.AA00 AA moved to the TH and 00 moved to TL but when i retrived the data how i combined the data

Children