herunterladen
Freescale Semiconductor
Application Note
AN2865
Rev. 4, 04/2010
Contents
© Freescale Semiconductor, Inc., 2005–2010. All rights reserved.
This application note contains software examples to use
when getting started using MPC5500 and MPC5600
family devices. Complete code is available for
downloading to target such as an evaluation board.
The family definitions in Table 1 are used to categorize
the different devices discussed in this document.
Examples included here will illustrate any differences
between families, and between the different members in
a family.
Table 1. MPC5500 & MPC5600 Family Definitions
for this Application Note
Family Name Devices Included
MPC551x MPC5514, MPC5515, MPC5516, MPC5517
MPC555x MPC5533, MPC5534,
MPC5553, MPC5554,
MPC5561, MPC5565, MPC5566, MPC5567,
MPC5632M, MPC5633M, MPC5634M
MPC56xxB/P/S MPC5602B or C, MPC5603B, MPC5604 B or C,
MPC5604P,
MPC5602S, MPC5604S, MPC5606S
1 Time Base: Time Measurement . . . . . . . . . . . . . . . . . . . 5
2 Interrupts: Decrementer. . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Interrupts: Fixed-Interval Timer . . . . . . . . . . . . . . . . . . . 14
4 INTC: Software Vector Mode. . . . . . . . . . . . . . . . . . . . . 22
5 INTC: Hardware Vector Mode . . . . . . . . . . . . . . . . . . . . 35
6 INTC: Software Vector Mode, VLE Instructions . . . . . . 48
7 INTC: Hardware Vector Mode, VLE Instructions . . . . . . 66
8 MMU: Create TLB Entry . . . . . . . . . . . . . . . . . . . . . . . . 84
9 Cache: Cache as RAM . . . . . . . . . . . . . . . . . . . . . . . . . 87
10 PLL: Initializing System Clock (MPC551x, MPC55xx). . 91
11 PLL: Initializing System Clock (MPC56xxB/P/S) . . . . . . 98
12 FMPLL: Frequency Modulation . . . . . . . . . . . . . . . . . . 107
13 Modes: Low Power (MPC56xxB/S) . . . . . . . . . . . . . . . 110
14 eDMA: Block Move . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
15 eSCI: Simple Transmit and Receive . . . . . . . . . . . . . . 130
16 eSCI: LIN Transmit . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
17 LINFlex: LIN Transmit . . . . . . . . . . . . . . . . . . . . . . . . . 139
18 eMIOS: Modulus Counter, OPWM Functions . . . . . . . 147
19 eMIOS: PEC, OPWFM Functions . . . . . . . . . . . . . . . . 156
20 eTPU: Set 1 PWM Function . . . . . . . . . . . . . . . . . . . . 162
21 eQADC: Single Software Scan . . . . . . . . . . . . . . . . . . 168
22 ADC: Software Trigger, Continuous Scan . . . . . . . . . . 171
23 ADC - CTU: eMIOS Trigger (MPC560xB) . . . . . . . . . . 178
24 DSPI: SPI to SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
25 FlexCAN Transmit and Receive . . . . . . . . . . . . . . . . . 201
26 Flash: Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Appendix AInterrupt Alignment Summary . . . . . . . . . . . . . . 229
Appendix BSingle Core Build Files . . . . . . . . . . . . . . . . . . . 230
Appendix CMPC56xxB/P/S Peripheral Clocks . . . . . . . . . . 246
Qorivva Simple Cookbook
“Hello World” Programs to Exercise Common Features on
MPC5500 & MPC5600 Microcontrollers
by: Steve Mihalik
Field Applications
Verzeichnis