We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
A full amd complete list of all instructions available on the 8051 is here:
www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf
It's Chapter 2 of the so-called "bible" for the 8051 - 80C51 Family Programmer's Guide and Instruction Set
The other 2 Chapters are:
Chapter 1 - 80C51 Family Architecture: www.nxp.com/.../80C51_FAM_ARCH_1.pdf
Chapter 3 - 80C51 Family Hardware Description: www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf
These are absolutely foundational for any work with the 8051.
You might also want to work through this Tutorial: www.8052.com/tutorial.phtml
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
On an 8-bit processor, you always have to do everything 8 bits at a time!
SO any 16-bit quantity will always have to be handled as two 8-bit values; low & high.