High voltage npn power transistor for standard definition crt display (11 pages)
Summary of Contents for STMicroelectronics STEVAL-IHP005V1
Page 1
Introduction This document explains how to use and setup the firmware and the software designed for the STEVAL-IHP005V1 board and all the necessary setup for using the hardware. The application firmware uses the ST7540 power line modem firmware stack driver described in the UM1573: “ST7540 power line modem firmware stack”, and is organized in a...
UM1619 Features Features • Configurable FSK power line modem interface with an embedded firmware stack for a complete power line communication management • 8 user configurable general purpose input/output pins • USART and SPI communication channel for module interfacing • Internal configurable RTC module with lithium backup battery •...
The STEVAL-IHP005V1 is powered by a dual regulated DC power source, +12 VDC (pin 1) and +3.3 VDC (pin 2) from the power supply connector (J2). Pin 3 is the ground.
UM1619 Hardware description It is possible to connect the module in a three phase line (in case of communication modules are connected in all three phases), in this case an external capacitor of 68nF X1 must be connected to any additional phase, and then the other side of capacitors together with the common pin 5 of the J1 connector, following the schematic shown in the Figure 3, and the 0-...
Hardware description UM1619 Figure 4. User interface connector A three-color LED allows the signaling of some module operations, such as data transmission and reception, programming phase, and so on. The user can also use these LEDs for his own application needs by means of dedicated APIs. Finally, a programming connector allows firmware download and debug, even if it is possible to use the remote firmware update feature to remotely update the firmware using the PLM, as described further in this user manual.
UM1619 Getting started Getting started System requirements In order to use the GP PLM module demonstration board with a Windows® operating system, a recent version such as Windows XP or Windows 7 must be installed on the PC. The version of the Windows OS installed on your PC may be determined by clicking on the “System”...
Figure 7. License window In the next window, click “Install”. In the following window, select the folder in which to install the software package. By default, the software is installed in the path: "C:\...\STMicroelectronics\ IHP005-V1. Figure 8. Destination folder window 10/56...
UM1619 Getting started after selecting the folder and clicking the “Next” button, installation of the software starts. Figure 9. Installation status window When installation is complete, click “Finish”. The GUI is located in the folder “Software - Remote Console 5.5”. DocID024383 Rev 1 11/56...
Hardware installation UM1619 Hardware installation Connect a regulated dual DC power supply to the power connector J2 or use the power source pins of connector J4 as described previously and power the module. In order to download the firmware, plug the programmer adapter (Figure 5) into the programming connector J3 and the IAR JLink programmer in the JTAG connector of the...
UM1619 Hardware installation Figure 11. GUI options tab The module is now in programming mode; the “Programing mode” message will flash at the bottom of the interface, near the connected COM port indication. DocID024383 Rev 1 13/56...
Software GUI description UM1619 Software GUI description Introduction The software GUI is a demonstration tool that allows to program and set up the GP power line modules and test all the embedded features. The GUI is composed of several tabs, each one grouping different functions. A log window is present at the bottom of the GUI and is common to all tabs.
UM1619 Software GUI description Figure 12. GUI configuration tab • Working Mode The working mode panel is used to specify the working mode of the power line communication. The communication between two or more modules can be with or without acknowledgment and with or without back acknowledgment.
Page 16
The description is stored in a local database, so if you run the GUI with a programmed node in another PC, the description is missing. The node list file is located in the directory C:\Program Data\STMicroelectronics\Remote Console\1.0.0.0\settings\donglelist.l...
UM1619 Software GUI description If the module (dongle) is in programming mode, all the other tabs are locked. In order to unlock all the tabs, press the RUN button. The GUI and the module will enter in run mode, and the run mode message will appear in green at the bottom of the window. The module LED will be switched off.
Software GUI description UM1619 Figure 13. GUI dongle tab As soon as the pin configuration is set by the user (checking or unchecking the corresponding check box), the SET IO CFG button must be pressed before the configuration has effect. After that, each output can be set/reset and each input can be checked.
UM1619 Software GUI description Figure 14. GUI operations tab If the message has to be sent in broadcast, the BROADCAST check box must be checked. As soon as the send message is sent, the green LED of the module connected to the GUI is switched on.
Software GUI description UM1619 Program tab The PROGRAM tab shown in Figure 15 is used to store permanently user data in the module flash memory. Actually is possible to store 20 bytes as example, but modifying a constant in the firmware (#define USER_SETTINGS_SIZE directive) in the interfaceconfig.h file it is possible to store more then 800 bytes of user data.
UM1619 Software GUI description Service tab The SERVICE tab is shown in Figure 16. This tab is dedicated to the test of all the special frames called service frames. The first button in the commands panel is the PING button. This is used to test if a module is connected to the power line, if it is working properly and if it is reachable.
Software GUI description UM1619 Figure 17. PLM communication parameters window By default, the PLM is configured to work properly. Pressing the DEFAULT button, the parameter boxes are populated with the default values. Modify with care each parameter, and press the SET button to send the parameters to the addressed node (the selected node is shown in the top of the parameter window).
UM1619 Software GUI description Sniffer tab It is possible to use the GUI interface to check the data transiting on the power line. This feature is useful when the PLM protocol parameters are tuned. By “sniffing” the transiting data it is easy to determine the overall performance of the network. Figure 18.
Software GUI description UM1619 The STOP button stops data acquisition without to losing previously sniffed data, appends new data as soon as the start button is pressed again. The CLEAR button deletes all the sniffed data from the sniffer main window, without deleting the sniffer file. Each time a data frame is sniffed, the log window is filled with some information concerning the sniffed frame as shown in the Figure...
Page 25
UM1619 Software GUI description As soon as the START button is pressed the sniffing date and time is shown. Each time a data frame is received this number represents the time passed (in seconds) after the previous received data frame. This symbol represents the frame type, and can be one of the following: –...
Firmware description UM1619 Firmware description Introduction The firmware structure is constituted of several layers, each managing a different feature. The application layer engine is the general interface between the user program and all the parts of the module. It manages the communication ports, the module peripherals such as RTC and I/Os, LEDs and timing management.
UM1619 Firmware description this application is set to 60 Kbytes), plus 4 Kb of additional memory for a bootloader. Figure 21 shows the microcontroller memory organization. The bootloader is loaded at startup and checks the active segment containing the actual firmware.
UM1619 Firmware description Firmware download In the setup directory there are different workspaces stored in different directories. In order to implement the remote firmware update feature it is necessary to download the project located in the workspace “Firmware - Application and Bootloader”. This workspace contains two different projects, one is the bootloader and the other one is the application itself.
Firmware description UM1619 The setup folder contains also the Firmware - Bootloader folder, where inside there is the bootloader firmware; and the folder Firmware - Sniffer which contains the sniffer workspace to download in a PLM module useful if the data sniffing feature of the interface is used. In this case the PLM module will work only as a sniffer.
Page 31
UM1619 Firmware description At this level are available all the communication APIs and all the APIs for the application engine interfacing. In the main file, the following code is implemented for running the state machine engines: main(void) /* System initialization */ APP_ApplicationInit();...
Firmware description UM1619 Firmware data types The data type found in the application.h module, are listed below: /* USER FRAME STRUCTURE */ typedef struct APP_source_t source; APP_ftype_t type; bool broadcast; group; address; len; data[USER_PAYLOAD_SIZE]; /* MAX PAYLOAD SIZE: 100 bytes */ APP_ERROR_t error;...
Page 33
UM1619 Firmware description USER_DATA_BUSY, USER_DATA_IDLE }APP_userflag_t; /* PROGRAMMING COMMANDS */ typedef enum PROG_CMD_IDLE = 0x00, // No command PROG_CMD_ENTER_PROG_MODE = 0x01, // Enter the programming mode PROG_CMD_EXIT_PROG_MODE = 0x02, // Exit from programming mode PROG_CMD_SET_DATA = 0x03, // Write data into the internal flash PROG_CMD_GET_DATA = 0x04, // Get data from internal flash...
Firmware description UM1619 The data type for the “dongle.h” module; “stm32f10x_gpio” module are listed hereafter: /* LED TYPE */ typedef enum A_LED_ERROR, A_LED_DATA, A_LED_BOTH }DH_LedType_t; /* LED STATUS */ typedef enum A_LED_ON, A_LED_OFF, A_LED_FLASH }DH_LedAction_t; /* PIN VALUE */ typedef enum Bit_RESET = 0, Bit_SET }BitAction;...
UM1619 Firmware description 6.6.2 Ping Frames This particular frame is used to ping a remote (via PLM interface) or a local (via COMM interface) module. When a ping frame is received, this is managed directly at data link layer and is not notified at the application and consequently at the user levels. From the COMM interface module (SPI, USART, USB, etc.) buffer[0] = 10;...
Firmware description UM1619 6.6.4 Acknowledgment Frames These frames are particular data frames sent to an external device connected to the COMM module, not allowed to be sent via PLM. They are used by the GUI interface to acknowledge the commands sent to the module. From the COMM interface module (SPI, USART, USB, etc.) uint8_t *buffer;...
Firmware description UM1619 6.6.6 Programming Frames The programming frames are frames containing service commands concerning both some native module features (internal clock, general purpose inputs and outputs, etc.) and user defined service frames. Native frames are managed directly by the application engine. From the COMM interface module (SPI, USART, USB, etc.) uint8_t *buffer;...
Page 43
UM1619 Firmware description frame.broadcast = FALSE; frame.group = sender.group; // Device (the one been queried)group frame.address = sender.address; // Device (the one been queried)address frame.data[0] = SERVICE_PARAM_GET; // Command echo frame.data[1] = PROG_GRP_DEVICE_DATA; // Sub command echo frame.data[2,3] = sender.group; frame.data[4,5,6,7] = sender.address;...
Page 44
Firmware description UM1619 buffer[4,5,6,7] = target_module.address; buffer[8] = SERVICE_INPUTS_GET; buffer[9,10] = CRC16; After a certain delay from the get command acknowledgment, the PLM module will send the following frame: APP_userdata_t frame; frame.source = SOURCE_PLM / ...; // Data source PLM, ... frame.type = APP_SERVICE_FRAME;...
Page 45
UM1619 Firmware description After a certain delay from the get command acknowledgment, the PLM module will send the following frame: APP_userdata_t frame; frame.source = SOURCE_PLM / ...; // Data source PLM, ... frame.type = APP_SERVICE_FRAME; frame.len = 5; frame.error = APP_ERROR_NONE; frame.broadcast = FALSE;...
Firmware description UM1619 6.6.7 Embedded module features APIs The PLM module has some embedded features which can be used by the user, some other are instead managed directly by the application engine. /* General purpose input pins status get */ uint8_t DH_GetInputs(void) /* General purpose global output pins value change (bit x = 1 ->...
UM1619 Schematic diagrams and bill of material Appendix A Schematic diagrams and bill of material Figure 25. Schematic diagrams (1 of 3) DocID024383 Rev 1 47/56...
UM1619 Schematic diagrams and bill of material Figure 27. Schematic diagrams (3 of 3) Bill of material Table 1. Bill of material Voltage / Technology Ref. Part / value Tol. % Watts Manufact. current information Lithium battery Through BATT1 BR2032 Panasonic hole 190mAh...
Page 50
Schematic diagrams and bill of material UM1619 Table 1. Bill of material (continued) Voltage / Technology Ref. Part / value Tol. % Watts Manufact. current information COG ceramic C6,C7 33 pF 50 Vdc SMD 0603 capacitor C8,C12,C13, C14, C15,C18,C2 X7R ceramic 100 nF 50 V SMD 0603...
Page 51
UM1619 Schematic diagrams and bill of material Table 1. Bill of material (continued) Voltage / Technology Ref. Part / value Tol. % Watts Manufact. current information 220 uH 0.24 A Power inductor EPCOS PNP small signal Q1,Q2 BC857 transistor SOT23 0R-NM Not mounted SMD 1206...
Page 52
Schematic diagrams and bill of material UM1619 Table 1. Bill of material (continued) Voltage / Technology Ref. Part / value Tol. % Watts Manufact. current information FSK power line ST7540 transceiver HTSSOP28 STM32F103 32-bit MCU CBT7TR LQFP48 3 to 5.5 V, low power, up to 400 ST3232CTR kbps RS-232...
UM1619 Revision history Revision history Table 2. Document revision history Date Revision Changes 23-May-2013 Initial release. DocID024383 Rev 1 55/56...
Page 56
Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice.
Need help?
Do you have a question about the STEVAL-IHP005V1 and is the answer not in the manual?
Questions and answers