
HAL1820, HAL24xy, HAL28xy, HAL36xy, HAL38xy
APPLICATION NOTE
Application Board HAL-APB V1.x
46
Oct. 8, 2012; APN000055_003EN
Micronas
11.4.
Available sensor commands
The sensor supports 5 commands which provide read and write access to the whole
memory (ROM, RAM, register). Then mentioned commands allows for example to read
the hall value, the temperature value, and to program the EEPROM.
The used write data frame and read data frame contains of 5 address bits only. A "set
base address" command which defines a base address, expands the accessible
address range to 16 bit.
In case of a unknown command, the sensor does neither transmit an acknowledge nor
a body.
11.4.1.
Set base address
The “set base address” telegram functions as preparation for write telegrams and the
"read with base address" telegram. It uses the write data frame. The base address is
defined by DAT[15:0]. The sensor transmits an acknowledge if a communication error
has not been detected.
11.4.2.
Read with absolute address
The "read with absolute address" telegram uses the read data frame. The sensor trans-
mits the data of the effective address after the header has been successful received
and the effective address is permitted. Otherwise, the sensor does not respond.
The effective address is defined by the address bits of the header (A b[4:0]). Thus, this
telegram can be used for reading the lower 32 byte only.
11.4.3.
Read with base address
The "read with base address" telegram uses the read data frame. The sensor transmits
the data of the effective address after the header has been successful received and the
Table 11–20:
Supported commands
Command
COM b[2:0]
frame
type
A b[4:0]
DAT b[15:8] (RD/WD)
DAT b[7:0] (RD/WD)
Read with absolute
address
0
read
absolute address
(0 to 31, byte aligned)
data read from address
= A + 1
data read from address
= A
Read with base
address
1
read
address offset
(0 to 31, byte aligned)
data read from address
= base a A+ 1
data read from address
= base a A
Set base address
3
write
don’t care
base address (16 bit, byte aligned)
Write byte with base
address
5
write
address offset
(0 to 31, byte aligned)
don’t care
data which is written to
address
= base a A
Write word (16-bit)
with base address
6
write
address offset
(0 to 31, byte aligned)
data which is written to
address
= base a A +1
data which is written to
address
= base a A