PMA71xx PMA51xx EvaluationKit UserGuide V1

29
Wireless Control User Guide Rev. 1.0, 2009-12-16 PMA Evaluation Kit PMA71xx/PMA51xx SmartLEWIS™ MCU

Transcript of PMA71xx PMA51xx EvaluationKit UserGuide V1

Wireless Control

User Guide Rev. 1.0, 2009-12-16

PMA Evaluat ion Ki t

PMA71xx/PMA51xxSmartLEWIS™ MCU

Edition 2009-12-16Published byInfineon Technologies AG81726 Munich, Germany© 2009 Infineon Technologies AGAll Rights Reserved.

Legal DisclaimerThe 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.

InformationFor further information on technology, delivery terms and conditions and prices, please contact the nearest Infineon Technologies Office (www.infineon.com).

WarningsDue 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/PMA51xxPMA Evaluation Kit

User Guide 3 Rev. 1.0, 2009-12-16

Trademarks of Infineon Technologies AGA-GOLD™, BlueMoon™, COMNEON™, CONVERGATE™, COSIC™, C166™, CROSSAVE™, CanPAK™,CIPOS™, CoolMOS™, CoolSET™, CONVERPATH™, CORECONTROL™, DAVE™, DUALFALC™, DUSLIC™,EasyPIM™, EconoBRIDGE™, EconoDUAL™, EconoPACK™, EconoPIM™, E-GOLD™, EiceDRIVER™,EUPEC™, ELIC™, EPIC™, FALC™, FCOS™, FLEXISLIC™, GEMINAX™, GOLDMOS™, HITFET™,HybridPACK™, INCA™, ISAC™, ISOFACE™, IsoPACK™, IWORX™, M-GOLD™, MIPAQ™, ModSTACK™,MUSLIC™, my-d™, NovalithIC™, OCTALFALC™, OCTAT™, OmniTune™, OmniVia™, OptiMOS™,OPTIVERSE™, ORIGA™, PROFET™, PRO-SIL™, PrimePACK™, QUADFALC™, RASIC™, ReverSave™,SatRIC™, SCEPTRE™, SCOUT™, S-GOLD™, SensoNor™, SEROCCO™, SICOFI™, SIEGET™,SINDRION™, SLIC™, SMARTi™, SmartLEWIS™, SMINT™, SOCRATES™, TEMPFET™, thinQ!™,TrueNTRY™, TriCore™, TRENCHSTOP™, VINAX™, VINETIC™, VIONTIC™, WildPass™, X-GOLD™, XMM™,X-PMU™, XPOSYS™, XWAY™.

Other TrademarksAMBA™, ARM™, MULTI-ICE™, PRIMECELL™, REALVIEW™, THUMB™ of ARM Limited, UK. AUTOSAR™ islicensed 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™ ofEpcos AG. FLEXGO™ of Microsoft Corporation. FlexRay™ is licensed by FlexRay Consortium.HYPERTERMINAL™ of Hilgraeve Incorporated. IEC™ of Commission Electrotechnique Internationale. IrDA™ ofInfrared Data Association Corporation. ISO™ of INTERNATIONAL ORGANIZATION FOR STANDARDIZATION.MATLAB™ of MathWorks, Inc. MAXIM™ of Maxim Integrated Products, Inc. MICROTEC™, NUCLEUS™ ofMentor 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™ ofSirius 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.Last Trademarks Update 2009-10-19

PMA Evaluation Kit Revision History: 2009-12-16, Rev. 1.0Previous Revision: --Page Subjects (major changes since last revision)

Initial document version

PMA71xx/PMA51xxPMA Evaluation Kit

Table of Contents

User Guide 4 Rev. 1.0, 2009-12-16

Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61.1 Content of the PMA Evaluation Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61.2 Features of the PMA Evaluation Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71.3 Connection to PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71.3.1 Connection to the PC using the SmartLEWISTM System Interface Board . . . . . . . . . . . . . . . . . . . . . 71.3.2 Connection to the PC using the PMA Starter Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81.3.2.1 Hardware Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81.3.2.2 Software Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

2 Documentation Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

3 PMA Evaluation Kit Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.1 GPIO Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.2 ADC Pin Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.3 LF-receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

4 Setup of Software Development Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144.1 Setup of KEILTM C51 µVISION4 Tool Chain for PMA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144.2 Download and install PMA Evaluation Kit Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154.3 Setting up a Software Project in KEILTM µVISION4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184.4 Use the PMA on-chip Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254.4.1 Hardware Breakpoints: Real Time debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254.4.2 Hardware Breakpoints: Debugging of interrupt functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254.4.3 Debugging of Clear-on-Read SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254.4.4 Debugging of functions out of the PMA Function Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

5 Pre-installed PMA Test software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Table of Contents

PMA71xx/PMA51xxPMA Evaluation Kit

List of Figures

User Guide 5 Rev. 1.0, 2009-12-16

Figure 1 PMA RF Evaluation Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6Figure 2 Connection of the PMA RF Evaluation Board to the PC via SIB v2.0 and USB. . . . . . . . . . . . . . . . 7Figure 3 Connection to the PC via PMA RF USB Stick . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8Figure 4 PMA RF Evaluation Board - important components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Figure 5 Pin description of programming connector JP2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Figure 6 Schematic of PMA RF Evaluation Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13Figure 7 Setup KEILTM C51 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Figure 8 Download Development Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Figure 9 PMA Evaluation Kit SW ZIP archive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Figure 10 Setup PMA Evaluation Kit KEILTM Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Figure 11 Setup of SIB Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Figure 12 Setup PMA Software Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Figure 13 New µVISION4 Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18Figure 14 Select Infineon PMA Device List. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18Figure 15 Select PMA derivative. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18Figure 16 Add Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Figure 17 Add Files to New Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20Figure 18 PMA_Software_Framework_V2.0 Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20Figure 19 Options for Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Figure 20 Target dialogue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Figure 21 Output dialogue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Figure 22 Debug dialogue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Figure 23 Debug dialogue, Settings, Target Setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Figure 24 Select Infineon PMA Eval Kit Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Figure 25 Flash Download Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

List of Figures

PMA71xx/PMA51xxPMA Evaluation Kit

Introduction

1 IntroductionThe PMA Evaluation Kit is an enhanced development tool for the SmartLEWIS™ MCU PMA-family and willsupport developing and debugging of Wireless Control Applications. The PMA RF Evaluation Board allows easyaccess to all pins for detailed measurements and supports the embedded LF receiver and ADC functionality of theSmartLEWIS™ MCU. Furthermore, the Evaluation Kit can be used as interface for programming externalprototypes.

Figure 1 PMA RF Evaluation Board

1.1 Content of the PMA Evaluation Kit

• PMA RF Evaluation Board: an RF transmitter board assembled with PMA5110, optimized for required frequency band and output power

• 1/4 lambda antenna: reduced size with 50 Ohm SMA connector• 2 additional PMA5110 samples• SmartLEWISTM MCU Product Brief• Legal disclaimer sheet

Note: The PMA RF Evaluation Board has been designed to be connected to the PC via the SmartLEWISTM System Interface Board (SIB v2.0). Alternatively a PMA Starter Kit may be used as Interface to the PC, for details see Chapter 1.3. Both interface boards, SIB v2.0 or PMA Starter Kit, have to be ordered separately

• Order information– SmartLEWISTM System Interface Board (SIB v2.0), SP000409156– PMAx110-315-5-USB-RF Kit, 315MHz, 5dBm, SP000409138– PMAx110-434-5-USB-RF Kit, 434MHz, 5dBm, SP000409140– PMAx110-868-10-USB-RF Kit, 868MHz, 10dBm, SP000426622

User Guide 6 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Introduction

1.2 Features of the PMA Evaluation Kit

• Equipped with the PMA5110 which is the most advanced type out of this product family• Full access to all hardware features of the PMA IC• Support of LF receiver (optional) and ADC• Available for 315 MHz, 434 MHz, 868 or 915 MHz carrier frequency• External 1/4 lambda antenna attached to SMA connector• Fully integrated into KEILTM C51 development suite (incl. software download to PMA-integrated Flash memory

and debugging support)• 5 different RF-matching network options are available:

– 315 MHz, +5dBm, PMA5110-315-5 Board, SA000422368, SP000409122– 434 MHz, +5dBm, PMA5110-434-5 Board, SA000422420, SP000409126– 434 MHz, +10dBm, PMA5110-434-10 Board, SA000422422, SP000409128– 868 MHz, +10dBm, PMA5110-868-10 Board, SA000422426, SP000409132– 915 MHz, +10dBm, PMA5110-915-10 Board, SA0004224430, SP000409136

1.3 Connection to PC

To connect the PMA RF Evaluation Board to the PC and to program the PMA Flash, a separate interface boardis required. The connection to the PC may be established by the SmartLEWIS™ System Interface Board (SIBv2.0) or alternatively by the PMA RF USB Stick, see http:/www.infineon.com/pma_starterkit. Both boards haveto be ordered separately.

1.3.1 Connection to the PC using the SmartLEWISTM System Interface Board

Figure 2 Connection of the PMA RF Evaluation Board to the PC via SIB v2.0 and USB

SmartLEWISTM System Interface Board (SIB) PMA RF Evaluation Board

50 OhmRF out

USB to PC

User Guide 7 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Introduction

1.3.2 Connection to the PC using the PMA Starter Kit

Figure 3 Connection to the PC via PMA RF USB Stick

Note: As the RF-part of the PMA RF USB Stick is not used for connecting the PMA RF Evaluation Board to the PC, any matching network option on the PMA RF USB Stick may be used independent from the matching network on the PMA RF Evaluation Board.

1.3.2.1 Hardware SetupTo connect the PMA RF Evaluation Board with the PMA RF USB Stick, the GPIO-signals, available on connectorX5 of the PMA RF USB Stick, have to be connected to the GPIO-pins of the PMA-IC on the PMA RF EvaluationBoard (see Table 1).

Note: The power supply of the PMA RF Evaluation Board must be from an external source. Please make sure that the Jumper JP1 is in the right position for external supply, see Figure 4

Table 1 Signals to be connected for using the PMA RF USB Stick as PC interfacePMA RF USB Stick PMA RF Evaluation Board

Pin # Signal name Signal name Connector Pin #1 PP2 PP0 X13 12 PP3 PP1 X16 83 PP4 xReset X16 6 - on board test button 4 PP5 MSE X13 55 VBAT not connected6 GNDA GND X16 1

not connected TME X13 6 - connect to GND on board

Set SelVBat to external power supply

External power supply

Interface cable

PMA RF USB Stick

PMA RF Evaluation Board

USBto PC

User Guide 8 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Documentation Links

1.3.2.2 Software SetupFor setup of software tools, see Chapter 4.1, Setup of KEILTM C51 µVISION4 Tool Chain for PMAFor installation of the PMA Starter Kit software, see “PMA Starter Kit User Guide”:• Chapter 3.2, Download and install PMA Starter Kit Software• Chapter 3.3, Setting up a Software Project in KEILTM C51 µVISION4

2 Documentation LinksLatest version of all Data Sheets, Application Notes and other documents related to this product family may bedownloaded from the Infineon Technologies home page, http://www.infineon.com/PMA.Most important documents are Product Data Sheets and PMA Function Library Guide:• PMA51xx Data Sheet• PMA71xx Data Sheet• PMA51xx Function Library Guide• PMA71xx Function Library Guide (named PMA71xx ROM Library Guide in earlier versions)General information about the development tools for the PMA product family is available athttp:/www.infineon.com/pma_tooling.All documentation and software for this PMA Evaluation Kit with the PMA RF Evaluation Board is available athttp:/www.infineon.com/pma_evalkit.

User Guide 9 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

PMA Evaluation Kit Hardware

3 PMA Evaluation Kit HardwareThe most important components of the PMA RF Evaluation Board are illustrated in Figure 4.

Figure 4 PMA RF Evaluation Board - important components

SIB2.0 connector

EE

PRO

M used for board

identification by SIB

2.0

External supply

Pow

er led

Sw

itch: external, internal supplyleft: internal, right: external

PMA G

PIO

pins (P

P0-PP9) and

TME, M

SE,

XRE

SET

GPIO

pins from SIB

2.0 – currently not used

PM

A

External

clock

Crystal

External clock selection

left-right: crystal, top-bottom: external clock (X10)

Additional differential AD

C standard inputs

for external sensor

Test buttons

RF m

atching netw

ork and S

MA

connector

Measurem

ent points for I V

bat and I PA. C

lose jum

pers for PM

A pow

er supply (IV

bat) and RF-

Tx (IPA

)

Program

ming

connector for external PM

A programm

ingC

lose X2 for external PM

A program

ming

Com

ponents for LF receiver testing w

ith signal generator

Com

ponents for LF receiver in norm

al operation (using a LF

sender coil)

AD

C pins

VD

DD

, V

DD

A m

easure-m

ent pins. C

lose jum

pers for norm

al operation.

User Guide 10 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

PMA Evaluation Kit Hardware

Figure 5 Pin description of programming connector JP2

JP2 can be used to program an external PMA IC. In this case the Flash Download Settings of KEILTM

µVISION4 have to be adapted: tick the “Use GPIO Connector” checkbox.

JP5 (soldered) is used to select the clock supply: on-board crystal or an external clock (see Figure 4).Please make sure that JP5 (near crystal) is set properly, if an external clock is supplied.

3.1 GPIO AssignmentFor general purpose input-/output-lines (GPIO) see Table 2

3.2 ADC Pin AssignmentThe ADC Pins are available on connector X3, see Table 3

Table 2 PMA Evaluation Board - GPIO assignmentPMA-IC PMA Evaluation Board

GPIO signal connector Pin # on-board test buttonPP0 X13 1PP1 X16 8PP2 X16 2PP3 X16 5PP4 X16 7 PP4PP5 X13 2 PP5PP6 X13 4PP7 X13 3PP8 X16 3PP9 X16 4

Table 3 ADC Pins ADC-Pin VDD V1N VM1 V1P RD V2P VM1 V2NConnector X3 - Pin # 1 2 3 4 5 6 7 8

PP0

PP0

PP1

MSE

xRESET

GND

VBat

User Guide 11 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

PMA Evaluation Kit Hardware

3.3 LF-receiver

For the LF-receiver 2 alternative paths are available:• LF with signal generator:

– resistors R8 and R9 have to be soldered, R10 and R14 must be left open. Signal generator to create LF-Pattern has to be connected to LF-Input (X4_1 and X4_2)

• LF with coil: – resistors R10 and R14 (0 Ohm) have to be soldered, R8 and R9 left open. In this case the LC-oscillator (L2,

C9, C19, R11) can be used for creating a LF-signal, together with a LF-transmitter coil.

Table 4 LF componentsPart Value DeviceR2 0 Ohm R_0603R3 0 Ohm R_0603R4 100 Ohm R_0603R5 47 Ohm R_0603R7 100 Ohm R_0603R8 16 KOhm R_0603R9 16 KOhm R_0603C4 -C5 -C8 -

User Guide 12 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

PMA Evaluation Kit Hardware

Figure 6 Schematic of PMA RF Evaluation Board

(Only needed (Only neededif SIB CLK is used)

(Only

needed

if L

F In is u

sed)

*no

t p

op

ula

ted

+

ArrayEEPROM

+

+

Se

nso

r-In

terf

ace

LF

In

AM

UX

2

AM

UX

1

XC

lk

I V

Ba

t

Ext

VB

at

Sa

mte

c Q

TS

-02

5-R

A

VB

at-

Se

l

I V

DD

D

I V

DD

A

EE

PR

OM

for

SIB

Board

ID

dig

. S

ign

al M

on

ito

r

VB

at-

Se

l

(Sele

ct C

LK

sourc

e)

RF

Ou

t

I P

A

JP

1

X1_1

X1_2

X5_1X5_2

Q1

C15

X10_1

X10_2

C13

C6

C1

C2

C12

X8_1

X8_2

X9_1

X9_2

L1

C4

C8

C5

R4

R7

R5

R2

R6

D2

X4_1

X4_2

C3

16

15

14

13

12

11

10

9

87

65

43

21

X3

JP

4

R9

R8

JP

3

VD

D1

V1

N2

VM

13

V1

P4

GN

DB

5

GN

DA

6

VB

AT

7

PG

ND

8

PA

9

GN

D1

0

PP

211

PP

11

2

PP

01

3

PP

31

4X

TA

L/S

CL

K2

5X

GN

D2

6A

MU

X1

27

AM

UX

22

8X

LF

29

LF

30

VR

EG

31

VD

DD

32

VD

DA

33

GN

DC

34

RD

35

V2

P3

6V

M2

37

V2

N3

8

X7

PP

41

5

PP

51

6

PP

61

7

XR

ES

ET

18

PP

71

9

XTA

LC

AP

24

TM

E2

3

MS

E2

2

PP

92

1

PP

82

0

8 4

SC

L6

SD

A5

A0

1A

12

A2

3

WP

7V

CC

GN

D

IC1

C21

C22

C7

+3

V3

49

+5

V5

0

+V

AD

J1

48

+V

AD

J2

47

FA

M_

SC

L2

5

FA

M_

SD

A2

4

GND151

GND252

GND353

GND454

GND555

GND656

GND757

GND858

PO

RTA

04

6

PO

RTA

14

5P

OR

TA

22

0

PO

RTA

34

4P

OR

TA

41

9

PO

RTA

54

3P

OR

TA

61

8

PO

RTA

74

2P

OR

TA

81

7

PO

RTA

94

1P

OR

TA

10

16

PO

RTA

11

40

PO

RTA

12

15

PO

RTA

13

39

PO

RTA

14

14

PO

RT

B0

13

PO

RT

B1

38

PO

RT

B2

12

PO

RT

B3

37

PO

RT

B4

11

PO

RT

B5

36

PO

RT

B6

10

PO

RT

B7

35

PO

RT

B8

9P

OR

TB

93

4

PO

RT

B10

8P

OR

TB

11

33

PO

RT

B12

7P

OR

TB

13

32

PO

RT

B14

6P

OR

TC

03

1

PO

RT

C1

30

PO

RT

C2

5

PO

RT

C3

29

PO

RT

C4

4

PO

RT

C5

28

PO

RT

C6

3

PO

RT

C7

27

PO

RT

C8

2

PO

RT

C9

26

PO

RT

C10

1

VP

OR

TA

23

VP

OR

TB

22

VP

OR

TC

21

1 2 3 4 5 6 7 8

X1

3

X1

5

1234

R3

X12

C17

C18

C20

C14

L4

L3

R16

L5

C19

JP6JP

5

R15

C11

R17

C16

X1

4

1 2 3 4

X6_1

X6_2

12

34

56

JP

2

R1

D1

X2_1X2_2

L2

C10

C9

R11

R14R10

1 2XR

ES

ET

3 4

1 2PP

4

3 4

1 2PP

5

3 4

R12

R13

R18

D3

12345678X1

6

GN

D

XR

ES

ET

XR

ES

ET

XR

ES

ET

V1N

V1N

VM

1

VM

1

V1P

V1P

RD

RD

V2N

V2N

VM

2

VM

2

V2P

V2P

VD

D

VD

D

EN

_X

CLK

PP

0 PP

0

PP

0P

P0

PP

1

PP

1

PP

1

PP

1

PP

2

PP

2

PP

2

PP

3

PP

3

PP

3

PP

4

PP

4

PP

4

PP

5 PP

5

PP

5

PP

6 PP

6

PP

6

PP

7 PP

7

PP

7

PP

8

PP

8

PP

8

PP

9

PP

9

PP

9

MS

E

MS

E

MS

E

TM

E

TM

E

TM

E

GCLK

GC

LK

I2C

_S

DA

I2C

_S

DA

I2C

_S

CL

I2C

_S

CL

+3V

3

+3V

3

+3V

3

+V

AD

J1

GP

IO0

GP

IO0

GP

IO1

GP

IO1

GP

IO2

GP

IO2

GP

IO3

GP

IO3

VP

OR

TA

VP

OR

TA

P_P

P0

P_P

P0

P_P

P1

P_P

P1

P_M

SE

P_M

SE

P_X

RE

SE

T

P_X

RE

SE

T

PP

0_P

U

PP

0_P

U

PP

1_P

U

PP

1_P

U

GN

D

NX

5032S

GN

D

tbd

GN

D

100n

100n

100n

100n

GN

D

GN

D GN

D

GN

D

GN

D

GND

100n

GN

D

GN

D

GN

D

*

*tbd

*tbd

*tbd

100

100

*tbd

GND

GN

D

0

GN

D

1k

LS

M767

GN

D

GN

D

1u/6

V3

GN

D

16k

16k

PM

A5110_A

sic

GN

D

24C

02C

SN

GND

GN

D

100n

1u/6

V3

GN

DG

ND

1u/6

V3

GN

D

GN

D

GN

D

0

GN

D

tbd

tbd

tbd

100p

tbd

tbd

GN

DG

ND

GND

0E

tbd

tbd

GN

D

GN

D10E

100n

GN

D

1k

1n

GN

D

GN

D

GN

D

1k

LS

M767

7,1

mH

47pF

180pF

33k 5

%

*tbd*tbd

GN

DG

ND

GN

D

10k 5%

10k 5%

20

*3,9

V

GN

D

LF

for

lab testing

LF

with c

oil

User Guide 13 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

4 Setup of Software Development ToolsThis chapter will guide you step-by-step through the installation of the tool environment. This process consists ofthe following steps which will be explained in full detail below:• Setup of KEILTM C51 µVISION4 Tool Chain for PMA• Download and install Infineon’s PMA Evaluation Kit software• Setting up a new project in the KEILTM development suite• Debugger usage

4.1 Setup of KEILTM C51 µVISION4 Tool Chain for PMAKEIL™ µVISION4 is an integrated development environment and a state-of-the-art software development suite. Itincludes an editor, linker, compiler and a flash tool. The SmartLEWIS™ MCU family is perfectly integrated into thisenvironment. The ANSI C optimized compiler supports all PMA51xx/PMA71xx devices.

Before you can setup the KEIL™ development environment for PMA you have to download the free evaluationsoftware at https:/www.keil.com/c51/demo/eval/c51.htm. This demo version of the KEIL™ developmentenvironment is code-size limited (maximum 2 kbyte code) and comes up with other restrictions. For details pleaserefer to the online documentation from KEIL™. The evaluation software can be used as starting point to developPMA applications. The full flash memory size of the PMA IC may be utilized with a full version from KEIL™. Download the C51 Evaluation Software and follow the instructions for installation.

Figure 7 Setup KEILTM C51

Note: It is assumed that the default installation folder C:\Keil is used. If any other installation folder is selected during KEILTM installation process please replace C:\Keil with your custom installation folder throughout the installation process.

User Guide 14 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

4.2 Download and install PMA Evaluation Kit SoftwareFor the integration of the PMA71xx/PMA51xx devices into KEIL™ µVISION4 and the installation of softwareexamples please download and install Infineon’s PMA Evaluation Kit software:• Go to http://www.infineon.com/pma_evalkit and download the PMA Evaluation Kit software

(PMA_EVALUATION_KIT_SW_Vx.y.zip).

Figure 8 Download Development Tools

• Extract the PMA Evaluation Kit SW ZIP-archive to a temporary directory on your PC.

Figure 9 PMA Evaluation Kit SW ZIP archive

• Start PMA_EVALUATION_KIT_Setup_Vx.y.msi, to integrate the PMA product family into the KEILTM C51 µVISION4 Tool Chain. Follow the installation instructions.

Note: KEILTM C51 µVISION4 Tool Chain must be installed BEFORE this step!

User Guide 15 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

Figure 10 Setup PMA Evaluation Kit KEILTM Driver

• Start PMA_SIB_Server_Setup_Vx.y.msi, to install the software interface between the KEILTM environment and the System Interface Board (SIB) and follow the installation instructions.

Figure 11 Setup of SIB Server

User Guide 16 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

• Start PMA_Software_Framework_Vx.y.msi, to install the PMA Software Framework with typical coding examples.

Figure 12 Setup PMA Software Framework

Note: The SIB Server requires the Microsoft.Net Framework 1.1 to be installed on your System. If it is not installed you will get an error message during installation. The .Net Framework 1.1 can be obtained from Microsoft www pages http:/www.microsoft.com/downloads/details.aspx?FamilyID=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en

User Guide 17 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

4.3 Setting up a Software Project in KEILTM µVISION4

You can work directly with the example projects (e.g. the PMA Software Framework) or you can setup your ownsoftware project for PMA71xx/PMA51xx in KEILTM µVISION4:• Start KEILTM µVISION4.• Create a new project in KEILTM µVISION4.

Figure 13 New µVISION4 Project

• Select your CPU type. After installation of the PMA Evaluation Kit software you should be able to select the Infineon PMA Device List.

Figure 14 Select Infineon PMA Device List

• Select the PMA derivative of your choice (PMA7110 and PMA5110 provide the full feature set).

Figure 15 Select PMA derivative

User Guide 18 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

• Configure your initial software project settings. Right click on your project to add “Add Group”, “Add Files to New Group” and manage:– Source files (.c / .a51)– Header files (.h)– File groups

Figure 16 Add Group

User Guide 19 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

Figure 17 Add Files to New Group

• Typically, following files being part of the PMA Software Framework must be added to a PMA software project:– STARTUP_PMA71xx_PMA51xx.A51– Reg_PMA71xx_PMA51xx.h– PMA71xx_PMA51xx_Library.h– PMA71xx_PMA51xx_Library.LIB

Figure 18 PMA_Software_Framework_V2.0 Files

User Guide 20 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

• Adjust the settings for your project. Right click on your project and click Options for Target.

Figure 19 Options for Target

• Go to the Target dialogue. Make sure that the On-chip ROM (Flash memory) is used for code development.

Figure 20 Target dialogue

User Guide 21 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

• Go to the Output dialogue. Select to create a hex file and assign a name to it.

Figure 21 Output dialogue

• Go to the Debug dialogue. From the drop down menu select Infineon PMA Eval Kit Driver.

Figure 22 Debug dialogue

User Guide 22 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

• Connect the PMA RF Evaluation Board to the PC via the System Interface Board (SIB) or alternatively via the PMA RF USB Stick, see Figure 2 and Figure 3.

Note: If requested by the New Hardware Found Wizard (Windows), the required drivers are available in the zip-archive “IFX CDM 2.04.16 WHQL Certified.zip” which is included in the PMA Evaluation Kit software download package.

• Click on “Settings”, in the Debug dialogue, then your SIB and the connected PMA Evaluation Board should be detected.

Note: If it is the first time after connecting your board this may take a few seconds as the USB interface gets initialized

Figure 23 Debug dialogue, Settings, Target Setup

User Guide 23 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

• Go to the Utilities dialogue. From the drop down menu select Infineon PMA Eval Kit Driver.

Figure 24 Select Infineon PMA Eval Kit Driver

• Click on “Settings”. Tick options: ’Erase Flash’, ’Program Flash’, ’Verify Flash’, ’Run after Download’ (before downloading, default setting).

Note: If you select the SET Lock option you cannot re-enter Programming- or Debug Mode again.

Figure 25 Flash Download Setup

User Guide 24 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Setup of Software Development Tools

4.4 Use the PMA on-chip DebuggerThe KEIL™ C51 µVISION4 Tool Chain provides a powerful debugger which is directly accessing the PMAhardware. Following features are available:• Multi- or single step execution• Run until cursor line• Step over• Up to 25 breakpoints• Run interruptible (Run/Stop)• Real-time Run (“Run until Breakpoint”)

– Not interruptible– One breakpoint

• Memory r/w access possible (SFR, IData)

Following restrictions apply when using PMA on-chip Debugger:

4.4.1 Hardware Breakpoints: Real Time debuggingThe on-chip debug handler on the PMA71xx/PMA51xx is based on two hardware breakpoints. As a consequencethe debugger functions Run (F5), Step Over (F10), Run to Cursor line (Strg+F10) are internally a rapid sequenceof Step (F11). This single stepping will not execute the instructions in the same execution time as in Normal Mode.RF transmission or bus transfer will show a slower baud rate, timers keep running on full speed whilst codeexecution is delayed. This may cause the system to be incompatible to Normal Mode environment.Full-speed debugging can be achieved by setting the Use Real-time debugging flag. Be aware that if none of thehardware breakpoints is hit, the communication to the target is lost.

4.4.2 Hardware Breakpoints: Debugging of interrupt functionsThe two hardware breakpoints are provided to help debug program execution. It is not possible to display interrupthandling during debugging using the functions Run (F5), Step Over (F10), Run to Cursor line (Strg+F10).In this way it is possible to debug the code not in real-time whilst time-critical functions are handled in interruptservice routines in real-time between the (rapid) single steps. Be aware that interrupt service routines may alterSFRs and variables.When an interrupt service routine shall be debugged, a breakpoint has to be set into the interrupt service routineand the option Use Real-time debugging has to be selected. Once the interrupt service routine is active(Breakpoint hit) single stepping can be continued

4.4.3 Debugging of Clear-on-Read SFRsThe debugger fetches SFRs for displaying in the Watch window. SFRs that contain Clear-on-Read flags will bedisplayed correctly in the Watch window of the Debugger, nevertheless the fetch for the Watch window clears theflag contents and will cause the instructions to be executed invalid.

4.4.4 Debugging of functions out of the PMA Function LibraryDebugging of the PMA Function Library is blocked. It is not possible to step through the lines of code that arestored in the ROM. The debugger automatically steps through the PMA Function Library without interaction to thethe Debugger. After the return instruction in the ROM the debugging can be continued. It is possible to executefunctions out of the PMA Function Library in real-time debugging mode by Use Real-time debugging and Run toBreakpoint.

User Guide 25 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Pre-installed PMA Test software

5 Pre-installed PMA Test softwareUpon shipment of the PMA Evaluation Kit there is a test software stored in the PMA Flash memory. This programcode will be executed automatically after power-on.Main features of the Test software are:• RF continuous wave output• ADC test: Measurement of voltage applied to AMUX1• LF carrier detect wake-up• PMA IC revision identificationThe different test modes may be selected by setting a jumper on the related position of connectors X13 and X16and by pressing buttons PP4 and PP5:

Table 5 Pre-installed PMA Test softwareTest selection Test content and response

IDLE:If there is no jumper at X13 and X16 and if buttons PP4 and PP5 are not pressed, PP8 and PP9 are toggling at a frequency of approx. 20Hz.

RF 315MHz, +5dBm:RF continuous wave output at 315MHz.PP8 and PP9 will output 0V.

+ Press button PP4 (PP4 to GND)

RF 434MHz, +5dBm:RF continuous wave output at 434MHz.PP8 will output VBat.PP9 will output 0V.

PP0PP5PP7PP6MSETMEGNDGND

PP1PP4xResetPP3PP9PP8PP2GND

X13

X16

PP0PP5PP7PP6MSETMEGNDGND

PP1PP4xResetPP3PP9PP8PP2GND

X13

X16

PP0PP5PP7PP6MSETMEGNDGND

PP1PP4xResetPP3PP9PP8PP2GND

X13

X16

User Guide 26 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Pre-installed PMA Test software

+ Press button PP5 (PP5 to GND)

RF 434MHz, +10dBm:RF continuous wave output at 434MHz.PP8 will output 0V.PP9 will output VBat.

+ Press button PP4 (PP4 to GND)+ Press button PP5 (PP5 to GND)

RF 868MHz, +10dBm:RF continuous wave output at 868MHz.PP8 will output VBat.PP9 will output VBat.

RF 915MHz, +10dBm:RF continuous wave output at 915MHz.PP8 and PP9 will output 0V.

+ Press button PP4 (PP4 to GND)

ADC:Apply 2,0V at AMUX1 and connect AMUX2 to GND.

Measured value in range (1,9V to 2,1V):PP8 will output VBat

Measured value out of range:PP8 will output 0V.

Table 5 Pre-installed PMA Test softwareTest selection Test content and response

PP0PP5PP7PP6MSETMEGNDGND

PP1PP4xResetPP3PP9PP8PP2GND

X13

X16

PP0PP5PP7PP6MSETMEGNDGND

PP1PP4xResetPP3PP9PP8PP2GND

X13

X16

PP0PP5PP7PP6MSETMEGNDGND

PP1PP4xResetPP3PP9PP8PP2GND

X13

X16

PP0PP5PP7PP6MSETMEGNDGND

PP1PP4xResetPP3PP9PP8PP2GND

X13

X16

User Guide 27 Rev. 1.0, 2009-12-16

PMA71xx/PMA51xxPMA Evaluation Kit

Pre-installed PMA Test software

+ Press button PP5 (PP5 to GND)

LF-receiver carrier detect wake-up:Apply LF-carrier at LFIn (X4).

LF-carrier detected:PP8 is toggling with every carrier detect wake-up (approx. every 1,6 ms).

LF-carrier not detected:PP8 will output 0V

+ Press button PP4 (PP4 to GND)+ Press button PP5 (PP5 to GND)

Firmware revision:Software (ROM) Revision number is put out to PP8.

Upper nibble of MSB is not put out!

Short pulse (1ms) counting: 1=one, 2=two, ….Long pulse (4ms) counting: A=one, B=two, ….Short pulse (1ms) counting: 1=one, 2=two, ….

_ _ _ ___ _ _e.g.: 13A2.. ___| |_| |_| |_| |_| |_| |_ --------3--------A------2----

Table 5 Pre-installed PMA Test softwareTest selection Test content and response

PP0PP5PP7PP6MSETMEGNDGND

PP1PP4xResetPP3PP9PP8PP2GND

X13

X16

PP0PP5PP7PP6MSETMEGNDGND

PP1PP4xResetPP3PP9PP8PP2GND

X13

X16

User Guide 28 Rev. 1.0, 2009-12-16

Published by Infineon Technologies AG

w w w . i n f i n e o n . c o m