138
Platforms
©2000-2008 Tibbo Technology Inc.
characters will be sent until the CTS line state changes to "can transmit".
There is no PLL
On this platform, there is no PLL and device operating speed is always the same.
Therefore, on this platform the
read-
only property and
method.
Data in the special configuration section of the EEPROM
Bottom 8 bytes of the EEPROM (accessible through the
object) are reserved
for storing MAC address of the device. On power-up, the MAC address is read out
from the EEPROM and programmed into the Ethernet controller. You can always
check current MAC through the
read-only property of the
object
but there is no direct way to change it. Instead, you can change the MAC address
data in the EEPROM. Then, next time the device boots up it will start using this
new address.
By default, the area storing MAC address is not accessible to your application- the
property takes care of that. Unless you change it, this property
specifies that your application's storage area starts at address 9 (counting from 1).
To change MAC, set the stor.base to 1.
MAC address data in the EEPROM has a certain formatting -- you have to follow it
if you want the MAC to be recognized by the firmware (TiOS). Here is the format:
Byte1
Byte2
Byte3
Byte4
Byte5
Byte
6
Byte7
Byte8
6
MAC0
MAC1
MAC2
MAC3
MAC
4
MAC5
Checksum
Byte at address 1 must be set to 6- this means, that 6 byte of data follow (MAC
address consists of 6 bytes). Addresses from 2 to 7 carry actual MAC data. Address
8 stores the checksum, which is calculated like this:
255-(modulo8_sum_of_addr_1_through_7)
Here is a sample code that stores new MAC address into the EEPROM and then
reboots the device to make the device load this new MAC:
212
218
219
380
269
267
381