FEBFCM8531DVK_B01A Fairchild Semiconductor, FEBFCM8531DVK_B01A Datasheet - Page 10

no-image

FEBFCM8531DVK_B01A

Manufacturer Part Number
FEBFCM8531DVK_B01A
Description
Power Management IC Development Tools MCDS Programming kit
Manufacturer
Fairchild Semiconductor
Type
Motor / Motion Controllers & Driversr
Datasheet

Specifications of FEBFCM8531DVK_B01A

Rohs
yes
Product
Motor Control Kits
Tool Is For Evaluation Of
FEBFCM8531_B01H300A
Input Voltage
5 V
Output Voltage
2.5 V
Interface Type
I2C, SPI, UART
Maximum Operating Temperature
+ 85 C
Minimum Operating Temperature
-40 C
Output Current
29 mA
For Use With
MCS51
AN-8207
File Structure
Figure 16 is the file structure of pre-defined template. All of
the registers related to MCS-51 are stored in MCS51.c/.h
and the motor control related registers are stored in
MotorCtrl.c/.h (details are below).
Compiler_define.h
Pre-defined common data structure, keywords, and
declarations for support of various compilers. Please refer
to Coding Tips.
FCM8531.h
Pre-defined FCM85xx SFR (Special Function Register)
name and address mapping.
MSFR_define.h
Pre-defined FCM85xx MSFR (Motor Special Function
Registers) name and address mapping.
SVM_Table.c
Pre-defined customize sine-wave PWM waveform.
Main.c:
Top hierarchy initialization and main loop.
Program.c/.h:
Middle
MCS51.c/MotorCtrl.c. It links the Initial_Procedure( ) and
initial subroutines in MCS51.c and MotorCtrl.c. It is also
reserved for customized code.
MCS51.c/.h:
Codes for register initiation of Timer, I
Configuration, Interrupt, Watchdog Timer, and Interrupt
Service Routine (ISR) are in this file.
MotorCtrl.c/.h:
Codes for register initiation of PWM, Angle, Hall Interface,
ADC, DAC, Protection, Interrupt Service Routine (ISR),
and AMC Library are in this file.
<AMC Lib Name>.c/.h:
Communication between MCU and AMC and initial
procedures for AMC.
<AMC Lib Parameters>.h
Define the AMC library motor parameters value. Please
refer to Motor Tuning.
All codes are stored in a pre-defined pattern. Fairchild
recommends not breaking any of the rules to avoid
unexpected errors.
Compiler Setting
All codes generated by the MCDS IDE support various
compilers.
Different compilers have various data structures, keywords,
and declarations. Therefore, Compiler-define.h pre-defines
common data structure, keywords, and declarations to unify
the usage across compilers.
MCDS IDE currently supports Keil C and SDCC compilers.
© 2009 Fairchild Semiconductor Corporation
Rev. 1.0.0 • 2/18/13
hierarchy
(Continued)
file
between
2
C, SPI, UART, I/O
main.c
and
10
Code Editor
Code Editor allows user to edit the source file and supports
the functions of save, close, copy, paste, cut, find, replace,
etc. It is similar to any commercial editor. Additional
functions are listed below:
Pre-Defined Macros
The MCDS IDE pre-defines two macros for accessing the
MSFR. The purpose of the macros is to simplify the code
and makes the code concise. The macros are stored in the
AMC.h file.
#define READ_MSFR(addr, data) {MSFRADR = addr; data
= MSFRDAT;}
#define WRITE_MSFR(addr, data) {MSFRADR = addr;
MSFRDAT = data;}
For detailed information, please refer to
FCM8531 AMC Library: Speed
FCM8531 AMC Library: Hall-Interface,
FCM8531 AMC Library: Sliding Mode.
#if defined SDCC 
  // SDCC ‐ Small Device C Compiler 
 
#elif defined __C51__ 
  // Keil C51 
 
#endif
Line number: show line number in front of each line.
Highlight editing line: highlight the current line with
different background color.
Highlight keywords: highlight keywords with a
different font color.
Figure 17. Conditional Compilation Directives
Figure 18. Code Editor
Integral,
www.fairchildsemi.com
and
APPLICATION NOTE
AN-8205 —
AN-8204 —
AN-8206 —

Related parts for FEBFCM8531DVK_B01A