Micronas HAL 1820 Скачать руководство пользователя страница 51

APPLICATION NOTE

HAL1820, HAL24xy, HAL28xy, HAL36xy, HAL38xy

Application Board HAL-APB V1.x

Micronas

Oct. 8, 2012; APN000055_003EN 

51

12.2.

Command Structure of Protocol for communication via 
V

SUP

V

SUP

-Pin

COM

2

COM

1

COM

0

ADR3

A

D

R2

ADR1

A

DR

0

S

Y

NC

 

pa

rity

D

AT

15

 

D

AT

14

 

D

AT

13

 

D

AT

12

 

D

AT

11

 

D

AT

10

 

DA

T9

 

DA

T8

 

DA

T7

 

DA

T6

 

DA

T5

 

DA

T4

 

DA

T3

 

D

AT

2

 

DA

T1

 

DA

T0

 

CRC3

 

CRC2

 

CRC1

 

OUT-Pin

du

m

m

y 0

 

A

D

R4

du

m

my

 0

CO

M

2

CO

M1

CO

M0

A

DR3

A

D

R2

A

D

R1

ADR0

S

YNC

 

pa

rit

y

DA

T1

5

 

D

AT

14

 

D

AT

13 

D

AT

12

 

D

AT

11

 

D

AT

10

 

DA

T9

 

D

AT

8

 

D

AT7

 

D

AT

6

 

D

AT

5

 

D

AT

4

 

D

AT

3

 

DA

T2

 

D

AT

1

 

D

AT

0

 

CRC3

 

CRC2

 

CRC1

 

CRC0

 

ADR4

AC

K

 

WRITE

READ
command

V

SUP

-Pin

OUT-Pin

Communication via V

SUP

-Pin (Biphase-In = V

SUP

 / Biphase-Out = OUT-Pin)

command

CRC0

 

AC

K

 

B

Detail B

OUT-Pin

t

prog

t

ACK

t

ACK

t

space

t

space

analog or digital output

command structure

COM: command bit
ADR: address bit
parity:    command and address check bit

SYNC: start bit (always 0)

DAT: 

data bit

CRC: CRC bit

dummy: dummy bit (always 0)

ACK: acknowledge

: analog or digital output

 

 

A

Detail A

V

SUPL

V

SUPH

V

SUP

-Pin

Содержание HAL 1820

Страница 1: ...Note Application Application Board HAL APB V1 x HAL 1820 HAL 24xy HAL 28xy HAL 36xy HAL 38xy Edition Oct 8 2012 APN000055_003EN...

Страница 2: ...arameters must be validated for each customer application by custom ers technical experts Any new issue of this document invalidates previous issues Micronas reserves the right to review this document...

Страница 3: ...on 10 3 Board Configuration 10 3 1 Jumper Settings 13 3 2 HAL Interface Connector 13 3 3 Firmware update 14 4 Specification 14 4 1 Recommended Operating Conditions 14 4 2 Recommended Wiring 15 4 3 Mai...

Страница 4: ...5 1 Set base address 35 9 5 2 Read 35 9 5 3 Write 35 9 5 4 CRC 36 9 5 5 Parity check 36 9 5 6 Protocol Error Handling 37 9 6 HAL 24xy Board commands 38 9 7 Locking of the Sensor 39 10 HAL 2810 Board C...

Страница 5: ...l for communication via VSUP 52 12 3 Telegram Parameters 53 12 4 Command Structure of Protocol for communication via OUT Pin 54 12 5 Telegram Parameter 55 12 6 Available sensor commands 55 12 6 1 Set...

Страница 6: ...put formats The board is equipped with a Micronas Flash micro controller CDC 3207G It provides an applica tion software supporting a command interface for the communication with a PC This allows the i...

Страница 7: ...ensor micronas com 1 2 2 Sensor specific PC Software Micronas GmbH provides easy to use PC software LabView for each supported sen sor Table 1 1 Supported sensors Sensor Remark HAL 1820 Linear sensor...

Страница 8: ...ram Fig 1 3 Detailed view of HAL Interface 5V MCU 5V ANA Module 5V PER OLED Extension optional LIN optional Hall Interface MCU CDC3207 USB RS232 EEPROM JTAG V_Board GND Voltage Reference VDD_Hall Driv...

Страница 9: ...oard supply During the self test the status LEDs including the Error LED will flash In case of a detected error the ERROR LED remains illuminated after the self test In LIN mode the ERROR LED is switc...

Страница 10: ...mp ers correctly Fig 3 1 Jumper settings HAL APB V1 x The default jumper position Pos1 is indicated by black bars in Fig 3 1 Note For board versions higher than v1 3 no manual adjustment is required T...

Страница 11: ...ion reserved JP3 close default open USB RS 232 JP4 close default open VDD_Hall equals GND when Vsup is switched off VDD_Hall is floating when Vsup is switched off JP5 V1 5 open default close communica...

Страница 12: ...APN000055_003EN Micronas Table 3 3 Board LED description LED Name Function ERROR On in case of communication error READY On after power on of board PCCOM On in case of communication between PC and HAL...

Страница 13: ...nsor1 and 4 VSUPSensor2 and Pin No 2 Common Sensor GND and Pin No 5 Common Sensor GND The male plug modular RJ 12 OST MMJ coding corresponding to the fawn connector HAL1 2 can be ordered from every el...

Страница 14: ...hielded wires In order to minimize the risk of electromagnetic disturbances the cable should be as short as possible Note Especially in noisy environments beneath power switches electromagnetic actuat...

Страница 15: ...omer In case of any problems or defects please contact your supplier WARNING Do not modify any part of the Hall programmer board V 1 x nor readjust any trimming potentiometer Otherwise the board may b...

Страница 16: ...Support Sensors Team The RS232 cable should be a standard serial cable Also called straight cable Table 4 7 Board characteristics Symbol Parameter Connector Limit Values Unit Test Conditions Min Typ...

Страница 17: ...USB port and plug in the power supply Windows 7 will automatically search latest driver if the PC is connected to the internet If there are problems with the installation follow the application note...

Страница 18: ...guration 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 com...

Страница 19: ...ndent command lists in section 9 10 6 1 4 Analog Measurements Its also possible to measure analog voltages as the HAL_VDD or the HAL_VOUT with the ADC of the HAL APB The HAL_OUT is only correctly meas...

Страница 20: ...o error 1 acknowledge error 2 2 nd Acknowledge error 3 invalid command for selected Mode 4 PID in running table cannot be modified LIN 5 LIN communication Error 6 LIN interface connection Error 7 no P...

Страница 21: ...select the board mode set read configuration data like the bit time or firmware version control the power supply VDD_HAL of the connected sensor Table 7 10 Board modes Mode Description 8 HAL 2810 LIN...

Страница 22: ...M protocol if pro gramming via VSUP Pin set programming voltage ftvdpX X 0 VSUP 5V if ftvdl0 and ftvdh0 X 1 VSUP 12V if ftvdl0 and ftvdh0 X 1 VSUP 12 5V if ftvdl1 and ftvdh0 X 1 VSUP 14 5V if ftvdl0 a...

Страница 23: ...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 C...

Страница 24: ...and specification are described in the data sheet 8 1 Programming interface The sensor is programmed via supply voltage modulation After detecting a command the sensor reads or writes the memory and...

Страница 25: ...1 2 D A T 1 1 D A T 1 0 D A T 9 D A T 8 D A T 7 D A T 6 D A T 5 D A T 4 D A T 3 D A T 2 D A T 1 D A T 0 C R C 3 C R C 2 C R C 1 C R C 0 A D R 4 A C K 1 Write READ command VSUP Pin OUT Pin Communicati...

Страница 26: ...Host biphase half bit time 0 45 0 5 0 55 th_bbit th_bifsp Host biphase interframe space 3 th_bbit Slew rate 2 V s Biphase frame characteristic of the Sensor ts_bbit Sensor biphase bit time 820 1024 12...

Страница 27: ...ress to the calculated effective address and transmits an acknowledge after the header and body has been successful received and the effective address is permitted Otherwise the command is discarded a...

Страница 28: ...esult is calculated of all protocol bits including command address parity and data bits For read command the CRC result is calculated of dummy bit and data bits only 16 The polynomial for the CRC calc...

Страница 29: ...x No D data as 4 digit hex No CRC checksum as 1 digit hex No ST Status of Board see Table 6 9 on page 20 for details R received data as 4 digit hex No Example write C000 hex into register 8 xxw08C0008...

Страница 30: ...essful VER PER and OVP bits 2 0 should be 0 after each set erase command NVE bit 11 should be 0 only after enough succesive set or erase command after 10 erase or 10 set Electro static discharges ESD...

Страница 31: ...scribed in the data sheet 9 1 Programming interface The sensor can be programmed via supply voltage modulation or via output voltage modulation The default mode is the programming via the output volta...

Страница 32: ...y 0 C O M 2 C O M 1 C O M 0 A D R 3 A D R 2 A D R 1 A D R 0 S Y N C p a r i t y D A T 1 5 D A T 1 4 D A T 1 3 D A T 1 2 D A T 1 1 D A T 1 0 D A T 9 D A T 8 D A T 7 D A T 6 D A T 5 D A T 4 D A T 3 D A...

Страница 33: ...put command C O M 2 C O M 1 C O M 0 A D R 3 A D R 2 A D R 1 A D R 0 S Y N C p a r i t y D A T 1 5 D A T 1 4 D A T 1 3 D A T 1 2 D A T 1 1 D A T 1 0 D A T 9 D A T 8 D A T 7 D A T 6 D A T 5 D A T 4 D A...

Страница 34: ...Slew rate 2 V s Biphase frame characteristic of the Sensor ts_bbit Sensor biphase bit time 820 1024 1225 s ts_bhb Sensor biphase half bit time 0 5 ts_bbit ts_bifsp Sensor biphase interframe space 2 ts...

Страница 35: ...dress is calculated by the base address plus offset address The offset address is defined by the address bits of the header A b 4 0 9 5 3 Write The write telegram uses the write data frame The sensor...

Страница 36: ...d In the case of an even number of 1 s the parity bit has to be 1 In the case of an odd number of 1 s the parity bit has to be 0 9 5 6 Protocol Error Handling The sensor is detecting protocol errors a...

Страница 37: ...ved data as 4 digit hex No Example set base address 1 xxsb000001d 0 000000 write data xxwSTR STR A1 A0 D3 D2 D1 D0 CRC return value ST R5 R4 R3 R2 R1 R0 A address as 2 digit hex No D data as 4 digit h...

Страница 38: ...the acknowledges of the sensor or to read check the sta tus of the PROG register after each store sequence to verify if the programming of the sensor was successful Electro static discharges ESD may...

Страница 39: ...to 12V too This is done by send ing the two commands ftvdp1 setting programming voltage 12V vho1 switching on VDD_HAL 10 1 2 Schedule Tables Different schedule tables allow the use of unconditional f...

Страница 40: ...default scheduling prevents the sensor from going into sleep Frame1 PID 0x03 set address 3 bytes Frame2 PID 0xc4 Read 2 bytes 2 bytes ID_Table_2 This table prepares an address to read from W nR 0 and...

Страница 41: ...R1 R0 A address as 4 digit hex No ST board status see Table 6 9 on page 20 for details R received data as 8 digit hex No Example lwpa3047 ST 00000000 set address Write Byte lwaSTR STR A3 A2 A1 A0 D1 D...

Страница 42: ...ot set the configuration of the LIN bus may be controlled by the data stored in the RAM layer only The customer must verify and if necessary refresh the configuration data periodically Note Micronas r...

