English
Language : 

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