A N 3 7 0
60
Rev. 1.0
7.7. HVRAM Module
The HVRAM module interfaces to the HVRAM. HVRAM in the Si4010 consists of 64 bits (8 bytes) of battery
backed RAM. As long as the power is connected to the chip the HVRAM keeps its content. The content of the
HVRAM is not affected by shutting down the chip by vSys_Shutdown() function.
7.7.1. HVRAM Map
Table 10 lists the HVRAM fields that have been reserved for the API use in RKE application.
7.7.2. HVRAM Module Functions
vHvram_Write
Description
: Writes data byte to the specified HVRAM address.
Inputs
:
biWriteAddr: (BYTE) HVRAM address to write to. Only bottom 3 bits are used,
the rest is ignored.
biWriteData: (BYTE) Byte to be written.
Outputs
:
None
c
bHvram_Read
Description
: Reads data byte from the specified HVRAM address.
Inputs
:
biReadAddr: (BYTE) HVRAM address to read from. Only bottom 3 bits are used,
the rest is ignored.
Outputs
:
Read Data: (BYTE) Data that resulted from the HVRAM read.
Table 10. HVRAM Fields
Field
Byte
Addr
Bits
Description
Improper shutdown
0
0
This bit is used to determine when the chip did not shut-
down properly. Upon boot, if this bit is a 1, it wasn’t cleared
in the previous shutdown of the chip, and special action
needs to be taken.
Bad shutdown count
1
7:0
Count of bad shutdowns.