DS1302 RAM Space
sam_sam_sam
Posts: 2,286
I want to make sure that I understand what they have here
RAM
The static RAM is 31 x 8 bytes addressed consecutively
in the RAM address space.
So a word would that take two address space
and a byte would take one address space
I am saving these values
P Basic Code
PS· VAR· WORD
S··· VAR· BYTE
Do I have this right
·I would have used three spaces
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
Comments
I would rather say 31 bytes, or 31 X 8 bits. And I agree with you that if you·save one word and one byte you have used 3 spaces.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Thank you for confirming what I thought· was my understanding what I was reading
Is there an easy way to use all of the ram space on the DS1302 chip with a Basic Stamp
For this reason I have a subroutine and read/write variables to the DS1302 RAM one at a time.
Could you share this SubRoutine ·with me that you are talking about
I just have learned·how to·read and write to the·RAM on the·DS1302 Chip
Moskog
Thank you for confirming what I thought· was my understanding what I was reading
Thank for point out this
I would rather say 31 bytes, or 31 X 8 bits.
31 X 8 bits. This threw off a little of what I was reading that is why want to make I was understanding right
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
There is no benefit to using the burst mode to write to the DS1302 RAM since you’re not going to write 31 bytes all at once anyway…however you can use the entire 31 bytes by writing randomly. This is how most of my programs utilize the RAM. That subroutine I posted earlier (from the DS1302 Demo Code) is the key. You set the address and value to store and call the subroutine. To read RAM you simply set the address and call the subroutine and the value is returned in the variable you set for writing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Could you post the routine of how you do this
I have try ed to get this to work but have had no luck with it
However you can use the entire 31 bytes by writing randomly. This is how most of my programs utilize the RAM. That subroutine I posted earlier (from the DS1302 Demo Code) is the key. You set the address and value to store and call the subroutine. To read RAM you simply set the address and call the subroutine and the value is returned in the variable you set for writing.
I guess I do understand how to this But I do want to learn how to do it
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
But this is in the burst mode
What·I want to do is what Chris was talk about in his post
you can use the entire 31 bytes by writing randomly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering