
HAL1820, HAL24xy, HAL28xy, HAL36xy, HAL38xy
APPLICATION NOTE
Application Board HAL-APB V1.x
18
Oct. 8, 2012; APN000055_003EN
Micronas
6. Board Functions
6.1.
Serial Command Interpreter
This board provides a serial command interpreter for the interaction with a PC, con-
nected via USB or RS232.
The serial communication protocol applies a software handshake:
– The PC acts as a master, the HAL-APB V1.x as slave,
– The HAL-APB V1.x responds to each master
COMMAND
frame with a
RESPONSE
frame.
6.1.1.
Serial Interface Configuration
When using a hyperterminal communication please set the following parameters.
6.1.2.
Definition of the COMMAND Frame
The command frame is of variable length. There are basically two types of commands:
1. for board configuration
2. for communication with connected Hall device
The command string has to end with <CR> (ASCII character 0x0D), optionally with
<CR><LF> (ASCII characters 0x0D, 0x0A).
6.1.3.
Definition of the RESPONSE Frame
The
response
frame consists of 7...10 characters plus 1 finishing <LF>
<ST>:<R9><R8>....<R2><R1><R0> <LF>
ST is non-zero in case of errors (see
Table 6–8:
parameter settings of serial interface
Parameter
Value
Bits per second
38400
Data bits
8
Parity
Even
Stop bits
1
Flow control
none