PMA Protocol Examples AN

PMA71xx/PMA51xx
SmartLEWISTM MCU
RF Transmitter FSK/ASK 315/434/868/915 MHz
Embedded 8051 Microcontroller with 10 bit ADC
Embedded 125 kHz ASK LF Receiver
Application Note
Protocol Examples for ISM Band Applications
Revision 1.0, 2009-10-09
Wireless Control
Edition 2009-10-09
Published by
Infineon Technologies AG
81726 Munich, Germany
© 2009 Infineon Technologies AG
All Rights Reserved.
Legal Disclaimer
The information given in this document shall in no event be regarded as a guarantee of conditions or
characteristics. With respect to any examples or hints given herein, any typical values stated herein and/or any
information regarding the application of the device, Infineon Technologies hereby disclaims any and all warranties
and liabilities of any kind, including without limitation, warranties of non-infringement of intellectual property rights
of any third party.
Information
For further information on technology, delivery terms and conditions and prices, please contact the nearest
Infineon Technologies Office (www.infineon.com).
Warnings
Due to technical requirements, components may contain dangerous substances. For information on the types in
question, please contact the nearest Infineon Technologies Office.
Infineon Technologies components may be used in life-support devices or systems only with the express written
approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure
of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support
devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain
and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may
be endangered.
PMA71xx/PMA51xx
Table of Contents
Table of Contents
Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2
Program flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3
3.1
3.2
3.3
3.4
Detailed Description of RF Protocol Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Protocol A: 5kBit ASK USA Pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Protocol B: 5kBit FSK EU Pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Protocol C: 10kBit FSK USA Pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Protocol D: 10kBit FSK EU Pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4
4.1
4.1.1
4.1.2
4.1.3
4.1.3.1
4.2
Tooling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Transmitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
How to download RF Protocol Examples to the PMA71xx/PMA51xx . . . . . . . . . . . . . . . . . . . . . . . . 9
PMA Evaluation Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
PMA Starter Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Pin settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
7
7
7
8
8
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Application Note
Protocol Examples for ISM Band Applications
3
Revision 1.0, 2009-10-09
PMA71xx/PMA51xx
Revision History: 2009-10-09, Revision 1.0
Previous Revision:
Page
Subjects (major changes since last revision)
Trademarks of Infineon Technologies AG
APOXI™, BlueMoon™, COMNEON™, CONVERGATE™, COSIC™, C166™, CROSSAVE™, CanPAK™,
CIPOS™, CoolMOS™, CoolSET™, CORECONTROL™, DAVE™, EasyPIM™, EconoBRIDGE™,
EconoDUAL™, EconoPACK™, EconoPIM™, EiceDRIVER™, EUPEC™, FCOS™, FALC™, GEMINAX™,
GOLDMOS™, HITFET™, HybridPACK™, ISAC™, ISOFACE™, IsoPACK™, my-d™, MIPAQ™, ModSTACK™,
NovalithIC™, OmniTune™, OmniVia™, OPTIVERSE™, OptiMOS™, ORIGA™, PROFET™, PRO-SIL™,
PrimePACK™, RASIC™, ReverSave™, SCEPTRE™, SEROCCO™, SICOFI™, SMARTi™, SMINT™,
SOCRATES™, SatRIC™, SensoNor™, SINDRION™, SmartLEWIS™, SIEGET™, TrueNTRY™, TEMPFET™,
TriCore™, thinQ!™, TRENCHSTOP™, VINAX™, VINETIC™, X-GOLD™, XMM™, X-PMU™, XPOSYS™,
XWAY™.
Other Trademarks
AMBA™, ARM™, MULTI-ICE™, PRIMECELL™, REALVIEW™, THUMB™ of ARM Limited, UK. AUTOSAR™ is
licensed by AUTOSAR development partnership. Bluetooth™ of Bluetooth SIG Inc. CAT-iq™ of DECT Forum.
COLOSSUS™, FirstGPS™ of Trimble Navigation Ltd. EMV™ of EMVCo, LLC (Visa Holdings Inc.). EPCOS™ of
Epcos AG. FLEXGO™ of Microsoft Corporation. FlexRay™ is licensed by FlexRay Consortium.
HYPERTERMINAL™ of Hilgraeve Incorporated. IEC™ of Commission Electrotechnique Internationale. IrDA™ of
Infrared Data Association Corporation. ISO™ of INTERNATIONAL ORGANIZATION FOR STANDARDIZATION.
MATLAB™ of MathWorks, Inc. MAXIM™ of Maxim Integrated Products, Inc. MICROTEC™, NUCLEUS™ of
Mentor Graphics Corporation. Mifare™ of NXP. MIPI™ of MIPI Alliance, Inc. MIPS™ of MIPS Technologies, Inc.,
USA. muRata™ of MURATA MANUFACTURING CO. OmniVision™ of OmniVision Technologies, Inc.
Openwave™ Openwave Systems Inc. RED HAT™ Red Hat, Inc. RFMD™ RF Micro Devices, Inc. SIRIUS™ of
Sirius Sattelite Radio Inc. SOLARIS™ of Sun Microsystems, Inc. SPANSION™ of Spansion LLC Ltd. Symbian™
of Symbian Software Limited. TAIYO YUDEN™ of Taiyo Yuden Co. TEAKLITE™ of CEVA, Inc. TEKTRONIX™
of Tektronix Inc. TOKO™ of TOKO KABUSHIKI KAISHA TA. UNIX™ of X/Open Company Limited. VERILOG™,
PALLADIUM™ of Cadence Design Systems, Inc. VLYNQ™ of Texas Instruments Incorporated. VXWORKS™,
WIND RIVER™ of WIND RIVER SYSTEMS, INC. ZETEX™ of Diodes Zetex Limited, KEIL™.
Last Trademarks Update 2009-05-27
Application Note
Protocol Examples for ISM Band Applications
4
Revision 1.0, 2009-10-09
PMA71xx/PMA51xx
List of Figures
List of Figures
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
State diagram of the software implementation of RF protocol examples for PMA71xx/PMA51xx . 6
5kBit ASK USA Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5kBit FSK EU Pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
10kBit FSK USA Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
10kBit FSK EU Pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
PMA RF Protocol Examples Installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Development Board selection in KEIL µVision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
PMA Evaluation Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
PMA Starter Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
TDA523x Eval Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
TDA523x Explorer in configuration and run mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Application Note
Protocol Examples for ISM Band Applications
5
Revision 1.0, 2009-10-09
PMA71xx/PMA51xx
Introduction
1
Introduction
This document is a description of the software implementation of RF protocol examples for ISM band applications
on PMA71xx/PMA51xx. The protocol examples are designed to be compatible with Infineon SmartLEWIS™
Receiver TDA5230. The configuration of Infineon SmartLEWIS™ Receiver TDA5230 to receive this protocol
examples is shown in detail in [1] and can be downloaded from http://www.infineon.com/TDA5230.
In the following chapters the program flow, the protocol examples and the tooling are described. This application
note is compatible to source code revision 1.0.
2
Program flow
Figure 1 on Page 6 shows a state diagram of the software implementation of RF protocol examples for
PMA71xx/PMA51xx.
First of all the Interval Timer is set to a wake-up time of approx. 500ms and PMA71xx/PMA51xx is set into Power
Down Mode. Every 500ms four different pin connections are checked. If a pin connection is set, the appropriate
protocol is sent. Protocol A and C are examples for protocols usable in the USA and have a break between WUP
(Wake-up Pattern) and TSI (Telegram Start Identifier) + data. The reason for this break is a legislative restriction
in the USA. Find more information about legislative restrictions in [1].
The priority of the pin connection check is as following:
Protocol A: PP4 & PP5
Protocol B: PP2 & PP3
Protocol C: PP4 & PP2
Protocol D: PP5 & PP3
Figure 1
2c
on
n ec
te d
Send WUP of
Protocol C
Wake-up from
Power Down Mode
after approx. 77ms
n ecte d
P3 con
P
&
5
PP
PP5 & PP3 NOT connected
PP2 & PP3 N OT co nnected
Send Protocol D
every 500ms
Send TSI and data
of Protocol A
PP
PP4 & PP2 connected:
Wake-up from Power
Down Mode after approx.
500ms
Wake-up from
Power Down Mode
after approx. 71,6ms
Send Protocol B
every 500ms
4&
om
up f r
ak e- 00m s
5
:W
cte d ro x.
o nne f ter app
a
OT c
P 2 N n Mod e
&P
w
P P4 wer Do
Po
Send WUP of
Protocol A
P3 con n
e cte d
4&
PP4 & PP5 connected:
Wake-up from Power
Down Mode after approx.
500ms
PP 4
&
P ow PP 5 N
er D
O
own T co nn
e
Mod
e af c ted: W
ter
a pp ak e-up
rox .
500 fro m
ms
PP
PP
PP
Check GPIOs
every 500ms
te d
nec
n
o
5c
PP 2 & P
1.
2.
3.
4.
Send TSI and data
of Protocol C
State diagram of the software implementation of RF protocol examples for PMA71xx/PMA51xx
Application Note
Protocol Examples for ISM Band Applications
6
Revision 1.0, 2009-10-09
PMA71xx/PMA51xx
Detailed Description of RF Protocol Examples
3
Detailed Description of RF Protocol Examples
PMA71xx/PMA51xx supports four different frequency bands: 315MHz, 434MHz, 868MHz and 915MHz. The
protocol examples of this application note only cover 315MHz and 434MHz because they are designed to be used
with Infineon TDA5230 receiver.
3.1
Protocol A: 5kBit ASK USA Pattern
100 Bit WUP
TSI
20 ms
80 ms
Figure 2
5kBit ASK USA Pattern
Table 1
Detailed description of Protocol A
Frequency band:
315MHz
Modulation:
ASK
Data Rate:
5kBit
Coding:
Manchester
WUP Data:
100Bit -> all 0
SYNC Data:
6Bit -> all 0
TSI Data:
14Bit -> 00110011110100
Payload:
10Byte data (could be modified for different applications)
3.2
80 Bit Data
20 ms
Protocol B: 5kBit FSK EU Pattern
100 Bit WUP
20 ms
TSI
80 Bit Data
20 ms
Figure 3
5kBit FSK EU Pattern
Table 2
Detailed description of Protocol B
Frequency band:
434MHz
Modulation:
FSK
Data Rate:
5kBit
FSK Deviation:
35kHz
Coding:
Manchester
WUP Data:
100Bit -> all 0
SYNC Data:
6Bit -> all 0
TSI Data:
14Bit -> 00110011110100
Payload:
10Byte data (could be modified for different applications)
Application Note
Protocol Examples for ISM Band Applications
7
Revision 1.0, 2009-10-09
PMA71xx/PMA51xx
Detailed Description of RF Protocol Examples
3.3
Protocol C: 10kBit FSK USA Pattern
144 Bit WUP
TSI 128 Bit Data
14.4 ms
85.6 ms
Figure 4
10kBit FSK USA Pattern
Table 3
Detailed description of Protocol C
Frequency band:
315MHz
Modulation:
FSK
Data Rate:
10kBit
FSK Deviation:
50kHz
Coding:
Manchester
WUP Data:
144Bit -> all 0
SYNC Data:
6Bit -> all 0
TSI Data:
10Bit -> 0011110100
Payload:
16Byte data (could be modified for different applications)
3.4
14.4 ms
Protocol D: 10kBit FSK EU Pattern
200 Bit WUP
TSI 128 Bit Data
20 ms
14.4 ms
Figure 5
10kBit FSK EU Pattern
Table 4
Detailed description of Protocol D
Frequency band:
434MHz
Modulation:
FSK
Data Rate:
10kBit
FSK Deviation:
50kHz
Coding:
Manchester
WUP Data:
200Bit -> all 0
SYNC Data:
6Bit -> all 0
TSI Data:
10Bit -> 0011110100
Payload:
16Byte data (could be modified for different applications)
Application Note
Protocol Examples for ISM Band Applications
8
Revision 1.0, 2009-10-09
PMA71xx/PMA51xx
Tooling
4
Tooling
To get the defined protocols properly running, Infineon provides a toolset which helps the developer to verify his
work and that both transmitter and receiver are correctly configured. The provided quick start guides will give more
details and also the steps to get the tools and boards running.
•
•
Transmitter - PMA71xx/PMA51xx (Download more information from http://www.infineon.com/PMA_tooling)
Receiver - TDA523x (Download more information from http://www.infineon.com/TDA5230)
4.1
Transmitter
The source code is designed to be usable with both development boards, the PMA Evaluation Kit and the PMA
Starter Kit.
Note: Please ensure that the matching network of the transmitter board corresponds to the selected protocol
example frequency.
4.1.1
How to download RF Protocol Examples to the PMA71xx/PMA51xx
1) Download and unzip PMA_RF_Protocol_Examples_Vx.x.zip from http://www.infineon.com/PMA.
2) Install PMA_RF_Protocol_Examples_V1.0.msi to your preferred location on your hard or network drive.
Figure 6
PMA RF Protocol Examples Installer
3) Connect PMA Starter Kit or PMA Evaluation Kit to the PC or Notebook (ensure that you have installed the
software environment for your development boards)
4) Start KEIL µVision
5) Compile the PMA_RF_Protocol_Examples_Vx.x project
Application Note
Protocol Examples for ISM Band Applications
9
Revision 1.0, 2009-10-09
PMA71xx/PMA51xx
Tooling
6) Choose your development environment (PMA Starter Kit or PMA Evaluation Kit)
Figure 7
Development Board selection in KEIL µVision
7) Download the .hex file to your development board
8) To start a transmission connect the appropriate PPx on your development board
4.1.2
PMA Evaluation Kit
The PMA Evaluation Kit consists of a PMA RF Evaluation Board. This kit is tailored for concrete application
development based on PMA giving the developer highest flexibility and design freedom. Furthermore, the
evaluation kit is required if the PMA LF receiver or ADC shall be used in the application.
The PMA RF Evaluation Board may be operated in two alternative options: The connection to the PC may be
established by the PMA RF USB Stick (see PMA Starter Kit) or by the advanced SmartLEWIS™ System Interface
Board (SIB) which is optionally available.
Figure 8
PMA Evaluation Kit
Application Note
Protocol Examples for ISM Band Applications
10
Revision 1.0, 2009-10-09
PMA71xx/PMA51xx
Tooling
4.1.3
PMA Starter Kit
The PMA Starter Kit is an easy to use development tool coming along in a small form factor size, which can be
directly connected to the PC via the USB interface.
This kit is tailored for first evaluation and software programming covering all products of the PMA71xx/51xx family.
Figure 9
PMA Starter Kit
4.1.3.1
Pin settings
Table 5 shows which pin settings are used to select one of the implemented protocol examples.
Note: Please ensure that only one connection is set at the same time!
Table 5
Implemented pin connections for RF protocol examples on PMA Starter Kit
Pin setting
Description
This is the pin out of the PMA Starter Kit.
VCC PP4 PP2
1
4
3
6
GND PP5 PP3
Never connect VCC (Pin 1) and GND (Pin 4)!
PP4 & PP5 are connected:
Protocol A - 5kBit ASK USA Pattern is transmitted every
approx. 500ms.
Application Note
Protocol Examples for ISM Band Applications
11
Revision 1.0, 2009-10-09
PMA71xx/PMA51xx
Tooling
Table 5
Implemented pin connections for RF protocol examples on PMA Starter Kit
Pin setting
Description
PP2 & PP3 are connected:
Protocol B - 5kBit FSK EU Pattern is transmitted every
approx. 500ms.
PP4 & PP2 are connected:
Protocol C - 10kBit FSK USA Pattern is transmitted
every approx. 500ms.
PP5 & PP3 are connected:
Protocol D - 10kBit FSK EU Pattern is transmitted every
approx. 500ms.
Application Note
Protocol Examples for ISM Band Applications
12
Revision 1.0, 2009-10-09
PMA71xx/PMA51xx
Tooling
4.2
Receiver
Infineon TDA5230 is used as receiver. The TDA523x Eval Board is shown in Figure 10. For the configuration of
the TDA523x Eval Board and the visualisation of the received user data the TDA523x Explorer is used (see
Figure 11). More information about the configuration of TDA5230 and the handling of the TDA523x Explorer can
be found in [1].
Figure 10
TDA523x Eval Board
Figure 11
TDA523x Explorer in configuration and run mode
Application Note
Protocol Examples for ISM Band Applications
13
Revision 1.0, 2009-10-09
PMA71xx/PMA51xx
References
References
[1]
TDA523x - Protocol Examples for ISM Band Applications
Application Note
Protocol Examples for ISM Band Applications
14
Revision 1.0, 2009-10-09
w w w . i n f i n e o n . c o m
Published by Infineon Technologies AG