AN2757 Freescale Semiconductor / Motorola, AN2757 Datasheet - Page 44

no-image

AN2757

Manufacturer Part Number
AN2757
Description
MPC5200 Quick Start
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MPC5200 BSP
To demonstrate use of the GCT and a basic access to the peripheral modules, several sample applications are included in the
MPC5200_Quick_Start installation. Each application focuses on a single peripheral module of the MPC5200. The “appconfig.h”
file contains valid configuration values for the module being demonstrated and also for the other modules needed to run the
application (CDM, SDRAM and PSC1 for a console). In most of the cases the STARTUP configuration is set up for an automatic
__pre_main() initialization of all modules used in the application.
All sample applications are located in the “sample_applications” sub-directory of the MPC5200_Quick_Start installation folder.
Applications are organized in folders by compiler and board for which they are tested (currently there are only
CodeWarrior/Lite5200 applications).
Except the system files, which match exactly the ones in the Project Stationery, there is always only a single source file in each
sample application - the “main.c”. This file contains detailed comment block describing the application functionality plus all the
application source code. The table below describes briefly the sample applications included with the current version of the
MPC5200_Quick_Start.
9
MPC5200_Quick_Start is built on top of the software support package called “BSP” (Board Support Package), distributed with
the Lite5200 systems. The latest version of the BSP package is included into the Quick Start distribution, so there is no need to
retrieve and to install it separately. The full BSP source code is also included in all MPC5200_Quick_Start project templates, so
the BSP functions are immediately ready to be used in the user applications.
The following table summarizes the features of the BSP and shows the items reused by the MPC5200_Quick_Start applications.
All BSP code is installed in the “support\bsp” sub-directory of the MPC5200_Quick_Start source (“src”) folder.
44
ata_demo
fec_demo
gpt_slt_demo
mscan_demo
pci_demo1
pwm_demo
rtc_demo
spi_demo1
spi_demo2
uart_demo
MPC5200 BSP
Application
Sample
AN2757 MPC5200 Quick Start and Graphical Configuration Tool
Demonstrates an automatic detection of ATA hard drive(s) timing modes (PIO, MDMA,
UDMA) performed in the initialization code.
Demonstrates a use of the Fast Ethernet Controller module. Except FEC module
initialization, this application also uses two standard DMA tasks to demonstrate basic
receive and transmit functions.
Using a GPT and SLT timer interrupt sources, this application demonstrates a use of the
Interrupt Dispatcher and interrupt service routines.
Demonstrates a use of msCAN module and
driver
link to PC or using two Lite5200 boards connected together.
Demonstrates a use of the PCI Configuration Space read operations. Displays an
information about devices in the Lite5200 PCI slots (including the MPC5200 PCI bridge
itself).
Demonstrates a use of the PWM mode of the GPT timer module to control the LED light
intensity.
Demonstrates a use of interrupts on the RTC module.
Requires an externally connected MAX5152 DA converter to demonstrate a use of the
SPI mode of the PSC2 module. The voltage on the four DAC channels can be set using
the console commands.
Requires an externally connected ST95020 EEPROM device to demonstrate a use of the
interrupt-driven SPI module operations.
Demonstrates a use of UART mode of two PSC modules.
. A CAN transmit and receive operations can be demonstrated using either a CAN
Table 4. Sample Applications
Description
MPC5200_Quick_Start low-level CAN
Freescale Semiconductor

Related parts for AN2757