
SP37
Tire Pressure Monitoring Sensor
Introduction
ROM Library Function Guide
18
Revision 1.0, 2011-12-15
1.4
Restricted RAM and FLASH areas
The ROM Library functions use certain address areas in RAM and FLASH. To ensure that the
ROM Library functions operate properly, the application may not use these locations for storage, nor alter the
contents of these memory locations
1.4.1
Restricted RAM areas
The RAM area C1
H
through FF
H
(upper 63 Bytes) of the 256 Bytes RAM is used and overwritten by the
ROM Library functions.
1.4.2
Restricted FLASH areas
The FLASH area 57FA
H
through 57FC
H
is reserved for storage of the crystal frequency to be used in the
application. The crystal frequency (divided by two) has to be written to that location during FLASH programming
in the production in order to provide the ROM Library functions with the correct timebase for calibration purposes.
For 315 MHz applications a 19.6875 MHz crystal is used and the crystal frequency divided by two has to be written
to that location.
19,687,500 Hz : 2 = 9,843,750 Hz = 963426
H
Hz
The values in FLASH have to be written in the following way:
•
Flash address 57FA
H
: 96
H
•
Flash address 57FB
H
: 34
H
•
Flash address 57FC
H
: 26
H
For 433.92 MHz applications an 18.0800 MHz crystal is used and the crystal frequency divided by two has to be
written to that location.
18,080,000 Hz : 2 = 9,040,000 Hz = 89F080
H
Hz
The values in FLASH have to be written in the following way:
•
Flash address 57FA
H
: 89
H
•
Flash address 57FB
H
: F0
H
•
Flash address 57FC
H
: 80
H
The FLASH address 57FF
H
is reserved for Lockbyte 3. This value must not be changed by the application
otherwise it might result in an unintentionally locked FLASH User Configuration Sector. Locking this sector is
irreversible and shall only be done by either programming the Lockbyte 3 together with writing and locking the
FLASH Code Sector or by a dedicated ROM Library function
Note: If
or
WriteFlashUserConfigSectorLine()
are used by the application it has to
be ensured that these restricted Flash locations are restored to the proper values.
1.5
8051 Instruction Set Summary
As the SP37 incorporates an 8051 compatible microcontroller,
shows the SP37 OpCode Map.