216
Platforms
©2000-2008 Tibbo Technology Inc.
sub
on_sys_init
if
sys.currentpll=YES
then
sys.newpll(OFF)
sys.reboot
end
if
end
sub
External resets- power-up and RST pin reset (reset button reset)- set the PLL to
default state (typically ON). On some devices there is a hardware jumper that
defines the post-external reset state of the PLL.
Notice that PLL mode affects other objects- for example, baudrates of
property) and
frequency generated by the
object.
Serial Number
Tibbo devices currently in production use newer flash memory ICs featuring
security register. This is a 128-byte register that has two 64-byte fields. The first
field is one-time programmable, and the second field is pre-programmed at the
factory and contains a unique serial number.
R/O property returns the entire 128-byte serial number or an
empty string if the flash IC is of older type and does not have security register.
method is used to set the one-time programmable 64-byte
field of the register:
Dim
s
As
String
s="SERIAL NUMBER: 0123456789"
'this is the serial number we want to set
s=strgen(64-
Len
(s),"*")+s
'pad the string -- it must be exactly 64
characters in length
x=sys.setserialnum(s)
'set the field!
...
Be careful -- you can only set the programmable portion of the serial
number once. There is no way to correct a mistake!
224
250
387
221
222