
© Freescale Semiconductor, Inc., 2006. All rights reserved.
Freescale Semiconductor
Application Note
AN3223
Rev. 0, 2/2006
Table of Contents
1
Introduction
This application note describes initialization, general
rules, programming model and performance analysis for
the MPC5200 ATA interface, mainly from a software
perspective. The main focus is to help system architects
understand which mode under what circumstances is
optimal for the final product. Detailed software examples
can be found on the publicly available CD with sample
code for the MPC5200. The MPC5200B microcontroller
is based on an e300
1
core using the PowerPC
TM
instruction set.
The ATA interface is used to connect:
•
Hard disks
•
CD-ROMs
•
DVDs
•
Flash storage devices
The MPC5200 ATA interface is fully compatible with
ATA/ATAPI-4 specification (
AT Attachment with Packet
Interface Extension,
ANSI NCITS 317-1998) supporting
all three groups of modes:
1. e300, 603e, and G2LE are synonymous.
1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2
ATA Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.1
Electrical Characteristics . . . . . . . . . . . . . . . . 3
2.2
Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.3
IO Cable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.4
Byte Ordering. . . . . . . . . . . . . . . . . . . . . . . . . 5
2.5
Register Addressing . . . . . . . . . . . . . . . . . . . 5
2.6
Sector Addressing . . . . . . . . . . . . . . . . . . . . . 6
2.7
ATA Programming Model . . . . . . . . . . . . . . . 6
2.8
Host Initialization . . . . . . . . . . . . . . . . . . . . . . 9
2.9
Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3
Performance Analysis . . . . . . . . . . . . . . . . . . . . . 14
4
Literature. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Appendix A MPC5200 ATA Register Summary
MPC5200 ATA Interface
by: Martin Nykodym
Transportation Standard Products Group