Страница 43: ...ures and specification are described in the data sheet 11 1 Programming interface The sensor can be programmed via output voltage modulation The sensor answers with a modulation of the output voltage...

Страница 44: ...ut VSUP OUT Pin A C K WRITE READ command OUT Pin command C O M 2 C O M 1 C O M 0 A D R 3 A D R 2 A D R 1 A D R 0 S Y N C p a r i t y D A T 1 5 D A T 1 4 D A T 1 3 D A T 1 2 D A T 1 1 D A T 1 0 D A T 9...

Страница 45: ...ms PERIOD 19 32 ms 12 ms tMS Mode switch 3 130 560 ms tswitch 0 12 ms Biphase frame characteristic of the host th_bbit Host biphase bit time 972 1024 1075 s th_bhb Host biphase half bit time 0 45 0 5...

Страница 46: ...mits the data of the effective address after the header has been successful received and the effective address is permitted Otherwise the sensor does not respond The effective address is defined by t...

Страница 47: ...e the write byte with base address telegram this telegram is used for writing 16 bit data to the effective address and the effective address 1 11 4 6 Special Cases After reset the IC does not execute...

Страница 48: ...ion of Pulse width 0x0A00 2560dec 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 m...

Страница 49: ...est It is recom mended to use the Micronas tool kit for an easy product development Note It is not possible to write or to read a register after locking read byte with base address returns data from a...

Страница 50: ...scribed in the data sheet 12 1 Programming interface The sensor can be programmed via supply voltage modulation or via output voltage modulation The default mode is the programming via the output volt...

Страница 51: ...2 C O M 1 C O M 0 A D R 3 A D R 2 A D R 1 A D R 0 S Y N C p a r i t y D A T 1 5 D A T 1 4 D A T 1 3 D A T 1 2 D A T 1 1 D A T 1 0 D A T 9 D A T 8 D A T 7 D A T 6 D A T 5 D A T 4 D A T 3 D A T 2 D A T...

Страница 52: ...th_bifsp Host biphase interframe space 3 th_bbit Slew rate 2 V s Biphase frame characteristic of the Sensor ts_bbit Sensor biphase bit time 820 1024 1225 s ts_bhb Sensor biphase half bit time 0 5 ts_...

Страница 53: ...tput command C O M 2 C O M 1 C O M 0 A D R 3 A D R 2 A D R 1 A D R 0 S Y N C p a r i t y D A T 1 5 D A T 1 4 D A T 1 3 D A T 1 2 D A T 1 1 D A T 1 0 D A T 9 D A T 8 D A T 7 D A T 6 D A T 5 D A T 4 D A...

Страница 54: ...t Slew rate 2 V s Biphase frame characteristic of the Sensor ts_bbit Sensor biphase bit time 820 1024 1225 s ts_bhb Sensor biphase half bit time 0 5 ts_bbit ts_bifsp Sensor biphase interframe space 2...

Страница 55: ...address is calculated by the base address plus offset address The offset address is defined by the address bits of the header A b 4 0 12 6 3 Write The write telegram uses the write data frame The sen...

Страница 56: ...d In the case of an even number of 1 s the parity bit has to be 1 In the case of an odd number of 1 s the parity bit has to be 0 12 6 6 Protocol Error Handling The sensor is detecting protocol errors...

Страница 57: ...9 on page 20 for details R received data as 4 digit hex No Example set base address 1 xxsb000001d 0 000000 write data xxwSTR STR A1 A0 D3 D2 D1 D0 CRC return value ST R5 R4 R3 R2 R1 R0 A address as 2...

Страница 58: ...he sta tus of the PROG register after each store sequence to verify if the programming of the sensor was successful VER PER should be 0 after each set erase command NVE should be 0 after set erase com...

Страница 59: ...3625 Application Board HAL APB V1 x April 16 2010 APN000055_001EN First release of the application note 2 HAL1820 HAL28xy HAL3625 Application Board HAL APB V1 x March 24 2011 APN000055_002EN Second re...

Отзывы: