AN1905 ST Microelectronics, Inc., AN1905 Datasheet - Page 12
![no-image](/images/no-image-200.jpg)
AN1905
Manufacturer Part Number
AN1905
Description
St7mc Three-phase BLDC Motor Control Software Library
Manufacturer
ST Microelectronics, Inc.
Datasheet
1.AN1905.pdf
(77 pages)
- Current page: 12 of 77
- Download datasheet (2Mb)
ST7MC THREE-PHASE BLDC MOTOR CONTROL SOFTWARE LIBRARY
+seg .text
where 0xc000 is the new starting address of the program memory and 0x3fe0 the size in
bytes.
+seg .bss
where 0x0180 is the new 16-bit addressing RAM memory in bytes.
2.1.2 Memory mapping with the METROWERKS toolchain
This Section contains the memory locations of pages declared at the end of this file.
To target the memory size of the ST7MC2S4, ROM and RAM memory settings have to be changed (32K
ROM_SEC_2 = READ_ONLY 0xC000 TO 0xDFFF; // sector 2
where 0xc000 is the new starting address of the program memory
RAM
where 0x027F is the ending address of the 16-bit addressing RAM memory
Important Note:
2.2 USING STVD7 RELEASE 3.X.X
The procedure is far easier with STVD7 3.x.x, as the makefile and linking command files are
automatically generated.
In the workspace window, just right click on the selected project (either cosmic or metrowerks)
and select “Add Files to Project”. You’ll be asked to select the source file.
12/77
-> 16K Flash, 1K RAM -> 768 Bytes RAM).
SECTIONS
Go into ..\BLDC sensorless\config\Metrowerks ( ..\BLDC sensor\config\Metrowerks\ for sensor driving
mode).
Edit the "BLDC_Metrowerks.prm" file
ZRAM = READ_WRITE 0x0080 TO 0x00FF;
RAM = READ_WRITE 0x0200 TO 0x047F; // 16 bit adressing RAM
ROM_SEC_2 = READ_ONLY 0x8000 TO 0xDFFF; // sector 2
ROM_SEC_1 = READ_ONLY 0xE000 TO 0xEFFF; // sector 1
ROM_SEC_0 = READ_ONLY 0xF000 TO 0xFEFF; // sector 0 - 0xFF00 to 0xFFDF reserved for ICC
= READ_WRITE 0x0200 TO 0x027F; // 16-bit addressing RAM
-b0xc000 -m0x3f00 -nCODE -sROM
-b0x0200 -m0x0180 -nUDATA -sRAM
The application layer has been written for the STMFC2NB6. Using a
different ST7MC sales type can imply the need for some modifications
to the library, according to the available features (some of the I/O ports
are not present on low-pin count packages). Please refer to the data
sheet for details.
// zeropage
# executable code
# uninitialized variables
Related parts for AN1905
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![AN177](/images/no-image3.png)
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
![AN1268](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
![AN1315](/images/no-image3.png)
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
![AN1998](/images/no-image3.png)
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
![AN2124](/images/no-image3.png)
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
![AN2428](/images/no-image3.png)
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
![AN2708](/images/no-image3.png)
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
![AN2783](/images/no-image3.png)
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
![STP22NE10L](/images/no-image3.png)
Part Number:
Description:
N-channel 55V - 0.07 Ohm - 22A StripFET Power MOSFET
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![STP32N06L](/images/no-image3.png)
Part Number:
Description:
Old PRODUCT: Not Suitable For Design-in
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![2N4014](/images/no-image3.png)
Part Number:
Description:
High-voltage, High Current Switch
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![L6000](/images/no-image3.png)
Part Number:
Description:
Single Chip Read & Write Channel
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![BTA10-400GP](/images/no-image3.png)
Part Number:
Description:
10A Triacs
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![BTA20-600BW](/images/no-image3.png)
Part Number:
Description:
20A Triacs
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
![BTA41-700B](/images/no-image3.png)
Part Number:
Description:
-
Manufacturer:
ST Microelectronics, Inc.
Datasheet: