PMA Evaluation Kit User Guide

PMA71xx/PMA51xx
SmartLEWIS™ MCU
PMA Evaluation Kit
User Guide
Rev. 1.0, 2009-12-16
Wireless Control
Edition 2009-12-16
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
PMA Evaluation Kit
PMA Evaluation Kit
Revision History: 2009-12-16, Rev. 1.0
Previous Revision: -Page
Subjects (major changes since last revision)
Initial document version
Trademarks of Infineon Technologies AG
A-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 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.
Last Trademarks Update 2009-10-19
User Guide
3
Rev. 1.0, 2009-12-16
PMA71xx/PMA51xx
PMA Evaluation Kit
Table of Contents
Table of Contents
Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1
1.1
1.2
1.3
1.3.1
1.3.2
1.3.2.1
1.3.2.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Content of the PMA Evaluation Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Features of the PMA Evaluation Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Connection to PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Connection to the PC using the SmartLEWISTM System Interface Board . . . . . . . . . . . . . . . . . . . . .
Connection to the PC using the PMA Starter Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Hardware Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Software Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
Documentation Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3
3.1
3.2
3.3
PMA Evaluation Kit Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
GPIO Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ADC Pin Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LF-receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10
11
11
12
4
4.1
4.2
4.3
4.4
4.4.1
4.4.2
4.4.3
4.4.4
Setup of Software Development Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Setup of KEILTM C51 µVISION4 Tool Chain for PMA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Download and install PMA Evaluation Kit Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Setting up a Software Project in KEILTM µVISION4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Use the PMA on-chip Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Hardware Breakpoints: Real Time debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Hardware Breakpoints: Debugging of interrupt functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugging of Clear-on-Read SFRs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Debugging of functions out of the PMA Function Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14
14
15
18
25
25
25
25
25
5
Pre-installed PMA Test software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
User Guide
4
6
6
7
7
7
8
8
9
Rev. 1.0, 2009-12-16
PMA71xx/PMA51xx
PMA Evaluation Kit
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
Figure 12
Figure 13
Figure 14
Figure 15
Figure 16
Figure 17
Figure 18
Figure 19
Figure 20
Figure 21
Figure 22
Figure 23
Figure 24
Figure 25
PMA RF Evaluation Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Connection of the PMA RF Evaluation Board to the PC via SIB v2.0 and USB . . . . . . . . . . . . . . . . 7
Connection to the PC via PMA RF USB Stick . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
PMA RF Evaluation Board - important components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Pin description of programming connector JP2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Schematic of PMA RF Evaluation Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Setup KEILTM C51 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Download Development Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
PMA Evaluation Kit SW ZIP archive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Setup PMA Evaluation Kit KEILTM Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Setup of SIB Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Setup PMA Software Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
New µVISION4 Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Select Infineon PMA Device List. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Select PMA derivative. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Add Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Add Files to New Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
PMA_Software_Framework_V2.0 Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Options for Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Target dialogue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Output dialogue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Debug dialogue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Debug dialogue, Settings, Target Setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Select Infineon PMA Eval Kit Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Flash Download Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
User Guide
5
Rev. 1.0, 2009-12-16
PMA71xx/PMA51xx
PMA Evaluation Kit
Introduction
1
Introduction
The PMA Evaluation Kit is an enhanced development tool for the SmartLEWIS™ MCU PMA-family and will
support developing and debugging of Wireless Control Applications. The PMA RF Evaluation Board allows easy
access to all pins for detailed measurements and supports the embedded LF receiver and ADC functionality of the
SmartLEWIS™ MCU. Furthermore, the Evaluation Kit can be used as interface for programming external
prototypes.
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/PMA51xx
PMA 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 board
is required. The connection to the PC may be established by the SmartLEWIS™ System Interface Board (SIB
v2.0) or alternatively by the PMA RF USB Stick, see http:/www.infineon.com/pma_starterkit. Both boards have
to be ordered separately.
1.3.1
Connection to the PC using the SmartLEWISTM System Interface Board
SmartLEWIS
TM
System Interface Board (SIB)
PMA RF Evaluation Board
USB to PC
50 Ohm
RF out
Figure 2
Connection of the PMA RF Evaluation Board to the PC via SIB v2.0 and USB
User Guide
7
Rev. 1.0, 2009-12-16
PMA71xx/PMA51xx
PMA Evaluation Kit
Introduction
1.3.2
Connection to the PC using the PMA Starter Kit
PMA RF Evaluation Board
Set SelVBat to external
power supply
External power
supply
PMA RF USB Stick
USB
to PC
Interface cable
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 Setup
To connect the PMA RF Evaluation Board with the PMA RF USB Stick, the GPIO-signals, available on connector
X5 of the PMA RF USB Stick, have to be connected to the GPIO-pins of the PMA-IC on the PMA RF Evaluation
Board (see Table 1).
Table 1
Signals to be connected for using the PMA RF USB Stick as PC interface
PMA RF USB Stick
PMA RF Evaluation Board
Pin #
Signal name
Signal name
Connector
Pin #
1
PP2
PP0
X13
1
2
PP3
PP1
X16
8
3
PP4
xReset
X16
6 - on board test button
4
PP5
MSE
X13
5
5
VBAT
6
GNDA
GND
X16
1
not connected
TME
X13
6 - connect to GND on board
not connected
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
User Guide
8
Rev. 1.0, 2009-12-16
PMA71xx/PMA51xx
PMA Evaluation Kit
Documentation Links
1.3.2.2
Software Setup
For setup of software tools, see Chapter 4.1, Setup of KEILTM C51 µVISION4 Tool Chain for PMA
For installation of the PMA Starter Kit software, see “PMA Starter Kit User Guide”:
•
•
2
Chapter 3.2, Download and install PMA Starter Kit Software
Chapter 3.3, Setting up a Software Project in KEILTM C51 µVISION4
Documentation Links
Latest version of all Data Sheets, Application Notes and other documents related to this product family may be
downloaded 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
http:/www.infineon.com/pma_tooling.
tools
for
the
PMA
product
family
is
available
at
All documentation and software for this PMA Evaluation Kit with the PMA RF Evaluation Board is available at
http:/www.infineon.com/pma_evalkit.
User Guide
9
Rev. 1.0, 2009-12-16
PMA71xx/PMA51xx
PMA Evaluation Kit
PMA Evaluation Kit Hardware
PMA Evaluation Kit Hardware
3
The most important components of the PMA RF Evaluation Board are illustrated in Figure 4.
Components for LF
receiver testing with
signal generator
Components for LF
receiver in normal
operation (using a LF
sender coil)
ADC pins
Programming
connector for external
PMA programming
Close X2 for
external PMA
programming
SIB2.0 connector
EEPROM used for board
identification by SIB2.0
GPIO pins from SIB2.0
– currently not used
Additional differential
ADC standard inputs
for external sensor
External
clock
Crystal
Test buttons
PMA GPIO pins
(PP0-PP9) and
TME, MSE,
XRESET
External supply
Power led
Switch: external, internal supply
left: internal, right: external
External clock selection
left-right: crystal, top-bottom: external clock (X10)
PMA
RF matching
network and
SMA connector
Rev. 1.0, 2009-12-16
10
User Guide
VDDD,
VDDA
measurement
pins.
Close
jumpers
for normal
operation.
Measurement points for
I Vbat and I PA. Close
jumpers for PMA power
supply (IVbat) and RFTx (IPA)
PMA RF Evaluation Board - important components
Figure 4
PMA71xx/PMA51xx
PMA Evaluation Kit
PMA Evaluation Kit Hardware
PP0
xRESET
PP1
GND
MSE
VBat
PP0
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 Assignment
For general purpose input-/output-lines (GPIO) see Table 2
Table 2
PMA Evaluation Board - GPIO assignment
PMA-IC
GPIO signal
PP0
PP1
PP2
PP3
PP4
PP5
PP6
PP7
PP8
PP9
3.2
connector
X13
X16
X16
X16
X16
X13
X13
X13
X16
X16
PMA Evaluation Board
Pin #
on-board test button
1
8
2
5
7
PP4
2
PP5
4
3
3
4
ADC Pin Assignment
The ADC Pins are available on connector X3, see Table 3
Table 3
ADC Pins
ADC-Pin
Connector X3 - Pin #
User Guide
VDD
1
V1N
2
VM1
3
V1P
4
11
RD
5
V2P
6
VM1
7
V2N
8
Rev. 1.0, 2009-12-16
PMA71xx/PMA51xx
PMA 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 LFPattern 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 components
Part
Value
Device
R2
0 Ohm
R_0603
R3
0 Ohm
R_0603
R4
100 Ohm
R_0603
R5
47 Ohm
R_0603
R7
100 Ohm
R_0603
R8
16 KOhm
R_0603
R9
16 KOhm
R_0603
C4
-
C5
-
C8
-
User Guide
12
Rev. 1.0, 2009-12-16
GPIO3
GPIO2
GPIO1
GPIO0
I2C_SCL
X15
4
3
2
1
FAM_SCL
FAM_SDA
VPORTA
VPORTB
VPORTC
PORTA2
PORTA4
PORTA6
PORTA8
PORTA10
PORTA12
PORTA14
PORTB0
PORTB2
PORTB4
PORTB6
PORTB8
PORTB10
PORTB12
PORTB14
PORTC2
PORTC4
PORTC6
PORTC8
PORTC10
3
2
1
6
7
+5V
+3V3
+VADJ1
+VADJ2
PORTA0
PORTA1
PORTA3
PORTA5
PORTA7
PORTA9
PORTA11
PORTA13
PORTB1
PORTB3
PORTB5
PORTB7
PORTB9
PORTB11
PORTB13
PORTC0
PORTC1
PORTC3
PORTC5
PORTC7
PORTC9
24C02CSN
A2
A1
A0
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
GND
SDA
VCC
GND
5
+3V3
GPIO3
GPIO2
GPIO1
GPIO0
I2C_SDA GND
GND
GND
GND
C18
tbd
X12
GND
tbd
L5
GND
GND
C19
tbd
GND
C17
tbd
L4
tbd
C14
100p
X6_2
I PA
X6_1
I VBat
D2
LSM767
R6
1k
JP1
VBat-Sel
C3
1u/6V3
GND
+
C7
1u/6V3
C2
100n
C6
100n
GND
GND
C1
100n
RF Out
PP0_PU
PP1_PU
PP1
PP0
C22
1u/6V3
PP0
PP1
PP5
PP4
PP7
XRESET
PP6
PP3
MSE
PP9
TME
PP8
PP2
EN_XCLK
+3V3
+VADJ1
C21
100n
EEPROM for SIB Board ID
GND
SCL
WP
IC1
1
2
3
4
X14 GND
25
24
23
22
21
20
19
18
17
16
15
14
GCLK
13
12
11
10
9
P_MSE
8
P_PP1
7
P_PP0
P_XRESET 6
5
4
3
2
1
I2C_SCL
I2C_SDA
VPORTA
VPORTA
+3V3
PP0_PU
PP1_PU
GND
D1
LSM767
GND
R1
1k
P_XRESET
D3
*3,9V
GND
R18
20
2
4
6
Samtec QTS-025-RA
1
3
5
GND
X5_1
X5_2
JP2
EEPROM
Array
P_PP0
P_PP1
P_MSE
GND
+
R12
10k 5%
+
R13
10k 5%
X2_1
X2_2
GND1
GND2
GND3
GND4
GND5
GND6
GND7
GND8
51
52
53
54
55
56
57
58
8
4
GND
X1_2
1
2
PP5
3
4
GND
GND
C20
tbd
L3
tbd
R16
0E GND
C13
100n
GND
PP0
PP5
PP7
PP6
MSE
TME
1
3
5
7
9
11
13
15
GND
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
3
4
1
2
3
4
5
6
7
8
X13
GND
8
7
6
5
4
3
2
1
X16
TME
MSE
PP9
PP8
1
2
GND
GND
GND
C15
tbd
3
4
GND
GND
C12
100n
JP5
(Select CLK source)
R15
10E
JP4
I VDDD
JP3
I VDDA
NX5032S
Q1
C11
100n
GND
XRESET
V2N
VM2
V2P
RD
PP1
PP4
XRESET
PP3
PP9
PP8
PP2
dig. Signal Monitor
V2N
VDD
VM2
V1N
V2P
VM1
RD
V1P
GNDC
GNDB
VDDA
GNDA
VDDD
VBAT
VREG
PGND
LF
PA
XLF
GND
AMUX2
PP2
AMUX1
PP1
XGND
PP0
PP3
XTAL/SCLK
XTALCAP
PP4
TME
PP5
MSE
PP6
PP9
XRESET
PP8
PP7
X7
PMA5110_Asic
X3
PP4
1
2
1
2
3
4
5
GND
6
7
8
GND
9
10
GND
11
PP2
12
PP1
13
PP0
14
PP3
15
PP4
16
PP5
17
PP6
XRESET 18
19
PP7
VDD
V1N
VM1
V1P
2
4
6
8
10
12
14
16
Sensor-Interface
VDD
V1N
VM1
V1P
RD
V2P
VM2
V2N
JP6
X1_1
(Only needed
if SIB CLK is used)
13
GCLK
GND
GND
R17
1k
X9_1
X9_2
X8_1
X8_2
GND
R9
16k
C16
1n
GND
AMUX1
AMUX2
R8
16k
C8
*tbd
C4
*tbd
R7
100
R4
100
L1
R11
33k 5%
*tbd
R10
User Guide
X10_1
X10_2 XClk
*tbd
R14
Figure 6
C9
180pF
GND
C5
*tbd
C10
47pF
R5
*tbd
L2
7,1mH
X4_1
X4_2
LF In
LF with coil
LF for lab testing
GND
*not populated
R2
0
if LF In is used)
(Only needed
R3
0
Ext VBat
PMA71xx/PMA51xx
PMA Evaluation Kit
PMA Evaluation Kit Hardware
Schematic of PMA RF Evaluation Board
Rev. 1.0, 2009-12-16
*
PMA71xx/PMA51xx
PMA Evaluation Kit
Setup of Software Development Tools
4
Setup of Software Development Tools
This chapter will guide you step-by-step through the installation of the tool environment. This process consists of
the 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 PMA
KEIL™ µVISION4 is an integrated development environment and a state-of-the-art software development suite. It
includes an editor, linker, compiler and a flash tool. The SmartLEWIS™ MCU family is perfectly integrated into this
environment. 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 evaluation
software at https:/www.keil.com/c51/demo/eval/c51.htm. This demo version of the KEIL™ development
environment is code-size limited (maximum 2 kbyte code) and comes up with other restrictions. For details please
refer to the online documentation from KEIL™. The evaluation software can be used as starting point to develop
PMA 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/PMA51xx
PMA Evaluation Kit
Setup of Software Development Tools
4.2
Download and install PMA Evaluation Kit Software
For the integration of the PMA71xx/PMA51xx devices into KEIL™ µVISION4 and the installation of software
examples 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
•
Extract the PMA Evaluation Kit SW ZIP-archive to a temporary directory on your PC.
Figure 9
•
Download Development Tools
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/PMA51xx
PMA 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/PMA51xx
PMA 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-8157034D1E7CF3A3&displaylang=en
User Guide
17
Rev. 1.0, 2009-12-16
PMA71xx/PMA51xx
PMA 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 own
software project for PMA71xx/PMA51xx in KEILTM µVISION4:
•
•
Start KEILTM µVISION4.
Create a new project in KEILTM µVISION4.
Figure 13
•
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
•
New µVISION4 Project
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/PMA51xx
PMA 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/PMA51xx
PMA 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/PMA51xx
PMA 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/PMA51xx
PMA 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/PMA51xx
PMA 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 ziparchive “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/PMA51xx
PMA 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/PMA51xx
PMA Evaluation Kit
Setup of Software Development Tools
4.4
Use the PMA on-chip Debugger
The KEIL™ C51 µVISION4 Tool Chain provides a powerful debugger which is directly accessing the PMA
hardware. 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 debugging
The on-chip debug handler on the PMA71xx/PMA51xx is based on two hardware breakpoints. As a consequence
the debugger functions Run (F5), Step Over (F10), Run to Cursor line (Strg+F10) are internally a rapid sequence
of 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 code
execution 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 the
hardware breakpoints is hit, the communication to the target is lost.
4.4.2
Hardware Breakpoints: Debugging of interrupt functions
The two hardware breakpoints are provided to help debug program execution. It is not possible to display interrupt
handling 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 interrupt
service routines in real-time between the (rapid) single steps. Be aware that interrupt service routines may alter
SFRs and variables.
When an interrupt service routine shall be debugged, a breakpoint has to be set into the interrupt service routine
and 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 SFRs
The debugger fetches SFRs for displaying in the Watch window. SFRs that contain Clear-on-Read flags will be
displayed correctly in the Watch window of the Debugger, nevertheless the fetch for the Watch window clears the
flag contents and will cause the instructions to be executed invalid.
4.4.4
Debugging of functions out of the PMA Function Library
Debugging of the PMA Function Library is blocked. It is not possible to step through the lines of code that are
stored in the ROM. The debugger automatically steps through the PMA Function Library without interaction to the
the Debugger. After the return instruction in the ROM the debugging can be continued. It is possible to execute
functions out of the PMA Function Library in real-time debugging mode by Use Real-time debugging and Run to
Breakpoint.
User Guide
25
Rev. 1.0, 2009-12-16
PMA71xx/PMA51xx
PMA Evaluation Kit
Pre-installed PMA Test software
5
Pre-installed PMA Test software
Upon shipment of the PMA Evaluation Kit there is a test software stored in the PMA Flash memory. This program
code 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 identification
The different test modes may be selected by setting a jumper on the related position of connectors X13 and X16
and by pressing buttons PP4 and PP5:
Table 5
Pre-installed PMA Test software
Test selection
Test content and response
PP0
PP5
PP7
PP6
MSE
TME
GND
GND
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.
X13
X16
PP1
PP4
xReset
PP3
PP9
PP8
PP2
GND
PP0
PP5
PP7
PP6
MSE
TME
GND
GND
RF 315MHz, +5dBm:
RF continuous wave output at 315MHz.
PP8 and PP9 will output 0V.
X13
X16
PP1
PP4
xReset
PP3
PP9
PP8
PP2
GND
PP0
PP5
PP7
PP6
MSE
TME
GND
GND
RF 434MHz, +5dBm:
RF continuous wave output at 434MHz.
PP8 will output VBat.
PP9 will output 0V.
X13
X16
PP1
PP4
xReset
PP3
PP9
PP8
PP2
GND
+ Press button PP4 (PP4 to GND)
User Guide
26
Rev. 1.0, 2009-12-16
PMA71xx/PMA51xx
PMA Evaluation Kit
Pre-installed PMA Test software
Table 5
Pre-installed PMA Test software
Test selection
Test content and response
PP0
PP5
PP7
PP6
MSE
TME
GND
GND
RF 434MHz, +10dBm:
RF continuous wave output at 434MHz.
PP8 will output 0V.
PP9 will output VBat.
X13
X16
PP1
PP4
xReset
PP3
PP9
PP8
PP2
GND
+ Press button PP5 (PP5 to GND)
PP0
PP5
PP7
PP6
MSE
TME
GND
GND
RF 868MHz, +10dBm:
RF continuous wave output at 868MHz.
PP8 will output VBat.
PP9 will output VBat.
X13
X16
PP1
PP4
xReset
PP3
PP9
PP8
PP2
GND
+ Press button PP4 (PP4 to GND)
+ Press button PP5 (PP5 to GND)
PP0
PP5
PP7
PP6
MSE
TME
GND
GND
RF 915MHz, +10dBm:
RF continuous wave output at 915MHz.
PP8 and PP9 will output 0V.
X13
X16
PP1
PP4
xReset
PP3
PP9
PP8
PP2
GND
PP0
PP5
PP7
PP6
MSE
TME
GND
GND
X13
X16
PP1
PP4
xReset
PP3
PP9
PP8
PP2
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.
+ Press button PP4 (PP4 to GND)
User Guide
27
Rev. 1.0, 2009-12-16
PMA71xx/PMA51xx
PMA Evaluation Kit
Pre-installed PMA Test software
Table 5
Pre-installed PMA Test software
Test selection
Test content and response
PP0
PP5
PP7
PP6
MSE
TME
GND
GND
X13
X16
PP1
PP4
xReset
PP3
PP9
PP8
PP2
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 PP5 (PP5 to GND)
PP0
PP5
PP7
PP6
MSE
TME
GND
GND
X13
X16
PP1
PP4
xReset
PP3
PP9
PP8
PP2
GND
+ Press button PP4 (PP4 to GND)
+ Press button PP5 (PP5 to GND)
User Guide
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----
28
Rev. 1.0, 2009-12-16
w w w . i n f i n e o n . c o m
Published by Infineon Technologies AG