Eddie,
--- In Eddie Dawydiuk <> wrote:
>
> I looked into this further and was able to reproduce the problem you
> reported. The TS-Bat3 has a default threshold voltage(as you found it
> is approx. 3.25V). If the battery voltage drops below the threshold
> voltage softJP3 will be set. Other than explicitly putting the board
> into low power mode, the TS-Bat3 will enter low power mode if JP3
> or softJP3 is set and the board is running off batteries. I found
> there is a bug in the firmware of the TS-Bat3. The problem being
> once softJP3 is set due to the battery voltage falling below the
> threshold voltage the IRQ to read the ADC is being masked. As a
> result the board will not awake from low power mode once the
> battery voltage drops below the threshold voltage unless the
> AVR is reset via the ISP pins as you have reported. There is a
> workaround for this though, the threshold voltage is store in the
> e2 of the AVR at location 0x80 and 0x81. If you set the threshold
> voltage to 0V this code path will be avoided. You can do this with
> the following undocumented commands.
>
> bat3 --eeval 0 --eew 128
> bat3 --eeval 0 --eew 129
>
> At this point the threshold is set to 0V. To verify this is true reset
> the AVR using the ISP header run the following commands.
>
> $ ./bat3 --eer 128 | head -n 1
> 80:00
> $ ./bat3 --eer 129 | head -n 1
> 81:00
>
> The return values shown above indicate the threshold voltage has been
> succesfully changed to 0V.
>
> Please let me know if you have any problems or questions.
>
> //Eddie
>
Your suggestion works. We can wake up our ts by putting the power back.
I've forgot to save it: what's the original value of byte 0x80 and 0x81?
Kind regards,
wimpunk.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Great things are happening at Yahoo! Groups. See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups - Join or create groups, clubs, forums & communities. Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups - Join or create groups, clubs, forums &
communities. is subject to:
http://docs.yahoo.com/info/terms/
|