Download Description

Transcript
User Interface class overview
9
UM1052
User Interface class overview
The STM32 FOC motor control firmware is arranged in software layers (Figure 73). Each
level can include the interface of the next level, with the exception that the STM32 Std.
Library can be included in every level.
Figure 73. Software layers
This section describes the details of the User interface layer. This is the highest software
level present in the released STM32 PMSM FOC Library v3.2.
The user interface class (CUI) manages the interaction between the user and the motor
control library (MC Library) via the motor control application layer (MC Application).
In the current implementation, the user interaction can be performed by any of the following
devices: digital to analog converter (DAC), LCD display plus joystick, serial communication.
For each of these devices, one or more derived class of UI object have been implemented
(see Figure 74):
●
●
●
102/127
LCD Manager Class (CLCD_UI) is used to interact with the LCD color display. It has
been implemented over the LCD graphical library STMFC written in C++ language.
Motor control protocol (CMCP_UI) is used to manage serial communications. The
serial communication is implemented over the Frame communication protocol class
CFCP (Transport layer). The CFCP is, in turn, implemented over a physical layer
communication class CCOM (Physical layer). Daughter classes of CCOM are
CUSART_COM, CI2C_COM and CSPI_COM. Presently only the CUSART_COM, that
implements the physical serial communication using the USART channel, has been
implemented and only with a PC master microcontroller slave configuration.
DAC manager (CDAC_UI) is used to manage the DAC outputs using a real DAC
peripheral. This is the default setting when DAC output is enabled using the
STM32F100 (Value line) or STM32F103xE (High density) or STM32F2xx or
STM32F4xx devices.
Doc ID 18458 Rev 3