English
Language : 

HAL-APB-V1.5 Datasheet, PDF (46/59 Pages) Micronas – Application Board HAL-APB V1.x
HAL1820, HAL24xy, HAL28xy, HAL36xy, HAL38xy
Application Board HAL-APB V1.x
11.4. Available sensor commands
APPLICATION NOTE
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.
Table 11–20:Supported commands
Command
Read with absolute
address
Read with base
address
Set base address
Write byte with base
address
Write word (16-bit)
with base address
COM b[2:0] frame A b[4:0]
type
0
read absolute address
(0 to 31, byte aligned)
1
read address offset
(0 to 31, byte aligned)
3
write don’t care
5
write address offset
(0 to 31, byte aligned)
6
write address offset
(0 to 31, byte aligned)
DAT b[15:8] (RD/WD) DAT b[7:0] (RD/WD)
data read from address data read from address
=A+1
=A
data read from address data read from address
= base address + A+ 1 = base address + A
base address (16 bit, byte aligned)
don’t care
data which is written to
address
= base address + A
data which is written to
address
= base address + A +1
data which is written to
address
= base address + A
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
46
Oct. 8, 2012; APN000055_003EN
Micronas