Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  iriver h1x0 - RTC (real time clock) mod
« previous next »
  • Print
Pages: 1 2 [3] 4 5 ... 10

Author Topic: iriver h1x0 - RTC (real time clock) mod  (Read 77269 times)

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #30 on: December 26, 2006, 05:45:27 AM »
Quote from: LinusN on December 26, 2006, 04:48:17 AM
I think it was a bad idea to choose a chip that outputs a waveform on the alarm pin by default.

Possibly, but that is easy to say after the fact. At the time I was just looking for a chip with the features listed at the wiki. Could you suggest a better chip?

Also once the alarm has been set, it isn't a problem anymore. The trick seems to be to disable the play button with the hold switch on the main unit and set the alarm once with the remote.

Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #31 on: December 26, 2006, 06:08:42 AM »
Quote from: flintstone on December 25, 2006, 06:41:27 PM
If the alarm function works properly now,
would it be possible (...he asked with
trembling hands...) to add a patch
that started and stopped recording
based on the time of day?

Yes. But someone needs to program it. I may give it a go if I got too much spare time on my hand.
Logged

Offline jmdearras

  • Member
  • *
  • Posts: 5
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #32 on: December 26, 2006, 10:07:52 AM »
Quote from: roolku on December 26, 2006, 05:45:27 AM
Quote from: LinusN on December 26, 2006, 04:48:17 AM
I think it was a bad idea to choose a chip that outputs a waveform on the alarm pin by default.

Possibly, but that is easy to say after the fact. At the time I was just looking for a chip with the features listed at the wiki. Could you suggest a better chip?

Also once the alarm has been set, it isn't a problem anymore. The trick seems to be to disable the play button with the hold switch on the main unit and set the alarm once with the remote.


I have ordered a few DS3231 clock chips, with TCXO, and trim.  They are the same size, and look like the firmware will operate it without change.  Pinout is different.  And the -INT/SQW pin defaults to -INT, and it's disabled.  So no square wave on startup.

YBIC,
Jim
« Last Edit: December 26, 2006, 10:13:02 AM by jmdearras »
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #33 on: December 26, 2006, 11:25:01 AM »
Quote from: jmdearras on December 26, 2006, 10:07:52 AM
I have ordered a few DS3231 clock chips, with TCXO, and trim.  They are the same size, and look like the firmware will operate it without change.  Pinout is different.  And the -INT/SQW pin defaults to -INT, and it's disabled.  So no square wave on startup.

They have indeed changed the default value for the INTCN on powerup to logic 1.

Let me know how you get on.
« Last Edit: December 26, 2006, 03:34:49 PM by roolku »
Logged

Offline jmdearras

  • Member
  • *
  • Posts: 5
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #34 on: December 26, 2006, 11:30:00 AM »
Quote from: roolku on December 26, 2006, 11:25:01 AM
Quote from: jmdearras on December 26, 2006, 10:07:52 AM
I have ordered a few DS3231 clock chips, with TCXO, and trim.  They are the same size, and look like the firmware will operate it without change.  Pinout is different.  And the -INT/SQW pin defaults to -INT, and it's disabled.  So no square wave on startup.

They have indeed changed the default value for the INTCN on powerup to logic 0.

Let me know how you get on.

I will. I actually ordered these a week ago, before I hit this issue, it was luck they fix it.  I went for the TCXOw/trim feature, as I am an accuracy freak.  It also can return it's temperature.
Logged

Offline jmdearras

  • Member
  • *
  • Posts: 5
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #35 on: December 27, 2006, 06:49:13 PM »
Quote from: roolku on December 26, 2006, 11:25:01 AM
Quote from: jmdearras on December 26, 2006, 10:07:52 AM
I have ordered a few DS3231 clock chips, with TCXO, and trim.  They are the same size, and look like the firmware will operate it without change.  Pinout is different.  And the -INT/SQW pin defaults to -INT, and it's disabled.  So no square wave on startup.

They have indeed changed the default value for the INTCN on powerup to logic 0.

Let me know how you get on.

The parts arrived and I have installed 4 DS3231 chips so far.  They work perfectly with the patch code.  Also, they have no effect on operation even without RockBox installed, including the alarm patch.  The first one I installed was on an old iHP120 I had just repaired, but had not yet flashed Rockbox.  After installation, the iRiver firmware ran without noticing the new chip.  Then when I flashed Rockbox and installed the patched code, the clock showed up, and alarms worked!

Here's the wiring (DS3231 shown upside down, as installed):



Here's the VBat connection point, from a recommendation:


This point is not directly connected to the battery, there is a RC curcuit in the path of unknown value, that causes this point to rise to vBat (no diode drops) over a few seconds after initial battery connection.  

Here's Ground:



Here's the play pad, for the Alarm part of the mod:



I prepared the chip for mounting upside down with superglue by flatening and shortening the leads as below:



