
APPLICATION NOTE
HAL1820, HAL24xy, HAL28xy, HAL36xy, HAL38xy
Application Board HAL-APB V1.x
Micronas
Oct. 8, 2012; APN000055_003EN
23
measure VOUT_HAL
ftana2
ftana1 "\n" return value: <ST>:000000
measure the analog output voltage of sen-
sor 1 with HAL-APB’s ADC
Example
=> ftana2
<= 0:00200
0x00200 = 512(dec) * 5 / 1024 = 2.5 V
only for Sensor 1 available
read PWM-Period and
Pulse width
1)
pr
N
N
= 0 / 1
return value:
<ST>:<P4><P3><P2><P1><P0><W4><W3><
W2><W1><W0>
N
trigger on falling/rising PWM edge
<ST> board status
<P> 5 digit Period
<W> 5 digit Pulse width
Example
=> pr1 (OP-bit=0)
<= <ST>:013AE00A00
- Conversion of PWM-Period:
0x013AE = 5038
dec
/ 10000 = 0,5ms
- Conversion of Pulse width:
0x00A00 = 2560
dec
/ 10000 = 0,26ms
- Calculation of Duty-Cycle:
2560/ 5038 = 50,8%
get Bit time
?bt
return value: <ST>:
BT
BT as a 5-digit hex No.
get last acknowledge
time
?ack
return value: <ST>:0x
ACK
ACK as a 4-digit hex No.
returns the width of last acknowledge
pulse
1)
Available with firmware versions greater then 2.32. With firmware versions less then 2.32 this command is only available in
mode 9.
<ST> = Board Status character see from
Table 7–11:
Board configuration
Action
Command
Parameter
Remarks