| поискавой системы для электроныых деталей |
|
AN2799 датащи(PDF) 7 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2799 датащи(HTML) 7 Page - STMicroelectronics |
|
7 / 14 page ![]() AN2799 Functional description 7/14 3 Functional description The STPM01 host interface is a single bidirectional data line SPI with a 32 MHz maximum read speed and 100 kHz maximum write speed. Due to these requirements the STM32 microcontroller is used in the following way: ● In the reading phase, the MISO and SCLK pins are configured in alternate functions and used by the SPI2 peripheral. The maximum reading speed is 18 MHz by an APB speed equal to 36 MHz, configuring the SPI baud rate with APB/2. ● In the writing phase the MISO and SCLK pins are configured as GPIOs and the SPI operation is emulated by firmware controlling the speed operations to not exceed the 100 kHz writing speed limit. The MCO pin is configured to provide the HSE clock. 4 Firmware description The firmware for the management of the STPM01 energy meter has been developed using an object oriented programming (OOP) approach even if standard ANSI C programming language has been used. 4.1 Power meter object description The power meter object is defined and implemented in the PowerMeterObj.c, PowerMeterObj.h and PowerMeterTypes.h files. The power meter is represented by a structure containing the properties and the method of the Power Meter Object as illustrated in Figure 3. Figure 3. Power meter object AM00078v1 |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |