??? 05/18/06 18:28 Read: times |
#116548 - SFR has thoroughly confused me... |
I've picked up some DS89C450's from Dallas to cut my teeth on and I'm sitting here fairly confused at the moment. I don't seem to be able to wrap my mind around how to correctly address SFRs.
Looking through the various datasheets, it seemed fairly simply. TCON, for example, is 0x88 and TMOD is 0x89. I assumed therefore that the address given related to one byte of RAM in the SFR space. Then while writing a test program in Keil uVision I saw that TCON, being bit addressable, has the range 0x88 to 0x8F. Enter confusion stage right. How can variables be mapped to this address range when TMOD clearly falls in it? I know I'm not understanding something here so I hope someone might bang me over the head with some knowledge. And before it begins, yes, I've looked at the tutorial on the left. Yes, I've downloaded AND printed out the Philips bible. And yes, I've done a search. So please treat me with kid gloves people ( ie: Eric) for if the answer is in any of the above I'm not seeing it. Thanks. |
Topic | Author | Date |
SFR has thoroughly confused me... | 01/01/70 00:00 | |
bits and bytes | 01/01/70 00:00 | |
Hmmm... | 01/01/70 00:00 | |
Always | 01/01/70 00:00 | |
does thyis make sense | 01/01/70 00:00 | |
Why? | 01/01/70 00:00 | |
Yup. | 01/01/70 00:00 | |
of course it is![]() | 01/01/70 00:00 | |
sharpen them first | 01/01/70 00:00 | |
Ah ha! | 01/01/70 00:00 | |
paper and file | 01/01/70 00:00 | |
The best of both | 01/01/70 00:00 |