Hydra RTC

I have a working Hydra.
I installed the crystal for the RTC and connected a battery to the RTC.
I do know that 1.2v is on D1. I have no way to tell if the crystal is working.

The following code is in the ProgramStarted method:
DateTime dt = DateTime.Now;
if(dt.Year < 2012)
{
dt = new DateTime(2013, 11, 15, 17, 0, 0);
Utility.SetLocalTime(dt);
//Debug.Print("Set new date/time: " + dt.ToString());
}

I remove the main power from the board and then power up and the date & time I set is gone.

Am I doing this right or am I missing something?

First off, my reading of our extensions to NETMF show that the functions you need to access are part of our Premium extensions, which only come with Premium extended boards. Hydra is OSHW extensions. Some documents that will probably help your understanding:

http://msdn.microsoft.com/en-us/library/hh401481.aspx

https://www.ghielectronics.com/docs/29/realtime-clock

https://www.ghielectronics.com/downloads/man/Library_Documentation_v4.2/Premium/Index.html (navigate to GHI.Premium.Hardware Namespace > RealTimeClock Class)

https://www.ghielectronics.com/technologies/netmf/extensions

OSHW RTC additions are shown at https://www.ghielectronics.com/downloads/man/Library_Documentation_v4.2/OSHW/html/215c0915-ff8b-4869-8676-0931c1b8d6a5.htm

Would make sense to update the example to show that it’s also available there.

thanks Brett, I’m embarrassed (!), don’t know how I missed that while browsing OSHW APIs

And Yes, I’ll update the documentation before it gets logged in the new Tracker :wink:

@ Brett - Document updated! I still rely pretty heavily on our own documentation when trying to answer Forum questions; so, as you can imagine, I’m particularly frustrated when they (and consequently me) are wrong ! That’s why Gus puts me on documentation – the experienced guys don’t use the docs so they don’t find the mistakes!! :slight_smile:

2 Likes

…which is why we all love having you on the doco :slight_smile: :smiley:

1 Like

Thanks for the help.

The following is what helped me;
https://www.ghielectronics.com/downloads/man/Library_Documentation_v4.2/OSHW/html/215c0915-ff8b-4869-8676-0931c1b8d6a5.htm

Now I have a new problem since I added code for the RTC but I will start a new thread.

Thanks for the help, information has been very useful.

Now I have connected a battery (3.3 v) between pin 5 (VBAT) and pin 10 (GND) socket 1, but does not work, the mainboard does not respond, remove the battery and returns to normal operation.

The 32 kHz crystal is properly installed as well.

Any idea what could be wrong?

Thank you very much.

Topic solved, the problem was the battery, I have to use a 1.5v not 3.3v