Micronas HAL 1820 Application Note Download Page 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

Summary of Contents for HAL 1820

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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_...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Reviews: