AN1905 ST Microelectronics, Inc., AN1905 Datasheet - Page 48

no-image

AN1905

Manufacturer Part Number
AN1905
Description
St7mc Three-phase BLDC Motor Control Software Library
Manufacturer
ST Microelectronics, Inc.
Datasheet
ST7MC THREE-PHASE BLDC MOTOR CONTROL SOFTWARE LIBRARY
4.3.6 LinSCI.c
This module contains the code related to the LINSCI serial communication interface and gives
an example of configuration and usage (with the ‘void SCI_Config(void)’ and ‘void
SCI_Send_Data(u8 data)’ routines) and the ‘TTY_7.exe’ executable file. You can find the ex-
ecutable in the ‘SCI’ folder of the stand alone firmware. Working TTY Settings with the stand
alone firmware are as follow:
- Baud Rate 38.4K, Data Bits 8, Parity none, Stop Bits 1, RTS/CTS enable, other options dis-
abled.
When running the code in:
- Closed loop : the MCU feeds back respectively the rising, falling Bemf delay coefficients, in-
tegral, proportional coefficients, motor frequency (LSB then MSB), then ‘0’ (decimal values).
- Open loop : the MCU feeds back respectively the rising, falling Bemf delay coefficients, the
motor frequency (LSB then MSB), then ‘0’, ‘0’, ‘0’ (decimal values).
Those settings can be changed in the ‘main.c’ file, by modifying the values entered in the
‘Lin_Tx_Buffer[0...7]’.
Figure 27. Running TTY_7.exe on a PC (open loop firmware)
48/77

Related parts for AN1905