Accelerometer Algorithm Source Code User Guide
Freescale Confidential Proprietary
1
Software IIC Driver Source Code for
MTK and Other Platforms
User Guide
ABSTRACT: THIS DOCUMENT DESCIRBES THE DESIGN DETAILS OF THE SOURCE CODE OF SOFTWARE IIC
DRIVER WHICH IMPLEMENTS IIC COMMUNICATION FOR MMA745XL AND MMA7660FC.
KEYWORDS: IIC, DRIVER
APPROVED:
AUTHOR SIGN-OFF SIGNATURE #1 SIGN-OFF SIGNATURE #2
Gang Chen
SIGN-OFF SIGNATURE #3 SIGN-OFF SIGNATURE #4 SIGN-OFF SIGNATURE #5
Accelerometer Algorithm Source Code User Guide
Freescale Confidential Proprietary
2
REVISION HISTORY
VERSION DATE AUTHOR CHANGE DESCRIPTION
2.2 2009/06 Gang Chen Modify document
Accelerometer Algorithm Source Code User Guide
Freescale Confidential Proprietary
3
TABLE OF CONTENTS
1
INTRODUCTION ................................................................................................................................ 4
1.1
P
URPOSE
.......................................................................................................................................... 4
1.2
S
COPE
.............................................................................................................................................. 4
1.3
A
UDIENCE
....................................................................................................................................... 4
1.4
R
EFERENCE
..................................................................................................................................... 4
1.5
A
CRONYMS AND
A
BBREVIATIONS
................................................................................................... 4
1.6
D
OCUMENT
L
OCATION
.................................................................................................................... 4
1.7
P
ROBLEM
R
EPORTING
I
NSTRUCTIONS
............................................................................................. 4
2
OVERVIEW ......................................................................................................................................... 5
3
SOURCE CODE DESCRIPTION ...................................................................................................... 5
3.1
FSL
_
DATA
.
H
.................................................................................................................................... 5
3.2
FSL
_
MMA
.
H
..................................................................................................................................... 5
3.3
FSL
_
MMA
_
IIC
.
C
............................................................................................................................... 6
4
HOW TO USE THIS ALGORITHM ................................................................................................. 9
Accelerometer Algorithm Source Code User Guide
Freescale Confidential Proprietary - 4 -
1 Introduction
1.1 Purpose
Freescale’s motion sensors, including MMA745xL and MMA7660FC are digital sensors which could be
accessed via IIC or SPI interface. On most cases IIC communication is adopted. But on some platform such
as MTK, the IIC communication must be implemented by software because of hardware limitation. This
document describes how to implement IIC communication through GPIO with all the source codes are
offered.
1.2 Scope
• Reference design for customer support.
1.3 Audience
• System designer, firmware engineer and driver designer.
1.4 Reference
The following is the reference in this document.
• TBD
1.5 Acronyms and Abbreviations
Term / Acronym Definition
ACC
Accelerometer
1.6 Document Location
TBD
1.7 Problem Reporting Instructions
TBD