FEBFCM8531DVK_B01A Fairchild Semiconductor, FEBFCM8531DVK_B01A Datasheet - Page 11

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
Coding Tips
The
signed/unsigned 8/16/32 bits data structures (see Figure 19).
Through usage of the pre-defined union, it can directly
access the different significant byte instead of time-
consuming shifting (see Figure 20).
TH0 = (INITIAL_T0_INTERVAL >> 8) & 0xFF;
TL0 = INITIAL_T0_INTERVAL & 0xFF;
UU16 V;
V.U16 = INITIAL_T0_INTERVAL;
TH0 = V.U8[b1];
TL0 = V.U8[b0];
Coding Rules
The codes in “Area A” of Figure 21 are generated by Code
Generator. Following are the guidelines:
© 2009 Fairchild Semiconductor Corporation
Rev. 1.0.0 • 2/18/13
The codes are synchronized with the Registers Setting
windows when generating code.
The registers’ values are loaded to the Registers Setting
windows when a project reloads.
Fairchild recommends updating registers’ values in the
Registers Setting windows rather than manual changes.
Compiler-define.h
Figure 19.
Figure 20. Rewrite Example
(The code can be rewritten to)
Pre-Defined Unions
file
pre-defines
union:
11
The “Area B” of Figure 21 is reserved for customer’s codes.
Following are the guidelines:
Access MSFR
Two instructions are needed to access MSFR: the first one is
to set the MSFRADR, followed by a read/write to the
MSFRDAT. A conflict occurs once an interrupt appears
between the two instructions while the ISR accessing the
MSFR. To avoid the conflict, Fairchild recommends a
backup of the MSFRADR before changing the MSFRADR,
and restoring it back at the end of the ISR, as shown in
Figure 22.
Please do not change the comments of “//User program
start...” and “//User program end.” These are used to
identify the generated codes and customer’s codes.
Otherwise, the code generator doesn’t work properly
and may cause unexpected error.
The customer’s codes are stored in between.
All of codes in between remain the same; no changes
are made when re-generating code.
INTERRUPT(ISR_EX0, INTERRUPT_INT0)
{
}
U8 T;
T = MSFRADR;
//User program start here.(1E)
//User program end here.(1E)
MSFRADR = T;
Figure 22. Access MSFR in the ISR
Figure 21.
Coding Rules Example
www.fairchildsemi.com
APPLICATION NOTE

Related parts for FEBFCM8531DVK_B01A