381
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
your application equals the capacity of the IC minus the size of the special
configuration area.
By default, when you access the first byte of the EEPROM you are actually
accessing the first memory location above the special configuration area. One
property --
-- returns the size of this offset. On startup, stor.base is
equal to the size of the special configuration area, so your program can only access
the memory above this area.
You can change the stor.base and access configuration area when you need. For
example, you can change the MAC address this way- next time the device boots up
it will start using newly set address.
8.3.8.1
.Base Property
Function:
Sets/returns the base address of the EEPROM from which
the area available to your application starts.
Type:
Word
Value Range:
1-<actual memory capacity>, default= <size of special
configuration area>+1
See Also:
,
Details
By default, the value returned by this property is the address of the first EEPROM
location just above the special configuration area (for details see "Platform-
dependent Programming Information" topic inside your platform specifications
section). For example, if the size of the special configuration area on your platform
is 8 bytes then stor.base will return 9 by default.
This Default value makes sure that your application won't overwrite MAC by
mistake. When you are accessing EEPROM memory using
methods, you specify the start address. Actual physical address you access is
start_stor.base.
If your application needs to change some parameters in the configuration area you
can set the stor.base to 1- this way you will have access to the entire memory.
8.3.8.2
.Getdata Method (previously .Get)
Function:
Reads data from the EEPROM.
Syntax:
stor.getdata(startaddr as word, len as byte) as
string
Returns:
String contains the data read out from the EEPROM.
See Also:
,
Part
Description
381
380
383
382
381
380
382