
HAL1820, HAL24xy, HAL28xy, HAL36xy, HAL38xy
APPLICATION NOTE
Application Board HAL-APB V1.x
48
Oct. 8, 2012; APN000055_003EN
Micronas
11.5.
HAL 283x / HAL 2850 – Board commands
Note:
For general board commands see
Table 11–21:
HAL 283x / HAL 2850 commands
Action
Command
Parameter
Remarks
read PWM-Period and
Pulse width
(only HAL 2850)
pr
N
N
= 0 / 1
return value:
<ST>:<P3><P2><P1><P0><W3><W2><W1><W0>
N
trigger on falling/rising PWM edge
<ST> board status
for details)
<P> 4digit Period
<W>4digit Pulse width
Example
=> pr1 (OP-bit=0)
<= <ST>:13AE0A00
- Conversion of PWM-Period:
0x13AE = 5038
dec
/ 10000 = 0,5ms
- Conversion of Pulse width:
0x0A00 = 2560
dec
/ 10000 = 0,26ms
- Calculation of Duty-Cycle:
2560/ 5038 = 50,8%
mode switch
pcms
return value:
return value:
<ST>:<R4><R3><R2><R1><R0>
switch HAL 283x/HAL 2850 to
Biphase-M programming mode
<ST> board status
for details)
<R> received data as 5-digit hex
No.
read from page 0
returns data read from
address to 1
pxr0
STR
STR
= <A1><A0>
return value:
<ST>:<R3><R2><R1><R0><CRC>
<A> address as 2-digit hex No.
<ST> board status
for details)
<R> received data as 4-digit hex No.
<CRC> checksum as 1-digit hex No.
Example
=> pxr002
=> <ST>:0FFB2
set base address
pxsb
STR
STR
= <A3><A2><A1><A0><CRC>
return value:
<ST>:<R4><R3><R2><R1><R0>
<A> base address as 4-digit hex No.
<CRC> checksum
<ST> board status
for details)
<R> received data as 5-digit hex No.
Example
=> pxsb30006
=> <ST>:000000