Murata Electronics North America DNT900 User Manual

Page of 60
 
www.RFM.com
 
Technical support +1.800.704.6079 
Page 39 of 58 
©2008 by RF Monolithics, Inc. 
E-mail: tech sup@rfm.com
 
DNT900 - 11/05/08 
4.2.8 Bank FF - Special Functions 
This bank contains two user functions, UcReset and MemorySave: 
Bank 
Loc'n 
Name 
R/W  bytes  Range 
Description 
FF 
00 
UcReset 
0..90 
00 = reset, 1 = clear status/address and 
reset, 0x5A = reset with factory defaults 
FF 
FF 
MemorySave 
0.. 1 
0 = load factory defaults, 1 = save settings 
to EEPROM 
 
UcReset
 - writing a value of 0x00 to this location forces a software reset of the microcontroller. Writing a 
value of 0x02 activates the OTA bootloader. To upgrade a remote remotely, set this register value and 
then  begin  the  OTA  firmware  download  process.  Writing  any  other  value  to  this  register  returns  an 
error.  A  reply  packet,  either  local  or  over-the-air,  may  not  be  received  when  writing  a  value  to  this 
register. 
MemorySave
 - writing a zero to this location clears all registers back to factory defaults. Writing a one to 
this location commits the current register settings to EEPROM. When programming registers, all changes 
are considered temporary until this command is executed. 
4.2.9 Protocol Mode Configuration/Sensor Message Example 
In  this  example,  the  host  configures  the  base  station  to  transmit  24  dBm  (250  mW)  of  RF  power  using  the 
SetRegister
  command,  0x04.  The  TxPower  parameter  is  stored  in  bank  0x00,  register  0x1  8.  A  one-byte 
parameter value of 0x03 selects the 24 dBm (250 mW) power level. The protocol formatting for the com-
mand is: 
0xFB 0x05 0x04 0x18 0x00 0x01 0x03 
Note the order of the bytes in the command argument: register, bank, span, parameter value. When the 
base station receives the command it updates the parameter setting and return a SetRegisterReply 
message as follows: 
0xFB 0x01 0x14 
In order for this new RF power setting to persist through a base station power down, MemorySave must 
be invoked. This is done by setting a one-byte parameter in register 0xFF of bank 0xFF to 0x01 with 
another SetRegister command: 
0xFB 0x05 0x04 0xFF 0xFF 0x01 0x01 
The base station will write the current parameter values to EEPROM and return a 
SetRegisterReply
 message: 
0xFB 0x01 0x14 
In this example, the base station host requests an ADC1 reading from a remote using the GetRe-
moteRegister
 command, 0x0A. The MAC address of the remote is 0x000102. The current ADC1 meas-
urement is read from register 0x08 in bank 0x05. The ADC reading spans two bytes. The protocol format-
ting for this command is: 
0xFB 0x07 0x0A 0x02 0x01 0x00 0x08 0x05 0x02