2024-09-27 04:00 PM - last edited on 2024-09-28 04:09 AM by Peter BENSCH
Hello,
I recently got a board I designed with the M48T201V and a 4MB SRAM chip. I cannot find any example code for the M48T201V, with or without the memory. Does anyone have any examples?
Thank you,
Drew
2024-09-27 05:05 PM
Nothing looks to be dropping out of a quick search.
Suggest you test by dumping the content of the memories you've mapped into your processor's address space.
You should be able to read the last 16-bytes decoded in the RTC's "space", and you should do a write/read of the 4MB RAM address space.
2024-09-27 08:28 PM
Hello,
I am not sure what the answer you gave is referring to. The board I built has only the M48T201V and a 4MB SRAM chip. I connect them to a microcontroller for me to code. I am not using the M48T201V and SRAM directly to control the MCU. I want to use both independently. The chips are in a BoosterPack form factor and are MCU independent. I hope that clears things up.
Thank you
2024-09-27 11:02 PM
Hello,
Still not clear. Example code on which microcontroller? Which CPU?
M48T201 is a time keeper and a NVRAM that you can interface with FMC/FSMC on STM32 microcontroller for example.
2024-09-28 12:37 AM
Hello,
I am using a TM4C129EXL. As long as the code is in C though and does not use any special libraries that I cannot find source code of (i.e. IP cores), it is fine.
I understand that it is a timekeeper but what I am looking for is how to read the time, tell the chip to output a PWM on the dedicated PWM out pin, tell it to read/write to the SRAM, etc....
I hope that clears it up, thank you,
Drew
2024-09-30 01:49 AM - edited 2024-09-30 01:50 AM
Hello,
In that case, I invite you ton contact TI as it's the TM4C129 processor provider that will manage the read/write operations of the external memory, read the M48T201V datasheet and implement your own library according to what TI provided to you. Because the example code depends on the main processor and how its memory interface is working.
2024-09-30 01:40 PM
Hello,
So, the M48T201V clock output is stored in the SRAM and I need to read and write to the SRAM in order to get the information. Am I correct in that? The M48T201V will not work then without some kind of RAM.
Thank you
2024-10-16 09:30 PM
Hello,
It has been a while and I have not received any response. Does my previous post have any merit? Also, will the SRAM chip not work when connected to the M48T201V without the SNAPHAT connected? Are they note independent as long as both are powered?
Thank you,
Drew