AN2821
Rev. 1, 08/2004
Freescale Semiconductor
Application Note
eTPU Host Interface
by: Ming Li
Detroit Virtual Garage
Table of Contents
This application note shows how to build the host
interface to access eTPU functions. The eTPU PWM
driver is used as an example to illustrate what the host
needs to do to configure eTPU module, channel and
initialize PWM function. The application note also
describes the details of how to export eTPU software
information to the host compiler. The working code
example is presented in the Appendix. The user can
compile both host and eTPU code, then download to
actual hardware for testing.
1
2
3
4
Introduction..........................................................1
Overview .............................................................2
eTPU and Host Interface Hardware ....................3
Host Interface Software ......................................4
4.1 Initialization Overview........................................4
4.2 eTPU Module Initialization.................................5
4.3 eTPU Channel Initialization ...............................6
4.4 eTPU Function Initialization...............................6
4.5 eTPU and Host Interactive Control....................7
5
6
Software Integration ............................................8
Conclusion...........................................................8
Appendix 1 ..........................................................9
1 Introduction
The eTPU is the new generation of Time Processing Unit
(TPU) by Freescale. Besides the hardware enhancement,
significant improvements have been made to the
accompanying software development tools; these tools
make the enhanced Time Processing Unit (eTPU) easy to
use. A high level language (C) compiler has been
developed to allow the user to program the eTPU by
using C language instead of microcode.
To program the eTPU effectively, the programmer still
needs to have a clear understanding of how the eTPU
This document contains information on a new product. Specifications and information herein
are subject to change without notice.
© Freescale Semiconductor, Inc., 2004. All rights reserved.