Hi all, greetings.
I followed the steps, compiled peekpook. Used following script. Got the result
is 0.0. I am not sure the address map is correct for TS-7400, which has MAX
options.
The readtemp.sh code:
#!/bin/sh
temp_read(){
local RAW
local TC
(
peekpoke 32 0x808A0004 0x10
peekpoke 32 0x808A0000 0x0F
peekpoke 32 0x808A0010 0xFE
peekpoke 32 0x808A0004 0x00
peekpoke 32 0x808A0004 0x10
peekpoke 32 0x80840034 0x04
peekpoke 32 0x80840030 0x00
peekpoke 32 0x808A0008 0x8000
peekpoke 32 0x80840034 0x00
) >/dev/null
RAW=`peekpoke 32 0x808A0008`
let TC="$RAW >> 7"
echo -n $TC.
let TC="$RAW & 127"
let TC="$TC*10/128"
echo $TC
}
temp_read
------------------------------------
Yahoo! Groups 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 is subject to:
http://docs.yahoo.com/info/terms/
|