English
Language : 

HAL-APB-V1.5 Datasheet, PDF (27/59 Pages) Micronas – Application Board HAL-APB V1.x
APPLICATION NOTE
HAL1820, HAL24xy, HAL28xy, HAL36xy, HAL38xy
Application Board HAL-APB V1.x
8.4. Available sensor commands
The sensor supports 2 commands which provide read and write access to the NVRAM
and register. Then mentioned commands allows for example to read the hall value, and
to program the NVRAM.
The used write data frame and read data frame contains of 5 address bits.
In case of a unknown command, the sensor does neither transmit an acknowledge nor
a body.
Table 8–13: Available Commands
Command
Read
Write
COM b[2:0]
1
6
frame type ADR b[4:0]
read
offset address
(0 to 31)
write
offset address
(0 to 31)
DAT b[15:0] (RD/WD)
data read from address = ADR
data which is written to address = ADR
8.4.1. Read
The read telegram uses the read data frame. The sensor transmits the data of the
address (A b[4:0]) after the header has been successful received and the address is
permitted. Otherwise, the sensor does not respond.
8.4.2. Write
The write telegram uses the write data frame. The sensor saves the received address
to the calculated effective address and transmits an acknowledge after the header and
body has been successful received and the effective address is permitted. Otherwise,
the command is discarded and the sensor transmits no acknowledge.
A write telegram is also discarded while NVRAM programming.
8.4.3. Protocol Error Handling
The sensor is detecting and logging protocol errors and command errors. The com-
mand errors are specified in section 1.
The sensor is detecting following communication errors
– invalid parity
– invalid checksum
– command error
A command error occurs when the command is either unknown or the execution has
failed.
In case of an error, the sensor transmits no acknowledge nor a body. If the protocol is
understood an ACK is sent no matter if the command can/may be processed
Micronas
Oct. 8, 2012; APN000055_003EN
27