ST EVAL-IHP007V1 User Manual

Download or browse on-line these Operation & User’s Manual for ST STEVAL-IHP007V1 Motherboard.

ST STEVAL-IHP007V1 Manual Information:

This manual for ST STEVAL-IHP007V1, given in the PDF format, is available for free online viewing and download without logging on. The guide contains 47 pages, and the size of the file at download is . The document type is Operation & User’s Manual.

Download Manual

Summary of Contents:

[Page 1] ST STEVAL-IHP007V1

December 2016 DocID026935 Rev 3 1/47 47 UM1818 User manual Street lighting power line modem evaluation board based on ST7580 PLM and STM32 microcontroller Introduction This document explains how to use and set up the firmware and the software designe...

[Page 2] ST STEVAL-IHP007V1

Contents UM1818 2/47 DocID026935 Rev 3 Contents 1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

[Page 3] ST STEVAL-IHP007V1

DocID026935 Rev 3 3/47 UM1818 Features 47 1 Features • Configurable PSK power line modem interface with an embedded firmware stack for a complete power line communication management • 8 user configurable general purpose input/output pins • US...

[Page 4] ST STEVAL-IHP007V1

Description UM1818 4/47 DocID026935 Rev 3 2 Description The STEVAL-IHP007V1 block diagram is shown in Figure 2. The general purpose power line modem evaluation board is based on an ST7580 x-PSK power line modem device and an ARM 32-bit Cortex™-M...

[Page 5] ST STEVAL-IHP007V1

DocID026935 Rev 3 5/47 UM1818 Description 47 capacitor of 220 nF X1 must be connected to any additional phase, and then the other side of capacitors together with the common pin 5 of the J2 connector, following the schematic shown in the Figure 3, ...

[Page 6] ST STEVAL-IHP007V1

Description UM1818 6/47 DocID026935 Rev 3 Figure 4. User interface connector A two color LED allows the signaling the board operations, data transmission and reception. Finally, a programming connector allows the firmware download and debug, even if ...

[Page 7] ST STEVAL-IHP007V1

DocID026935 Rev 3 7/47 UM1818 Hardware installation 47 3 Hardware installation Connect a regulated dual DC power supply to the power source pins of the connector J3 as described previously and power the board. In order to download the firmware, plu...

[Page 8] ST STEVAL-IHP007V1

Firmware description UM1818 8/47 DocID026935 Rev 3 4 Firmware description 4.1 Introduction The firmware structure is constituted of several layers each of it taking care of a different feature. The application layer engine is the general interface...

[Page 9] ST STEVAL-IHP007V1

DocID026935 Rev 3 9/47 UM1818 Firmware description 47 memory, one containing the bootloader and two containing the actual running firmware (active image) and the new firmware as soon as a RFU is needed. As soon as the firmware transfer is completed,...

[Page 10] ST STEVAL-IHP007V1

Firmware description UM1818 10/47 DocID026935 Rev 3 Figure 8. RFU flowchart (1of 2) Figure 9. RFU flowchart (2 of 2) 4.3 Firmware download In the setup directory there are different workspaces stored in different directories. In order to implement ...

[Page 11] ST STEVAL-IHP007V1

DocID026935 Rev 3 11/47 UM1818 Firmware description 47 Figure 10. Active project selection Click "Project - Batch Build" or press the key F8 in order to compile at the mean time the bootloader and the application. After the compiling is c...

[Page 12] ST STEVAL-IHP007V1

Firmware description UM1818 12/47 DocID026935 Rev 3 Figure 11. Workspace structure At this level, all the communication APIs and all the APIs for the application engine interface are available. In the main file, the following code is implemented for...

[Page 13] ST STEVAL-IHP007V1

DocID026935 Rev 3 13/47 UM1818 Firmware description 47 The DL_FSM() is the PLM stack main loop, this manage the PLM low level communication. The application engine “APP_StackUpdate()” is the state machine which runs inside the PLM application s...

[Page 14] ST STEVAL-IHP007V1

Firmware description UM1818 14/47 DocID026935 Rev 3 /* APPLICATION ERRORS */ typedef enum { APP_ERROR_NONE = 0x00, // No error APP_ERROR_GENERIC = 0x01, // Generic communication error APP_ERROR_COMM_TIMEOUT ...

[Page 15] ST STEVAL-IHP007V1

DocID026935 Rev 3 15/47 UM1818 Firmware description 47 SERVICE_PLM_CLOCK_GET = 0x08,// Get the internal time clock value SERVICE_IO_CONFIG_SET = 0x09,// Set the general purpose input and output pins SERVICE_IO_CONFIG_GET = 0x0a,// ...

[Page 16] ST STEVAL-IHP007V1

Firmware description UM1818 16/47 DocID026935 Rev 3 4.6.2 Ping frames This particular frame is used to ping a remote (via PLM interface) or a local (via COMM interface) module. When the ping frame is received, this is managed directly at the data l...

[Page 17] ST STEVAL-IHP007V1

DocID026935 Rev 3 17/47 UM1818 Firmware description 47 user_error_code = (APP_ERROR_t)(buffer[8]<<8)| buffer[9]); 4.6.4 Service frames Frames containing service commands concerning both some native module features (internal clock, general pur...

[Page 18] ST STEVAL-IHP007V1

Firmware description UM1818 18/47 DocID026935 Rev 3 Service command list PLM reset: software, hardware From the COMM interface (USART) Note: Any response from PLM module /* NATIVE SERVICE COMMANDS */ SERVICE_SOFTWARE_RESET = 0x00, SERVICE_HARDWARE...

[Page 19] ST STEVAL-IHP007V1

DocID026935 Rev 3 19/47 UM1818 Firmware description 47 Set module parameters: programming user parameters From the COMM interface (USART) From / to communication interface (PLM, USART) Get module parameters: programming user parameters From the COMM...

[Page 20] ST STEVAL-IHP007V1

Firmware description UM1818 20/47 DocID026935 Rev 3 Get module general purpose inputs/outputs configuration From the COMM interface (USART) From / to communication interface (PLM, USART) Set module general purpose inputs/outputs configuration From th...

[Page 21] ST STEVAL-IHP007V1

DocID026935 Rev 3 21/47 UM1818 Firmware description 47 From / to communication interface (PLM, USART) Set module general purpose outputs value From the COMM interface (USART) From / to communication interface (PLM, USART) Get module firmware release ...

[Page 22] ST STEVAL-IHP007V1

Firmware description UM1818 22/47 DocID026935 Rev 3 From / to communication interface (PLM, USART) Get module time clock value From the COMM interface (USART) From / to communication interface (PLM, USART) Set module time clock value From the COMM in...

[Page 23] ST STEVAL-IHP007V1

DocID026935 Rev 3 23/47 UM1818 Firmware description 47 From / to communication interface (PLM, USART) GET PLM Module SNR ratio From the COMM interface (USART) From / to communication interface (PLM, USART) Set PLM Module SNR ratio From the COMM inter...

[Page 24] ST STEVAL-IHP007V1

HID commands UM1818 24/47 DocID026935 Rev 3 Appendix A HID commands HID frames are data frames where the payload is customized for the HID ballast application. From the COMM interface (USART) /* BROADCAST_FLAG = 0x80 -> data sent in broadcast -...

[Page 25] ST STEVAL-IHP007V1

DocID026935 Rev 3 25/47 UM1818 HID commands 47 Case Software reset Lamp dimming From the COMM interface (USART- Source “Concentrator”) and To the COMM interface (USART- Destination “HID ballast”) From the COMM interface (USART- Destination ...

[Page 26] ST STEVAL-IHP007V1

HID commands UM1818 26/47 DocID026935 Rev 3 Get HID parameter From the COMM interface (USART- Source “Concentrator”) and To the COMM interface (USART- Destination “HID ballast”) From the COMM interface (USART- Destination “HID Ballast”...

[Page 27] ST STEVAL-IHP007V1

DocID026935 Rev 3 27/47 UM1818 HID commands 47 /* GET BUS VOLTAGE */ buffer[0] = 5; buffer[1] = 0x67; buffer[2] = 0x01; buffer[3] = bus_voltage_h; buffer[4] = bus_voltage_l; // Data frame payload length // Get command 'g' ascii value // BUS...

[Page 28] ST STEVAL-IHP007V1

HID commands UM1818 28/47 DocID026935 Rev 3 /* GET LAMP POWER */ buffer[0] = 5; buffer[1] = 0x67; buffer[2] = 0x04; buffer[3] = lamp_power_h; buffer[4] = lamp_power_l; // Data frame payload length // Get command 'g' ascii value // LAMP ...

[Page 29] ST STEVAL-IHP007V1

DocID026935 Rev 3 29/47 UM1818 HID commands 47 /* GET N° OF POWER ON */ buffer[0] = 5; buffer[1] = 0x67; buffer[2] = 0x08; buffer[3] = power_on_n_h; buffer[4] = power_on_n_l; // Data frame payload length // Get command 'g' ascii value //...

[Page 30] ST STEVAL-IHP007V1

HID commands UM1818 30/47 DocID026935 Rev 3 To the COMM interface (USART- source “concentrator”) buffer[21] = board_temperature_h; buffer[22] = board_temperature_l; buffer[23] = power_on_n_h; buffer[24] = power_on_n_l; buffer[25] = lamp_lifetime_...

[Page 31] ST STEVAL-IHP007V1

DocID026935 Rev 3 31/47 UM1818 HID commands 47 /* hardware_status value */ 0x00 0x01,0x02,0x03 0x04,0x05 0x06 0x07 0x08 = IDLE = STARTUP = WARMUP = RUN = WAIT = FAILURE /* GET LAMP POWER */ buffer[0] = 14; buffer[1] = APP_DATA_FRAME; buffer[2,.....

[Page 32] ST STEVAL-IHP007V1

HID commands UM1818 32/47 DocID026935 Rev 3 /* GET POWER SUPPLY VOLTAGE */ buffer[0] = 14; buffer[1] = APP_DATA_FRAME; buffer[2,..7] = source_module.address; buffer[8] = 0x67; buffer[9] = 0x06; buffer[10] = input_voltage_h; buffer[11] = input_voltage...

[Page 33] ST STEVAL-IHP007V1

DocID026935 Rev 3 33/47 UM1818 HID commands 47 /* GET LAMP LIFETIME (Hours) */ buffer[0] = 14; buffer[1] = APP_DATA_FRAME; buffer[2,..7] = source_module.address; buffer[8] = 0x67; buffer[9] = 0x09; buffer[10] = lamp_lifetime_h; buffer[11] = lamp_li...

[Page 34] ST STEVAL-IHP007V1

HID commands UM1818 34/47 DocID026935 Rev 3 If an error occurs from the HID board or from the network, the following frame throughout the COMM will be sent: buffer[22] = last_bus_voltage_h; buffer[23] = last_bus_voltage_l; buffer[24] = last_lamp_vol...

[Page 35] ST STEVAL-IHP007V1

DocID026935 Rev 3 35/47 UM1818 Schematic diagrams and bill of material 47 Appendix B Schematic diagrams and bill of material B.1 Schematic diagrams Figure 12. Schematic diagram (1 of 5) VFQFPN48 EP 49 TXD 1 RXD 2 3 VDDIO 4 TRSTN 5 TMS 6 GND TCK 7 ...

[Page 36] ST STEVAL-IHP007V1

Schematic diagrams and bill of material UM1818 36/47 DocID026935 Rev 3 Figure 13. Schematic diagram (2 of 5) Figure 14. Schematic diagram (3 of 5) BOOT0 7 44 NRST 5 6 OSC_IN/PD0 OSC_OUT/PD1 PA0-WKUP 1 1 0 1 PA9 31 PA10 32 PA11 33 PA12 34 PA13/JTMS/S...

[Page 37] ST STEVAL-IHP007V1

DocID026935 Rev 3 37/47 UM1818 Schematic diagrams and bill of material 47 Figure 15. Schematic diagram (4 of 5) Figure 16. Schematic diagram (5 of 5) 18x8x16 C32 220n X2 250Vac L4 1 4 10u 2.0A 8 5 1:1 ZT1 SMB D4 T60403-K5024-X044 SM6T15CA 0603 R34...

[Page 38] ST STEVAL-IHP007V1

Schematic diagrams and bill of material UM1818 38/47 DocID026935 Rev 3 B.2 Bill of material (BOM) Table 1. Bill of material Part type MI code Design. Footprint Description Qty Manufacturer Order code Part number Order code 2 100n 16V MI0156 C1, C2, ...

[Page 39] ST STEVAL-IHP007V1

UM1818 Schematic diagrams and bill of material DocID026935 Rev 3 39/47 220n X2 250Vac C32 RADX2-152 Metalized polyester film dielectric 220n 250Vac pitch 15mm 1 ECQU2A224ML 1198297 1n 50V C33 0402_C Ceramic capacitor 1n 50V X7R 10% 1 04025C102K...

[Page 40] ST STEVAL-IHP007V1

Schematic diagrams and bill of material UM1818 40/47 DocID026935 Rev 3 BLM21PG300SN1 L1 0805S EMI filter 30R 100 MHz 0805 1 BLM21PG300SN1 BLM21PG331SN1 L2 0805S EMI filter 330R 100 MHz 1 BLM21PG331SN1 724-1545 BLM18AG102SN1 D MI0160 L3 0603S EMI fi...

[Page 41] ST STEVAL-IHP007V1

UM1818 Schematic diagrams and bill of material DocID026935 Rev 3 41/47 22K R19, R29 0402_R Resistor 22K 0.0625W 1% 2 CRG0402F22K 667-8892 33K R21, R30 0402_R Resistor 33K 0.0625W 2 CRG0402F33K 667-8933 100K MI0229 R22 0805S_R Resistor 100K 0.125W ...

[Page 42] ST STEVAL-IHP007V1

Schematic diagrams and bill of material UM1818 42/47 DocID026935 Rev 3 ST7580 U2 VFQFPN48_7x 7x1 B-FSK, B-PSK, Q-PSK, 8-PSK Multi mode power line networking system on chip 1 HCPL-181-000E U3 SO-4 Phototransistor optocoupler SMD Mini-Flat type...

[Page 43] ST STEVAL-IHP007V1

DocID026935 Rev 3 43/47 UM1818 CRC 16 calculation 47 Appendix C CRC 16 calculation The CRC 16 is based on the X16 + X15 + X2 + 1 polynomial. /* Used CRC 16 table */ const uint16_t TableCRC16[256] = { 0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0...

[Page 44] ST STEVAL-IHP007V1

CRC 16 calculation UM1818 44/47 DocID026935 Rev 3 /************************************************************************* ****** * Function Name : CalcCRC16 * Description : Calculate a 16 bit CRC (X16 + X15 + X2 + 1) * Input : Buffer ...

[Page 45] ST STEVAL-IHP007V1

DocID026935 Rev 3 45/47 UM1818 Reference 47 5 Reference 1. ARM-based 32-bit MCU STM32F10x standard peripheral library Rel. 3.5.0 (2011) 2. ST7580 FSK, PSK multi-mode power line networking SoC datasheets (2012) 3. UM0932 ST7580 FSK, PSK multi-mode ...

[Page 46] ST STEVAL-IHP007V1

Revision history UM1818 46/47 DocID026935 Rev 3 6 Revision history Table 2. Document revision history Date Revision Changes 29-May-2015 1 Initial release 29-Jul-2015 2 Figure 4 has been updated 12-Dec-2016 3 Updated: - Figure 1.: STEVAL-IH...

[Page 47] ST STEVAL-IHP007V1

DocID026935 Rev 3 47/47 UM1818 47 IMPORTANT NOTICE – PLEASE READ CAREFULLY STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST product...