Recent activity
Subscribe to this feed-
fjhamming started following the question "Tide on Linux?" in Tibbo.
A comment on the question "Tide on Linux?" in Tibbo:
Well, that's a little discouraging. I'm pretty interested in the EM1000, but don't want to have to reinstall XP --- I wiped it off my laptop a long time ago. But if I have to, I have to. Guess I'll order an EM1202 starter kit, hoping it saves me development time. It has been 3 months since the last comment; I'll let you know if I can run TIDE with WINE under Ubuntu 8.04. – Tom Herrmann, on July 02, 2008 05:09-
Tom Herrmann started following the question "Tide on Linux?" in Tibbo.
ezuk marked one of Wolftec's replies in Tibbo as useful. Wolftec replied to the question "STOR-ing word values in EEPROM".
Hugh Wills marked one of Wolftec's replies in Tibbo as useful. Wolftec replied to the question "STOR-ing word values in EEPROM".
Hugh Wills replied on May 13, 2008 17:28 to the question "STOR-ing word values in EEPROM" in Tibbo:
Wolftec replied on May 13, 2008 17:26 to the discussion "IrDA on EM1000 or other Tibbo devices" in Tibbo:
I've never worked with Irda, so my options are only common sense.
I would use external logic to do this.
First connect a encoder/decoder chip to a serial port of the em1000 then connect a optical module to the chip.
You can use microchip MCP2150 or MPC2140 if your going to need IRDA compatibility, to connect to a pc or pda.
Use MCP2120, or MCP2122 if you just need to link to embebbed aplications that can use the same encoder/decoder.
Afterwards, Just connect it to a Sharp, Vishay, or Agilent Optical Module, and send and receive your data thru the serial port on the Em1000 just like any other application.
Hope it has helped you.
Wolftec replied on May 13, 2008 17:02 to the question "STOR-ing word values in EEPROM" in Tibbo:
Hugh Wills replied on May 13, 2008 16:28 to the question "STOR-ing word values in EEPROM" in Tibbo:
Hello again Wolftec,
I have used ddstr and ddval to store the IP adress in EEPROM, also firmware revision (in format #.#.#), but I don't understand if this can be used here? I have word values of 0-1023 but I thought ddstr/ddval would only work with byte variables?
As you suggest, I have managed to store word_variable in two bytes:
low_byte=word_variable AND &b11111111
high_byte=word_variable/256
string=chr(low_byte)+chr(high_byte)
stor.setdata(string, address)
This is the shortest way I can see to do it. There really should be a method to write mutli-byte data to EEPROM without converting to strings!
To read back from EEPROM:
low_byte = asc(stor.getdata(address,1))
high_byte= asc(stor.getdata(address+1,1))
word_variable=(256*high_byte)+low_byte
Thanks for your help. I'd be interested in any more information on the use of ddstr and ddval, as these don't appear to be well documented?
Hugh
Wolftec replied on May 13, 2008 15:36 to the question "STOR-ing word values in EEPROM" in Tibbo:
Hi,
Use the chr() function to encode a byte value to a char.
Then store it on the eeprom
Afterwards use the asc() function to restore the value back from a char.
If you are able to use long variables, ex. 2x 16 bytes data you can also use ddval and ddstr to convert 4 bytes to 4 chars at the same time.
Usefull to convert and store ip adresses.
Wolftec replied on May 13, 2008 10:16 to the question "Bitwise Operations" in Tibbo:
I'm experiencing some of the limitations myself as i'm coding a base64 encode/decode routine.
But the workaround is to basicly convert the binary data to string and work on it, or to make logic operations.
Some examples,
Setting the 20th bit of the y 32bit long variable
y=y OR &h080000
clearing the 20th bit,
y=y AND &hF7FFFF
Inverting the 20th bit,
y=y XOR &h080000
Some sort of shift left,
x=Lbin(y) 'convert y to string
x=right(x,len(x)-2) 'remove the annoying &b from the string
z=left(x,1) 'get the first caracter 0 or 1
x=right(x,len(x)-1) 'Shift left
Use a similar for the shift right.
It's not as quick or straight forward as i used to work in MicroChip Pic, but it does the job if you don't have time sensitive aplications.
For those i use a combination of the EM1202 with a pic controler, for example with one-wire ibutton protocols.
Wolftec replied on April 23, 2008 21:00 to the discussion "Alarm Clock Demo error?" in Tibbo:
ezuk marked one of Wolftec's replies in Tibbo as useful. Wolftec replied to the problem "Problem with get sys.version information (DS1000)".
ezuk replied on April 23, 2008 06:32 to the problem "Problem with get sys.version information (DS1000)" in Tibbo:
A comment on the discussion "Alarm Clock Demo error?" in Tibbo:
Thanks T-Bone! :) – ezuk, on April 23, 2008 06:26
T-bone replied on April 23, 2008 01:36 to the discussion "Alarm Clock Demo error?" in Tibbo:
Mike Fleming replied on April 22, 2008 19:21 to the discussion "Alarm Clock Demo error?" in Tibbo:
Wolftec replied on April 22, 2008 18:54 to the discussion "Alarm Clock Demo error?" in Tibbo:
Weird that this error is in a demo file.
You must go to the project files global.thb and main.tbs and complete the function statment for the set_alarm and set_time with "as string" in the end.
For example in global.thb line 3, where is,
declare function set_alarm(hr as string, min as string, sec as string)
it should be,
declare function set_alarm(hr as string, min as string, sec as string)as string
do this for set_alarm and set_time fucntion statments on global.thb and main.tbs and it should work.
I don't have a EM1000, i just use EM1202, so can't run it, but it does compile ok, after this modification.
Kruno replied on April 22, 2008 18:02 to the problem "Problem with get sys.version information (DS1000)" in Tibbo:
ezuk replied on April 22, 2008 07:24 to the problem "Problem with get sys.version information (DS1000)" in Tibbo:
| next » « previous |
Loading Profile...


