Support and General Use > Hardware
iriver h1x0 - RTC (real time clock) mod
x1jmp:
Yesterday I did my first soldering ever (we don't do this at school >:().
After some hours of difficult soldering under the microscope (at first connected Vcc to SDA...) the chip worked perfectly.
I had to use the "deprecated" DS1339c chips, because I first read about the DS3231 after I received the samples.
So the difficult part after the soldering was to disable the sqare wave, as I wasn't able set the alarm in advance because of the autodetect feature.
Unfortunately I have no soldering gun at home and forgot to take the remote with me. It ended up in switching the hold switch off, pressing a button and switching it on again very fast hoping there's no signal from th RTC chip ;D
After some minutes I finally managed to get into settings menu for setting an alarm.
roolku:
--- Quote from: Mmmm on February 21, 2007, 01:14:44 PM ---Ah, yes...it's gone out of date already ::)
Just those #ifs and#ifdefs by the look of it......
Should be ok now.... Try the same link for the updated version
--- End quote ---
Hi Mmmm,
I got the same compile errors as last night and on closer inspection it appears that I am missing the files user_action.c and user_action.h. Is it possible you forgot to include them in the patch?
EDIT:
I pinched the two files from an older version of the patch and it seems to work now. You could append the file below to your patch.
There are two minor clashes between our patches that were easily resolved. I have put a compiled build at the URL below. Please report any problems.
http://roolku.pwp.blueyonder.co.uk/rockbox_rep_rtc_r12213.zip
[attachment deleted by admin, too old]
roolku:
--- Quote from: x1jmp on February 21, 2007, 01:57:50 PM ---Yesterday I did my first soldering ever (we don't do this at school >:().
After some hours of difficult soldering under the microscope (at first connected Vcc to SDA...) the chip worked perfectly.
--- End quote ---
This is really impressive. Congratulations. And under a microscope as well.
I'll add you to the "Hall of successful Modders" :)
--- Quote from: x1jmp on February 21, 2007, 01:57:50 PM ---After some minutes I finally managed to get into settings menu for setting an alarm.
--- End quote ---
Once you got over the initial hurdle you should be fine. During normal operation the battery will never discharge enough to fail the backup supply.
stripwax:
It should be possible to have the firmware autodetect the square wave too and automatically disable the alarm if the alarm has never actually ever been set before (i.e. on the first reboot after installing the mod). Has anyone looked into that or is it not really worth it?
roolku:
--- Quote from: stripwax on February 21, 2007, 05:48:43 PM ---It should be possible to have the firmware autodetect the square wave too and automatically disable the alarm if the alarm has never actually ever been set before (i.e. on the first reboot after installing the mod). Has anyone looked into that or is it not really worth it?
--- End quote ---
I think it should be possible. In fact I expected it to work like that, considering it can disable a 'real' alarm. However since it is only a minor inconvenience after the initial installation I haven't looked into it again, especially as it would require me to power down the chip in order to test it.
EDIT:
I just had a look at the code and realised that I had in fact optimised away the functionality that was there originally in an attempt to save an I2C write. There is a new patch with it restored on the tracker - untested, but should work. Thank you stripwax for making me check again and apologies for the unnecessary grief that has caused.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version