English
Language : 

HAL-APB-V1.5 Datasheet, PDF (23/59 Pages) Micronas – Application Board HAL-APB V1.x
APPLICATION NOTE
HAL1820, HAL24xy, HAL28xy, HAL36xy, HAL38xy
Application Board HAL-APB V1.x
Table 7–11: Board configuration
Action
Command Parameter
Remarks
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 prN
Pulse width1)
N=0/1
N trigger on falling/rising PWM edge
return value:
<ST>:<P4><P3><P2><P1><P0><W4><W3><
W2><W1><W0>
<ST> board status
<P> 5 digit Period
<W> 5 digit Pulse width
Example
=> pr1 (OP-bit=0)
<= <ST>:013AE00A00
- Conversion of PWM-Period:
0x013AE = 5038dec / 10000 = 0,5ms
- Conversion of Pulse width:
0x00A00 = 2560dec / 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>:0xACK
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 Section 6.1.5 on page 20 onwards for details
Micronas
Oct. 8, 2012; APN000055_003EN
23