(Now that I am writing this, I realize there is no good reason to mount the chip upside down, after bending the leads flat like this!  Hindsight is 20/20! )

Here's where I super glued the chip:



Chip installed:



Here's the final product:



Many thanks to my son for taking the pictures, sizing and adding graphics!

YBIC
Jim
Logged

Offline Peter200lx

  • Member
  • *
  • Posts: 45
    • A site about another Great Device
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #36 on: January 03, 2007, 11:50:04 AM »
I'm getting an error when trying to build against the latest CVS, is there anything else I should try?

http://www.rockbox.org/tracker/task/6419

Logged
peter.olson [at] gmail {dot} com

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #37 on: January 04, 2007, 07:35:00 AM »
Quote from: jmdearras on December 27, 2006, 06:49:13 PM
The parts arrived and I have installed 4 DS3231 chips so far.

Great stuff. I have added a link to this posting to the Wiki page.

Logged

Offline IpaqMan

  • Member
  • *
  • Posts: 13
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #38 on: January 04, 2007, 09:42:48 PM »
Quote from: Peter200lx on January 03, 2007, 11:50:04 AM
I'm getting an error when trying to build against the latest CVS, is there anything else I should try?

http://www.rockbox.org/tracker/task/6419


I ran into that same problem, too.  I modified the patch file as follows:

 #endif /* HAVE_EEPROM_SETTINGS */
@@ -136,6 +137,8 @@
 drivers/rtc/rtc_pcf50605.c
 #elif (CONFIG_RTC == RTC_S3C2440)             <---
 drivers/rtc/rtc_s3c2440.c                                  <---
+#elif (CONFIG_RTC == RTC_DS1339C)
+drivers/rtc/rtc_ds1339c.c

This seemed to fix the problem.
« Last Edit: January 04, 2007, 09:48:31 PM by IpaqMan »
Logged

Offline Software_Samurai

  • Member
  • *
  • Posts: 10
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #39 on: January 12, 2007, 08:55:43 PM »
Fantastic mod! I've been depressed that my poor H120 didn't have an RTC. (But it will soon now!)

IpaqMan: Did you modify the patch file and save it back into the system, or will I need to download the patch file and apply your patch to it?

Cheers!

PS: I ended up buying 10 of the DS3231 chips. As soon as I mod my H120 and make sure it's all working, I'd be more than happy to sell the remaining 9 to anyone for $6/ea (+shipping...probably $2 or less I'm guessing).
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #40 on: January 13, 2007, 10:01:57 AM »
Quote from: Software_Samurai on January 12, 2007, 08:55:43 PM
PS: I ended up buying 10 of the DS3231 chips. As soon as I mod my H120 and make sure it's all working, I'd be more than happy to sell the remaining 9 to anyone for $6/ea (+shipping...probably $2 or less I'm guessing).
Maxim ships them as samples for free ... (you usually get 2 pieces; I'm using various Maxim samples at my university and there's no problem in getting hands on them)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Software_Samurai

  • Member
  • *
  • Posts: 10
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #41 on: January 13, 2007, 03:24:14 PM »
Quote from: bluebrother on January 13, 2007, 10:01:57 AM
Maxim ships them as samples for free ... (you usually get 2 pieces; I'm using various Maxim samples at my university and there's no problem in getting hands on them)
I tried to ask for samples, but they told me that since I wasn't with any university or company (I'm just an individual doing a home-mod project), I'd have to purchase them. :(

Cheers!

p.s. I only have 8 chips left... Accidentally broke a pin off of one.  :-\
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #42 on: January 13, 2007, 08:01:22 PM »
Quote from: Software_Samurai on January 12, 2007, 08:55:43 PM
IpaqMan: Did you modify the patch file and save it back into the system, or will I need to download the patch file and apply your patch to it?

The patch on the tracker is up-to-date.
Logged

Offline Software_Samurai

  • Member
  • *
  • Posts: 10
Re: iriver h1x0 - RTC (real time clock) mod
« Reply #43 on: January 13, 2007, 09:08:00 PM »
Quote from: roolku on January 13, 2007, 08:01:22 PM
The patch on the tracker is up-to-date.
Thanks! I just finished installing the chip in my H120, so now I'm off to build a custom Rockbox for it!  >woot!<

Cheers!
Logged

Offline Software_Samurai

  • Member
  • *
  • Posts: 10
It works!
« Reply #44 on: January 14, 2007, 08:55:21 AM »
Success! My little H120 now has a real time clock! >woot!<

Just a note to anyone else who is thinking about doing this mod: Use 30 gauge wire! Anything bigger and it will put too much stress on the little pins on the chip when you're trying to bend the wires around.

Cheers!
Logged

  • Print
Pages: 1 2 [3] 4 5 ... 10
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  iriver h1x0 - RTC (real time clock) mod
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.104 seconds with 14 queries.