DS1307 real time clock #737
Replies: 13 comments
-
Posted at 2015-04-07 by @gfwilliams There's the module for the DS3231 RTC at http://www.espruino.com/DS3231 that might be very similar? But do you know that Espruino already has an RTC built-in? It may be you don't actually need the DS1307... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-07 by krishna ya i knw that but i have to make use of NVRAM. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-07 by alexanderbrevig Maybe move this to Interfacing? :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-07 by @gfwilliams No problem! I don't know if this is helpful, but Espruino has NVRAM too. You can use the following functions (at least on the original Espruino board) to access it:
For instance:
Obviously you still need a battery to be connected to the board for that though. (and yes, moving the topic now) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-07 by DrAzzy DS1307 interface looks considerably different in terms of control, compared to 3231. If all you need is the non-volatile memory, couldn't you use an EEPROM, like something from the AT24 series? That'd get you way more capacity, at around the same price point. 2 of my 3 Espruino boards have an AT24 in SOIC package sitting in the proto area (it also comes in DIP) Also, wait, the Espruino has 42 2-byte words worth of non-volatile memory?! That would have been really nice to know on a few occasions - that's really handy. Does the 401 in the pico have that too? (Would it be hard to put in E.NVWrite()/NVRead() or something like that? That would be a really good functionality to expose, since people coming from Arduino are used to having some built-in EEPROM. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-08 by @gfwilliams
Yep - sorry, I only really noticed it when fiddling with the RTC. It's on the Pico as well (albeit as 20 x 32 bit values at a different address). ... should probably talk about this in a new topic - but yes, it could be added to Espruino - it seems like the kind of thing that'd be fine as a module though. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-08 by the1laz Is it something that the configuration for can go into board.py files? It'd be a worthy addition to save people from trawling datasheets for the addresses for their particular board.
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-09 by @gfwilliams Well, a module could just check If implemented internally it's probably something that should go into |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-09 by krishna yes i can.. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-09 by krishna yes it will help full to me. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-09 by @gfwilliams
Are you using the Espruino Board with an up to date firmware, or are you using a different type of board? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-09 by @allObjects internal #NVRAM ...nice to know, just right for saving some ID / basic config / state information. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-24 by krishna Iam using STM32F103VCT6 espruino board, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-04-07 by krishna
can any body give me the sample code for DS1307??
Beta Was this translation helpful? Give feedback.
All reactions