Home
Wireless Sense & Control User Manual TDA5340
Contents
1. res EW ERRARE WIRRARRRAURRRRRLRRRRRRE Instruction gt l Register Address gt la Data Byte A Instruction Register Address Al la Data Byte ECoooDOCCCCOOIOICTT SS NNNUUOCOOUOIIISSS325 555252 MN high impedance Z SDO Figure 25 Write Register Burst Write Command To write to the device in Burst mode the SPI master has to select the SPI slave unit first Therefore the master has to drive the NCS line to low After the instruction byte and the start address byte have been transferred to the SPI slave MSB first the successive data bytes will be stored into the automatically addressed registers To verify the SPI Burst Write transfer the current address start address start address 1 etc is stored in SPI Address Tracer Register and the current data field of the frame is stored in SPI Data Tracer Register At the end of the Burst Write frame the latest address as well as the latest data field can be read out to verify the transfer Note that some error in one of the intermediate data bytes are not detected by reading SPI Data Tracer Register Driving the NCS line to high will end the Burst frame A single SPI Burst Write command can be applied very efficiently for data transfer either within a register block of configuration dependent registers or within the block of configuration i
2. O 1 28 2 27 3 26 4 25 5 24 6 23 7 22 IDA5340 9 20 10 19 11 18 12 17 13 16 14 15 14 IF OUT VDDRF PPRF RFOUT GNDRF LNA INP LNA INN GNDRF TM SDO SDI SCK NCS XTAL2 Revision 1 0 17 02 2012 Infineon 1 5 Table 1 TDA5340 SmartLEWIS TRX Pin Definition Pin Definition and Function Introduction Pin Nr Pad Name Equivalent I O Schematic Function 1 PPRF RSSI RSSI VDDRF Analog output Digital output with weak driver capability always in 3V domain RX RUN NINT ANT EXTSWA ANT EXTSWA DATA DATA MATCHFIL CH DATA CH STR RXD RXSTR TXSTR and TRISTATE are programmable via SFR default TRISTATE VDDA GNDA Analog input Analog supply GNDA VDDA n GNDA analog ground Analog Ground User Manual 15 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Introduction Table 1 Pin Definition and Function PinNr Pad Name Equivalent I O Schematic Function 4 IF_IN VDA Analog input A biis IF mixer input not sel inp A vd 3200 mimCAP 10p IF IN EP a T A T sel_inp GNDIF VDDA GNDIF fanz GNDIF 5 GNDIF Analog Ground GNDIF k GNDA 6 VDD5V Analog input VDD5V 5 Volt supply input 2 GNDD GNDD 5V supply 7 VDDD Analog input VDD5V digital
3. Register Short Name Register Long Name Offset Address Page Number Registers Registers A MIDO Message ID Register 0 000 123 A MID1 Message ID Register 1 001 123 A_MID2 Message ID Register 2 0024 123 A_MID3 Message ID Register 3 003 124 A_MID4 Message ID Register 4 004 124 A MID5 Message ID Register 5 005 124 A MID6 Message ID Register 6 006 125 A_MID7 Message ID Register 7 007 125 A_MID8 Message ID Register 8 008 126 A_MID9 Message ID Register 9 009 126 A_MID10 Message ID Register 10 00A 126 A_MID11 Message ID Register 11 00B 127 A_MID12 Message ID Register 12 00C 127 A_MID13 Message ID Register 13 00D 127 A_MID14 Message ID Register 14 00E 128 A_MID15 Message ID Register 15 OOF 128 A_MID16 Message ID Register 16 010 128 A_MID17 Message ID Register 17 011 129 A_MID18 Message ID Register 18 012 129 A_MID19 Message ID Register 19 013 130 A_MIDCO Message ID Control Register 0 014 130 A_MIDC1 Message ID Control Register 1 015 130 A IF1 IF1 Register 016 131 A WUC Wake Up Control Register 017 132 A WUPATO Wake Up Pattern Register O 018 133 A WUPAT1 Wake Up Pattern Register 1 0194 134 A_WUBCNT Wake Up Bit or Chip Count Register 01A 134 A WURSSITH1 RSSI Wake Up Threshold for Channel 1 Register 01B 135 A WURSSIBL1 RSSI Wake Up Blocking Level Low Channel 1 01C 135 Register A_WURSSIBH1 RSSI Wake Up Blocking Level High Channel 1 01D 136 Register A_WURSSITH2 RSS
4. When the time TSI GAP in the start sequence of the transmitted telegram has elapsed the receiver needs a certain time GAPSync 5 6 chips to readjust the PLL settings Behavior of the system at the starting position of the TSI B The starting position TSI B start for the TSI B comparison is independent from the RUNIN settings CDR Configuration Register 0 and the resynchronization mode TSI Detection Mode Register TSIB sar chips TSIGAP ch ips T 6 8 22 The incoming chips at TSI B start and the following incoming chips are compared with the contents of the register TSI B Please notice that the receiver s PLL runs at the data rate determined before the gap Therefore the receiver calculates the gap based on this data rate Behavior of the system at the ending position of TSI B The system checks for the TSI B to match within a limited time If there is no match within this time then the receiver starts again to search for the TSI A pattern at the following incoming chips TSIB chips TSIGAP chips TSIGAP chips 11 Stop 23 For a successful TSI B pattern match the defined TSI B pattern must be between Start of TSI B and Stop of TSI B In the example below the earliest possible start position would be the 18 chip and the latest possible start position would be the 22 chip User Manual 99 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description
5. A_MID17 Offset Reset Value Message ID Register 17 011 00 7 0 MID17 w Field Bits Type Description MID17 7 0 w Message ID Register 17 Reset 004 Message ID Register 18 A_MID18 Offset Reset Value Message ID Register 18 012 00 7 0 T T T T MID18 w Field Bits Type Description MID18 7 0 w Message ID Register 18 Reset 00 User Manual 129 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Message ID Register 19 RegistersGenerated Registers Overview A MID19 Offset Reset Value Message ID Register 19 013 00 7 0 MID19 w Field Bits Type Description MID19 7 0 w Message ID Register 19 Reset 00 Message ID Control Register 0 A_MIDCO Offset Reset Value Message ID Control Register 0 014 00 7 6 0 Res SSPOS r w Field Bits Type Description Res 7 r for future use Reset 0 SSPOS 6 0 Ww Message ID Scan Start Position Min 00h Comparision starts one Bit after FSYNC Max 7F Comparision starts 128 Bits after FSYNC Reset 00 Message ID Control Register 1 A_MIDC1 Offset Reset Value Message ID Control Register 1 015 00 User Manual 130 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview 7 4 3 2 1 0 Res MIDSEN MIDBO MIDNTS li w w w Field Bits Type
6. A_SRTHR Offset Reset Value Signal Recognition Threshold Register 027 10 7 0 SRTHR li li I I w Field Bits Type Description SRTHR 7 0 W In case of Signal Recognition as WU criterion or FFB criterion the register defines the minimum consecutive T 16 samples of the Signal Recognition output to be at high level for a positive wake up event generation or FFB generation Reset 104 Slicing Level Saturation Register A_SIGDETSAT Offset Reset Value Slicing Level Saturation Register 028 FF 7 0 SIGDETSAT Ww User Manual 140 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description SIGDETSAT 7 0 Ww Saturation limit of the data slicing level Reset FF Wake up on Level Observation Time Register A WULOT Offset Reset Value Wake up on Level Observation Time Register 029 00 WULOTPS WULOT Ww Field Bits Type Description WULOTPS 7 5 Ww Wake Up Level Observation Time PreScaler 000g 4 001 8 010 16 011 32 100 64 101 128 110 256 111 512 Reset Op WULOT 4 0 Wake Up Level Observation Time Min 01h Twulot 1 WULOTPS 64 Fsys Max 1Fh Twulot 31 WULOTPS 64 Fsys Value 00h Twulot 32 WULOTPS 64 Fsys Reset 00 Synchronization Search Time Out Register A SYSRCTO Offset Re
7. Cinfineon SmartLEWIS M TRX TDA5340 High Sensitivity Multi Channel Transceiver User Manual Revision 1 0 17 02 2012 Wireless Sense amp Control Edition 17 02 2012 Published by Infineon Technologies AG 81726 Munich Germany 2012 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
8. RXRUNPP1B RXRUN Active Level on PP1 for Configuration B Og Active Low 1g Active High Reset 14 RXRUNPP1A RXRUN Active Level on PP1 for Configuration A Og Active Low 1g Active High Reset 1 RXRUNPPOD RXRUN Active Level on PPO for Configuration D Og Active Low 1g Active High Reset 1 RXRUNPPOC RXRUN Active Level on PPO for Configuration C Og Active Low 1g Active High Reset 14 RXRUNPPOB RXRUN Active Level on PPO for Configuration B Og Active Low 1g Active High Reset 14 RXRUNPPOA RXRUN Active Level on PPO for Configuration A Og Active Low 1g Active High Reset 1 RX RUN Configuration Register 1 RXRUNCFG1 RX RUN Configuration Register 1 Offset 0AG 7 6 5 4 3 2 1 Reset Value FF 0 RXRUNPP 3D RXRUNPP 3C RXRUNPP 3B RXRUNPP 3A RXRUNPP 2D RXRUNPP 2C RXRUNPP 2B RXRUNPP 2A Ww Ww Ww Ww Ww Ww Ww Ww Field Bits Type Description RXRUNPP3D RXRUN Active Level on PP3 for Configuration D Og Active Low 1g Active High Reset 1 User Manual 198 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description RXRUNPP3C RXRUN Active Level on PP3 for Configuration C Og Active Low 1g Active High Reset 14 RXRUNPP3B RXRUN
9. Interrupt Generation Unit on Page 50 User Manual 28 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Operating Modes Automatic Modulation Switching In Self Polling Mode the chip is able to automatically change the type of modulation after a wake up criterion was fulfilled in a received data stream The type of modulation used in the different operational modes is selected by the SFR control bit MT Multi Channel in Self Polling Mode As previously mentioned in Self Polling Mode the TDA5340 allows RF scans on up to four RF channels per configuration this can be defined in the Channel Configuration Register Channel frequencies are defined in registers PLL MMD Integer Value Register Channel 1 PLL Fractional Division Ratio Register 0 Channel 1 PLL Fractional Division Ratio Register 1 Channel 1 and PLL Fractional Division Ratio Register 2 Channel 1 where A can be replaced by B C or D and C1 can be replaced by C2 C3 or C4 to access the different channels and configurations Parallel Wake Up Search While the TDA5340 is in Run Mode Self Polling further Wake ups would normally not be detected by the receiver If the functionality of a parallel Wake up search during the search for a TSI is desired this can be activated by the PWUEN bit in Wake Up Control Register In this case the Wake up search is not active during a recognized payload and is only active after the first received payload frame This feature can
10. Offset 0D2 224 Reset Value 00 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview 7 6 5 4 0 Mica VACERR piis VCORANGE ji ll ll rc rc rc r Field Bits Type Description TXFIFOERR 7 rc TXFIFO Error Og TXFIFO OK 1g TXFIFO Error Reset 0 VACERR 6 rc VAC error 0g VAC OK 1g VAC failed Reset 0 LOCKDETER 5 rc PLL lock error R 0s PLL locked 1g PLL not locked Reset 0 VCORANGE 4 0 r VCO Range selected by VCO Autocalibration Routine Reset 004 Interrupt Status Register 2 IS2 Offset Reset Value Interrupt Status Register 2 0D3 FF 7 6 5 4 3 2 1 0 TXE TXR TXDS TXAF TXAE TXEMPTY SYSRDY RXAF rc rc rc rc rc rc rc rc Field Bits Type Description TXE 7 rc Interrupt Request by TX Error Reset event sets all Bits to 1 PLL out of lock or VAC error Og Not detected 1g Detected Reset 1 TXR 6 rc Interrupt Request by TX Ready Reset event sets all Bits to 1 The PLL calibration is finalized and the transmitter is now ready to start the transmission Og Not detected 1g Detected Reset 14 User Manual 225 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description TXDS 5 rc Interrupt Request by TX Data Strobe Reset event sets all Bits to 1 New data request in transpa
11. Offset Reset Value 037 OB Res AGCHYS AGCGAIN Ww Ww Field Bits Type Description Res T 4 r for future use Reset 0 AGCHYS 3 2 w AGC Threshold Hysteresis 00 12 8 dB 01g 17 1 dB 10 21 3 dB 11 25 6 dB Reset 24 AGCGAIN 1 0 w AGC Gain Control 00 OdB 01 15dB 10 30 dB 11 Automatic Reset 34 User Manual 149 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX AGC Configuration Register 1 RegistersGenerated Registers Overview A_AGCCFG1 Offset Reset Value AGC Configuration Register 1 038 2F 7 6 5 2 1 0 Res AGCDGCDEL AGCTHOFFS r w w Field Bits Type Description Res 7 6 f for future use Reset 0 AGCDGCDEL 5 2 Ww AGC Digital Gain delay in Fsys 80 samples Reset By AGCTHOFFS 1 0 w AGC Threshold Offset 00 25 5 qB 01 38 3 dB 10 51 1 qB 11g 63 9 dB Reset 3 AGC Threshold Register A AGCTHR Offset Reset Value AGC Threshold Register 039 08 7 4 3 0 AGCTUP AGCTLO w w Field Bits Type Description AGCTUP 7 4 w AGC Upper Attack Threshold dB AGC Upper Threshold A AGCCFG1 AGCTHOFFS 25 6 AGCTUP 1 6 Reset 0 AGCTLO 3 0 W AGC Lower Attack Threshold dB AGC Lower Threshold A AGCCFG1 AGCTHOFFS AGCTLO 1 6 Reset 84 User Manual 150 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview
12. TSI patterns must be different to the wake up bit stream and the RUNIN to clearly mark the start of the following payload data frame It should be considered that the synchronization has a tolerance of about one bit In addition synchronization is related to data chips and may occur in the middle of a data bit This all must be tolerated by the data framer Further details can be seen in RUNIN Synchronization Search Time and Inter Frame Time on Page 103 Ideal TSI patterns have a unique bit combination at their end which may also contain a number of code violations CVs when possible see Data Slicer on Page 84 Some examples of TSI patterns 0000000000000001000000000000001100000000000000101111111111111110 When CVs are used 0000000000000M111111111111111M0 Note CVs in a TSI are practical for better differentiation to the real data especially if repetition of data frames is used for wake up End of Message EOM Detection An End Of Message EOM detection feature is provided by the EOM detector Three criteria can be selected in the End Of Message Control Register to indicate an EOM Data length Code Violation Loss of SYNC The first is based on the number of received bits since frame synchronization The number of expected bits is preset in the EOM Data Length Limit Register Sending fewer bits as defined in the register will result in no EOM The EOM counter will be reset after new frame synchronization In 8 Bi
13. The 0 5 T have to be added in case of activation of Bi phase mark space decoding mode and Data Slicer Bit mode without Code Violation see Slicer Configuration Register The T has to be added in case of Digital Receiver Configuration Register INITDRXES is enabled 6 14 Decoding Encoding Modes The IC supports the following Bi phase encodings Manchester code Differential Manchester code Bi phase space code Bi phase mark code Miller code TX only NRZ The encoding mode is set and enabled by bit group CODE in Digital Receiver Configuration Register receiver and TX Configuration Regsiter transmitter configuration register Data 1 0 1 0 0 1 1 0 Clock Manchester Differential Manchester Biphase Space Biphase Mark Miller NRZ PRBS Scrambling Figure 81 Encoding Decoding Schemes NRZ Mode The performance of the receiver in NRZ mode is highly influenced by the length of the synchronization pattern preamble and also from the maximum allowed consecutive equal bits in the NRZ bit stream The longer the synchronization pattern and the lower the max allowed consecutive equal bits for example 3 out of 6 coding has only 3 consecutive equal bits the better the performance of the system The synchronization pattern should contain as much as possible bit transitions to enable a good settling of the Clock Data Recovery After the synchroniz
14. User Manual 33 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX System Interface Packet Oriented Mode Alternatively the TDA5340 features the so called Packet Oriented Mode which supports the autonomous reception and transmission of data telegrams The Packet Oriented Mode provides a high level System Interface which greatly simplifies the integration of the transceiver in data centric applications In Packet Oriented Mode the data interface is based on chunks of synchronous data which are received in packets In the easiest way the Application Controller only reacts on the synchronous data it receives The receiver autonomously handles the line decoding and the deframing of these data and supports the timed reception of packets Data is buffered in a receive FIFO and can be read out via the data interface Further the receiver provides support for the identification of wake up signals Details on the usage of the Packet Oriented Mode of the receiver are given in Chapter 4 3 1 for the receive mode and in Chapter 4 3 3 for the transmit portion 4 1 Interfacing to the TDA5340 The TDA5340 is interfacing with an application by three logical interfaces see Figure 14 The RF IF interface handles the transmission of RF signals and is responsible for the modulation and demodulation Its physical implementation has been described in RF IF Receiver on Page 55 Receiver Baseband on Page 69 for the receiver and in
15. bit Tpit 31 User Manual 108 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description Edge delay Definition MDC Duration delayed edge Symbol period MDC lt 50 1 20 M o m d ET gt i lt Ty i Toi bit chip Figure 84 Definition C Edge delay definition This definition determinates the duty cycle to be the ratio of the duration of the delayed high chip and the ideal symbol period independently of the information bit content The position of the high chip is determined by the delayed rising edge and or the delayed falling edge For T Tg Trise the Manchester duty cycle is calculated to T RATC EI 4T eT T n l delayed Hishchi chi chi rise MDC seer om P dy T it T it it 32 Independent on the bit content the same type of edge rising edge and or falling edge is shifted 6 15 3 Definition of Power Level The reference plane for the power level is the input of the receiver board This means the power level at this point P is corrected for all offsets in the signal path e g attenuation of cables power combiners etc The specification value of power levels in terms of sensitivity is related to the peak power of P in case of On Off Keying OOK This is noted by the unit dBm peak User Manual 109 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Block Description Specification value of power levels is related to a M
16. ssssseeseeee em mm 88 Definition of Tolerance Windows for the CDR lssseese eh 89 Wake Up Generation Unit 0 00000 ccc eee 91 RSSI Blocking Thresholds 0000 e 92 Wake Up Data Criteria Search naana aana aaae tees 95 Frame Synchronization Unit 2 0 0 0 0 eet eee 96 16 Bit TSI Mode idee e ae ee Reto etek Adee d dud egi 96 8 Bit Parallel TSI Mode edid kam dean ed eR Mew ae pon qos Gale Qe KR Rd ea RR 97 8 Bit Extended TSI Mode 2 62 ccc oo as ous e p ER ux R3 G pe Red 97 8 Bit Gap TSI Mode lisluulullllllel eer 97 Clock Recovery Gap Resynchronization Mode TSIGRSYN 1 22200200 eee 99 Clock Recovery Gap Resynchronization Mode TSIGRSYN 0 22220020000e 99 TSIGap TSIB Timing eer isuci ran tira daa ok e EE e I A 100 TVWIN and TSIGAP dependency example 0000 00 cee eee eee eee 100 4 Byte Message ID Scanning llli e 101 2 Byte Message ID Scanning 0 0 tees 102 MID Scanning CL 103 Structure of Payload Frame 1 eee ae 103 Data Latency ss sess erm rud X ER Eua Rua pidde ese sagas aad apes aadea dams 104 Encoding Decoding Schemes 0 0 eect tees 105 Definition A Level based definition 0 0 0c tee 107 Definition B Chip based definition 00 0000 cee 108 Definition C Edge delay definition liliis IA 109 SER Symbols 1 222 4020 die ER e rx RREDPRLIeske qq ududiberesbvpebeddbesheerebevqg
17. Active Idle Period 0 000000 TOTIM Behavior 20 00200000s User Manual List of Figures Revision 1 0 17 02 2012 TDA5340 In fineon SmartLEWIS TRX Figure 50 Figure 51 Figure 52 Figure 53 Figure 54 Figure 55 Figure 56 Figure 57 Figure 58 Figure 59 Figure 60 Figure 61 Figure 62 Figure 63 Figure 64 Figure 65 Figure 66 Figure 67 Figure 68 Figure 69 Figure 70 Figure 71 Figure 72 Figure 73 Figure 74 Figure 75 Figure 76 Figure 77 Figure 78 Figure 79 Figure 80 Figure 81 Figure 82 Figure 83 Figure 84 Figure 85 List of Figures Synthesizer Block Diagram 1 0 eee 65 TRX frequency range 0 0 ee ete teens 66 Functional Block Diagram ASK FSK Demodulator 000000 tee 69 DEL OG FUNGUO i a2 nck ecce ox mee Ee Y Os oa we Re UR A Rasa ae GR poe a ew e de 70 Analog RSSI output curve with AGC action ON blue vs OFF black 000 74 Peak Detector Unit oo tre Bea RR RR D RR REB o RE BI ae d e te a CR GRE IR e ee 77 Peak Detector Behavior usuaussssussasnaarrnenenarernanararannanadrananannanan 78 ADR priliciple na devanda Oh Rea tte a a ean gM Aa A AA a EGG d EE Rd OHA 79 Functional Block Diagram Digital Baseband Receiver nanana ananuna cee ee 82 Signal Detector Threshold Level 0 0 0 0c eee 83 DATA Output DC Offset Cancellation 2l 86 DATA Matched Filter Output llslsslsslleleee es 87 Clock Recovery ADPLL
18. PRIMARION PrimePACK PrimeSTACK PRO SIL PROFET RASIC ReverSave SatRIC SIEGET SINDRION SIPMOS SmartLEWIS SOLID FLASH TEMPFET thinQ TRENCHSTOP TriCore Other Trademarks Advance Design System ADS of Agilent Technologies AMBA ARM MULTI ICE KEIL PRIMECELL REALVIEW THUMB uVision 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 MICROWAVE OFFICE MWO of Applied Wave Research Inc OmniVision of OmniVision Technologies Inc Openwave Openwave Systems Inc RED HAT Red Hat Inc RFMD RF Micro Devices Inc SIRIUS of Sirius Satellite Radio Inc SOLARIS of Sun Microsystems Inc SPANSION of Spansion LLC Ltd
19. Transmitter on Page 58 Transmitter Baseband on Page 67 for the transmitter The other two logical interfaces establish the connection to the Application Controller Note that due to the high level of integration of the transceiver these interfaces impose minor requirements on the Application Controller which can be as simple as an 8 bit micro controller operated at low clock rate As will be shown later the physical implementation of the data interface depends on whether the transceiver is operating in Packet Oriented or in Transparent Mode For the sake of clarity the communication between the TDA5340 and the Application Controller is split into control flow and data flow This separation leads to an independent definition of the data interface and the control interface respectively data interface SPI dig In Out Application TDA5340 Controller UC configuration status amp alerts SPI amp dig Out Figure 14 Logical and electrical System Interfaces of the TDA5340 control interface 4 2 Control Interface The control interface is used in order to configure the TDA5340 after start up or to re configure it during run time as well as to properly react on changes in the status of the transceiver in the Application Controller s firmware The control interface offers a bi directional communication link by which configuration data is sent from the Application Contr
20. _ interface RX data RX chip strobe bit synchronizer scheduler Figure 19 Data interface for the Transparent Mode Chip Data and Strobe RF Interface Application Controller In the TDA5340 there is a specific digital output line for the chip clock estimate as well as for the data output line which delivers the encoded chip data During inactivity of the receiver the line is in default mode switched to low The PPx pin provides the estimated chip clock if CH STR is selected Further details are given in Chapter 4 7 In default mode the CH STR signal is active high and has a delay of TCHIP 8 relative to the data chip and a duration of TCHIP 2 The polarity of the CH STR signal is programmable this can be done via PPx Port Configuration Register User Manual 37 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX System Interface CH DATA CH STR Tcuir 2 Figure 20 Timing of the Transparent Mode Chip Data and Strobe Transparent Mode Matched Filter TMMF The received data after the Matched Filter Two Chip Matched Filter with an additional SIGN function is provided via the DATA MATCHFIL signal PPx pin In this mode sensitivity measurements with ideal data clock can be performed very simple For further details see the block diagram in Figure 58 Sensitivity in this transparent mode significantly depends on the implemented clock and data recovery algorithm of the use
21. fsys Max FFFh 4095 64 512 fsys 00h disabled Reset Fy SYNC Timeout Timer Register A_TOTIM_SYNC Offset Reset Value SYNC Timeout Timer Register 02D FF 7 0 TOTIMSYNC w Field Bits Type Description TOTIMSYNC 7 0 w Set value of Time Out Timer Symbol Synchronization Timer is used to get back from Run Mode Self Polling to the Self Polling Mode whenever there is no Symbol Synchronization Timer is set back at new cycle start of Run Mode Self Polling TimeOut TOTIMSYNC 64 512 fsys Min 01h 1 64 512 fsys Max FFh 255 64 512 fsys 00h disabled Reset FF TSI Timeout Timer Register A TOTIM TSI Offset Reset Value TSI Timeout Timer Register 02E 00 7 0 TOTIMTSI w User Manual 143 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description TOTIMTSI 7 0 w Set value of Time Out Timer Telegram Start Identifier Timer is used to get back from Run Mode Self Polling to the Self Polling Mode whenever a Symbol Synchronisation is available but there is no TSI detected Timer is set back at new cycle start of Run Mode Self Polling TimeOut TOTIMTSI 64 512 fsys Min 01h 1 64 512 fsys Max FFh 255 64 512 fsys 00h disabled Reset 00 EOM Timeout Timer Register A TOTIM EOM Offset Reset Value EOM Timeout Timer Reg
22. 04 PPOINV PPO Inversion Enable Og Not Inverted 1e Inverted Reset 0 PPRF_RSSI Configuration Register PPCFG3 PPRF_RSSI Configuration Register User Manual Offset Reset Value 0A4 OF 196 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview 7 4 3 0 Res PPRSSICFG li l r w Field Bits Type Description Res 7 4 r for future use Reset 0 PPRSSICFG 3 0 w Port Pin PPRF_RSSI Output Signal Selection 0000 n u 0001 RX_RUN 0010 NINT 0011 ANT_EXTSW1 0100 ANT_EXTSW2 0101 DATA 0110 DATA MATCHFIL 0111 LOW 1000 CH DATA 1001 CH STR 1010 RXD 1011 RXSTR 1100 TXSTR 1101 HIGH 1110 n u 1111 TRISTATE Reset F RX RUN Configuration Register 0 RXRUNCFGO Offset Reset Value RX RUN Configuration Register 0 0A5 FF 7 6 5 4 3 2 1 0 RXRUNPP RXRUNPP RXRUNPP RXRUNPP RXRUNPP RXRUNPP RXRUNPP RXRUNPP 1D 1C 1B 1A 0D 0C 0B 0A w w w w w w w w Field Bits Type Description RXRUNPP1D 7 Ww RXRUN Active Level on PP1 for Configuration D Og Active Low 1g Active High Reset 14 User Manual 197 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description RXRUNPP1C RXRUN Active Level on PP1 for Configuration C Og Active Low 1g Active High Reset 14
23. 3FFFh 16383 TRT Max 0000h 16384 TRT Reset 014 Self Polling Mode On Time Config A Register 1 SPMONTA1 Offset Reset Value Self Polling Mode On Time Config A Register 0C0 00 1 7 6 5 0 Res SPMONTA1 r w User Manual 213 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description Res 7 6 r for future use Reset 0 SPMONTA1 5 0 w Set Value Self Polling Mode On Time SPMONTA 13 0 SPMONTA1 MSB amp SPMONTAO LSB On Time TRT SPMONTA Min 0001h 1 TRT Reg Value 3FFFh 16383 TRT Max 0000h 16384 TRT Reset 00 Self Polling Mode On Time Config B Register 0 SPMONTBO Offset Reset Value Self Polling Mode On Time Config B Register 0C1 01 0 7 0 SPMONTBO w Field Bits Type Description SPMONTBO 7 0 w Set Value Self Polling Mode On Time SPMONTB 13 0 SPMONTB1 MSB amp SPMONTBO LSB On Time TRT SPMONTB Min 0001h 1 TRT Reg Value 3FFFh 16383 TRT Max 0000h 16384 TRT Reset 014 Self Polling Mode On Time Config B Register 1 SPMONTB1 Offset Reset Value Self Polling Mode On Time Config B Register 0C2 00 1 7 6 5 0 Res SPMONTB1 r w User Manual 214 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description Res 7 6 r for future use Reset 0 SPMO
24. 6 13 12 6 13 13 6 13 14 6 13 14 1 6 13 14 2 6 13 14 3 6 13 14 4 6 13 15 6 13 16 6 13 17 6 14 6 15 6 15 1 6 15 2 6 15 3 6 15 4 Table of Contents Single Double Down Conversion 0 0 0 eee 57 Band Pass Filter BPF 21s esc escesed ue ane ee eee RR qct nue Bl anna X oe eee 58 Transmitter sarpa EUER 58 Power Amplifier naana anaana 58 Duty Cycle Control 25 bein ee e uk eeu a E Peat dea bale eu pde 59 Crystal Oscillator and Clock Divider 0 0 0 Rh 59 Polling Time oce ubt eid orate Riad AER Rue p en ea eae bas CET te aaa eae 60 Time Out Timer TOTI 224045645 xk REGIE been ee ne ee ee ee eel dea 62 Baud Rate Generator 00 6 cee eee anh eee eee ee 63 Sigma Delta Fractional N PLL 1 eee 64 Analog to Digital Converter ADC 0 00 eee eee 66 Temperature Sensor ote snaait aa ode hehe Weve RAT DR RE RARE ARA RR RR 66 Transmitter Baseband sersyecss redre interu AEREN EnA hm hrs 67 ASK OOK Sloping shaped ASK OOK 0 000 eae 67 FSK and GFSK Modulation 0 000 68 Receiver Baseband 0c ee tee tee hh 69 ASK Demodulator 2 naeh ane etude te see Be RO do Re ae e 69 Delog Block amp Peak Memory Filter llsieelseelee IIIA 70 FSK Demodulator ac ankenia xU eto Akash ea ORC DU RC Pob de T ded d tede d lu 71 Automatic Frequency Control AFC lsssseeeeseee hr 71 Digital Automatic Gain Control AGC 0 eet 74 RSSI Peak Detector sic cea oda ae ak
25. 8 1 25 as 6 13 16 Message ID Scanning This unit is used to define an ID or special combination of bits in the payload data stream which identifies the pattern All SFRs configuring the Message ID Scanning Unit feature the Multi Configuration capability Furthermore it is available in the Slave and Self Polling Mode The MID Unit can be mainly configured in two modes 4 Byte and 2 Byte organized Message ID see Message ID Control Register 1 MIDBO For each configuration there are 20 8 bit registers designed for ID storage SFRs are used to configure the MID Unit Enabling of the MID scanning setting of the ID storage organization the starting position of the comparison and number of bytes to scan When the Message ID Scanning Unit is activated the incoming data stream is compared bit wise serially with all stored IDs If the Scan End Position is reached and all received data have matched the observed part of at least one MID the Message ID Scanning Unit indicates a successful MID scanning to the Master FSM which generates an MID interrupt Please note that the default register value of the Message ID Register 0 to Message ID Register 19 is set to 0x00 All MID registers must be set to a pattern value to avoid matching to default value 0x00 If the MID Unit finishes ID matching without success the data receiving is stopped and the FSM waits again for a Frame Start criterion The received bits are still stored in the FIFO User Manual 100 Revisi
26. After this the instruction byte is shifted in on SDI and stored in the internal instruction register The data bits of the FIFO are then shifted out on SDO The following byte is a status word that contains the number of valid bits in the data packet After completing the read operation either the master sets the NCS line to high or continues with another SPI command User Manual 43 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX System Interface T a e A e pe 1 8 1 32 1 8 1 8 1 32 1 B SCK A A 4 AY Y Y jJ YvY v Y jJ Y mar ij 4 AY Y Y viviy tlt Y Instruction Instruction 32 FIFO Bits gt a Status Word gt Pp 32 FIFO Bits Status Word gt r cene ie elle 398 2 ee eee ee 9 Figure 29 Read FIFO Write FIFO Command To write to the TX FIFO the SPI master has to select the SPI slave unit first Therefore the master has to drive the NCS line to low After the instruction byte MSB first the next byte contains the number of data items chip or bit minus 1 to be transferred to the FIFO Therefore 0x00 means a single data item whereas OxFF means 256 data items Successive data bytes contain the data items to be stored into the FIFO Only the number of data items specified in the 2nd byte of the instruction wil
27. Clock divided by 2 2 Max FFFFFh Clock divided by 2420 1 2 Reg value 00000h Clock divided by 2 20 2 Reset 00 Clock Divider Register 2 CLKOUT2 Offset Reset Value Clock Divider Register 2 0A9 104 7 6 5 4 3 0 Res ae SEEMS CLKOUT2 r w w wW Field Bits Type Description Res 7 6 r for future use Reset 0 User Manual 200 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description XTALHPMS 5 w XTAL High Precision Mode in Sleep Mode Og Disabled 1g Enabled Reset 0 CLKOUTEN 4 Ww CLK_OUT Enable Og Disabled 1p Enable programmable clock output Reset 14 CLKOUT2 3 0 w Clock Out Divider CLKOUT 19 0 CLKOUT2 MSB amp CLKOUT1 amp CLKOUTO LSB Min 00002h Clock divided by 2 2 Max FFFFFh 7 Clock divided by 2 20 1 2 Reg value 00000h Clock divided by 2 20 2 Reset 0 Antenna Switch Configuration Register ANTSW Antenna Switch Configuration Register Offset 0AA 4 3 2 1 Reset Value 1D 0 Res TX EXSW 1 TX INP TX INN TX EXSW 2 Field Bits Type Description TX INP 3 w LNA INP switch configuration in TX mode Og Internal LNA switch open 1g Internal LNA switch closed Reset 1 TX_INN 2 w LNA INN switch configuration in TX mode Og Internal LNA switch open 1g Internal LNA switch closed Reset 14 TX_EXSW1 1 w Exte
28. Digital Receiver Configuration Register A_DIGRXC Offset Reset Value Digital Receiver Configuration Register 03A 40 7 6 5 4 3 2 1 0 INITDRX INITFRC CODE CHIPDIN DINVEXT AAFBYP AAFFCSE ES S V L w w w w w w w Field Bits Type Description INITDRXES 7 W Init the Digital Receiver at EOM or Loss of Symbol Sync e g for initialization of the Peak Memory Filter Og Disabled 1g Enabled Reset 0 INITFRCS 6 w Init the Framer at Cycle Start in RMSP If disabled the WUP Data can be used as part of TSI as well in case the modulation type is the same for SPM and RMSP Og Disabled 1g Enabled Reset 14 CODE 5 4 Ww Encoding Mode Selection 00 Manchester Code 01 Differential Manchester Code 10 Biphase Space 11 Biphase Mark Reset Op CHIPDINV 3 w Baseband Chip Data Inversion for CH_DATA and Decoder Framer input Therefore Inverted Manchester and Inverted Differential Manchester can be decoded internally Og Not inverted 1g Inverted Reset 04 DINVEXT 2 W Data Inversion of signal DATA and DATA_MATCHFIL for External Processing Og Not inverted 1g Inverted Reset 0 AAFBYP 1 Ww Anti Alliasing Filter Bypass Og Not bypassed 1g Bypassed Reset 04 User Manual 151 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description AAFFCSEL 0 Ww Anti Alliasing Filter Corner Frequency Select On 40kHz 1g 8
29. IS2 Interrupt Status Register 2 0D3 FF User Manual 121 Revision 1 0 17 02 2012 TDA5340 SmartLEWIS TRX Infineon Generated Registers Overview Table 11 Registers Reset Values cont d Register Short Name Register Long Name Offset Address Reset Value IS0 Interrupt Status Register 0 0D4 FF IS1 Interrupt Status Register 1 0D5 FF RFPLLACC RF PLL Actual Channel and Configuration 0D6 00 Register RSSIPWU Wakeup Peak Detector Readout Register OD7 00 RSSIPRX RSSI Peak Detector Readout Register 0D8 00 RSSIPPL RSSI Payload Peak Detector Readout Register OD9 00 PLDLEN Payload Data Length Register ODA 00 ADCRESH ADC Result High Byte Register ODB 00 ADCRESL ADC Result Low Byte Register oDC 00 AFCOFFSET AFC Offset Read Register ODD 00 AGCADRR AGC and ADR Readout Register ODE 00 SPIAT SPI Address Tracer Register ODF 00 SPIDT SPI Data Tracer Register OE0 00 SPICHKSUM SPI Checksum Register OE1 00 SNO Serial Number Register 0 OE2 00 SN1 Serial Number Register 1 0E3 00 SN2 Serial Number Register 2 OE4 00 SN3 Serial Number Register 3 OE5 00 CHIPID Chip ID Register OE6 00 RSSIRX RSSI Readout Register OE7 00 RSSIPMF RSSI Peak Memory Filter Readout Register OE8 00 SPWR Signal Power Readout Register OE9 00 NPWR Noise Power Readout Register OEA 00 User Manual 122 Revision 1 0 17 02 2
30. Please note that after a gap the internal TSI comparison register is cleared all chips set to 0 In this case a TSI B criteria of 0000 would always match at the beginning To avoid such an unwanted matching set the highest TSI B match chip to 1 Runin p TSIA 4 QTSIGAP 10 chips GapSyng i TSIB gt Incoming Pattern bits 0 JO TT TO TS 0 0 0 0 1 0 0 0 1 1 1 1 1 TSIBstart 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 Start Yrs Stop of TSIB comparison comparison Figure 74 TSIGap TSIB Timing The Timing Violation Window Register and TSIGAP dependency is shown in Figure 34 TWIN TWIN TWIN k K y Lol i 1 ot rt Ea yg l Vay GAP 1 1 TSIA Idelay I ot k RUNIN Fog i TSIGRSYN 1 l l I I l l l Fog l l l I I l TVWIN without GAP TVWIN with GAP Figure 75 TVWIN and TSIGAP dependency example Timing Violation Window Register calculation for pattern without Gap time TVWIN round 8 16 CV 8 1 25 Ga The entire Timing Violation Window Register time is made up of the CV number itself the half bit before CV and the half bit after the CV To reach all frequency and duty cycle errors 25 of the overall sum must be added Timing Violation Window Register calculation with Gap time TTVWIN round max 8 16 CV 8 1 25 8 16 TSIA 16
31. 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 2011 02 24 User Manual 3 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Table of Contents 1 1 1 2 1 3 1 4 1 5 2 1 2 2 3 1 3 2 3 3 3 3 1 3 3 2 3 3 3 3 3 3 1 3 3 3 2 3 3 3 3 3 3 3 4 4 4 1 4 2 4 3 4 3 1 4 3 2 4 3 3 4 3 4 4 4 4 5 4 6 4 7 4 8 4 8 1 4 9 5 5 1 5 2 6 6 1 6 2 6 3 6 3 1 Table of Contents List of Figures 0000 eeu ae List of Tables osse zin ed oe peed Introduction 0020020 ee aee Key Features 2 65 5c cee eee ns Target Applications 2 200055 Application Example 0 005 Pin Configuration s erasers saraa anaa eee Pin Definition llle Transceiver Architecture Functional Block Diagram 000 Block Overview 000 cee eee Operating Modes eee Power Saving Modes llle Transmit Modes 2 2000000 eee eaee Receive Modes 0 000 eee eee Run Mode Slave Receive RM
32. environment Pattern Detected Selection Block Description The blocking window can be disabled by setting RSSI Wake Up Blocking Level Low Channel 1 Register to the minimum value and RSSI Wake Up Blocking Level High Channel 1 Register to the maximum value User Manual 91 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description e x WURSSIBHy RSSI magnitude e x WURSSIBLy e x WURSSITHy Figure 65 RSSI Blocking Thresholds The necessary ON time for Wake Up on RSSI can be calculated as follows lon leystarup yuroT 21 The Wake Up level observation time ty 94 can be set in the Wake up on Level Observation Time Register register and represents a division factor of the system time base Tsys The WULOT time for Wake Up on RSSI is mainly influenced by the coefficient of the peak memory filter Peak Memory Filter Up Down Factor Register Slower up coefficient means also longer settling time of the RSSIPMF signal 6 13 14 2 Threshold evaluation procedure A statistical noise floor evaluation using read register RSSI Peak Memory Filter Readout Register RMS operation leads to the threshold RSSI Wake Up Threshold for Channel 1 Register The interferer thresholds RSSI Wake Up Blocking Level Low Channel 1 Register and RSSI Wake Up Blocking Level High Channel 1 Register are disabled when they are set to their default values For evaluation of the interferer thresholds ei
33. for Configuration B Og Interrupt enabled 1g Interrupt disabled Reset 0 IMFSYNCB 5 Ww Mask Interrupt on Frame Sync for Configuration B Og Interrupt enabled 1g Interrupt disabled Reset 0 User Manual 207 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description IMWUB 4 Mask Interrupt on Wake up for Configuration B Og Interrupt enabled 1g Interrupt disabled Reset 0 IMEOMA 3 Mask Interrupt on End of Message for Configuration A Og Interrupt enabled 1g Interrupt disabled Reset Op IMMIDFA 2 Mask Interrupt on Message ID Found for Configuration A Og Interrupt enabled 1g Interrupt disabled Reset 0 IMFSYNCA 1 Mask Interrupt on Frame Sync for Configuration A Og Interrupt enabled 1g Interrupt disabled Reset 0 IMWUA 0 Mask Interrupt on Wake up for Configuration A Og Interrupt enabled 1g Interrupt disabled Reset 0 Interrupt Mask Register 1 IM1 Interrupt Mask Register 1 7 6 5 Offset 0B8 3 2 1 Reset Value 00 IMEOMD IMMIDFD IMFSYNC D IMWUD IMEOMC IMMIDFC IMFSYNC C IMWUC WwW Ww Ww Ww Ww Field Bits Type Description IMEOMD Mask Interrupt on End of Message for Configuration D Og Interrupt enabled 1g Interrupt disabled Reset 0 IMMIDFD Mask Inte
34. um TDA5340 In fi neon SmartLEWIS TRX System Interface Table 3 Instruction Set Instruction Description Instruction Format WRB Write to chip in Burst mode 0x01 WR Write to chip 0x02 RD Read from chip 0x03 RDF Read FIFO from chip 0x04 RDB Read from chip in Burst mode 0x05 WRF Write FIFO 0x06 WRTO Write transparent transmit data 0x08 with starting low data WRT1 Write transparent transmit data 0x07 with starting high data Write Command To write to the device the SPI master has to select the SPI slave unit first Therefore the master must set the NCS line to low After this the instruction byte and the address byte are shifted in on SDI and stored in the internal instruction and address register The following data byte is then stored at this address After completing the writing operation either the master sets the NCS line to high or continues with another SPI command Additionally the received address byte is stored into the SPI Address Tracer Register and the received data byte is stored into the SPI Data Tracer Register These two trace registers are readable Therefore an external controller is able to check the correct address and data transmission by reading out these two registers after each write instruction The trace registers are updated at every write instruction so only the last transmission can be checked by a read out of these two registers
35. 0 Res DRLIMEN TOLBITH TOLBITL r WwW Ww WwW Field Bits Type Description Res 7 r for future use Reset 0 User Manual 164 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description DRLIMEN 6 Ww Enable data rate error acceptance limitation The limits are defined in CDRDRTHRP and CDRDRTHRN registers Og Disabled 1g Enabled Reset 0 TOLBITH 5 3 Ww Duty Cycle Tolerance for Bit Border High Level Represents the number of 1 16 bit sample deviation from the ideal bit border where an edge can occur in direction to the following bit border Reset 34 TOLBITL 2 0 Ww Duty Cycle Tolerance for Bit Border Low Level Represents the number of 1 16 bit sample deviation from the ideal bit border where an edge can occur in direction to the previous bit border Reset 6 Timing Violation Window Register A_TVWIN Offset Reset Value Timing Violation Window Register 0514 28 7 0 TVWIN w Field Bits Type Description TVWIN 7 0 w Timing Violation Window Length Defines the maximal number of 1 16 data samples without detected edge which will be tolerated by CDR with no Loss of Symbol Synchronization 28h 40 16 bit 8 16 CV 8 1 25 FFh 255 16 bit Note in TSIGAP mode the value must be higher Reset 284 Slicer Configuration Register A_SLCCFG Offset Reset Value Slicer Configuration Register 0524 90
36. 01 Direct ON 10 Start on RSSI event 11 Start on Signal Recognition event Reset 0 ADR Timeout Configuration Register 0 A ADRTCFGO Offset Reset Value ADR Timeout Configuration Register 0 080 40 7 0 ADRTSEARCH li l ll w Field Bits Type Description ADRTSEARC 7 0 W ADR search timeout division factor bits 7 0 H Resolution Fsys 40 4 Reset 404 ADR Timeout Configuration Register 1 A_ADRTCFG1 Offset Reset Value ADR Timeout Configuration Register 1 0814 40 7 0 ADRTSWITCH li I I w User Manual 190 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description ADRTSWITCH 7 0 w ADR switch timeout division factor bits 7 0 Resolution Fsys 40 4 Reset 404 ADR Timeout Configuration Register 2 A_ADRTCFG2 Offset Reset Value ADR Timeout Configuration Register 2 082 00 7 4 3 0 T T T T ADRTSWITCH ADRTSEARCH w w Field Bits Type Description ADRTSWITCH 7 4 Ww ADR switch timeout division factor bits 11 8 Resolution Fsys 40 4 Reset 0 ADRTSEARC 3 0 W ADR search timeout division factor bits 11 8 H Resolution Fsys 40 4 Reset 0 ADR Threshold Register 0 A_ADRTHRO Offset Reset Value ADR Threshold Register 0 083 05 7 4 3 2 1 0 Res ADRHYS ADRTHOFFS r w w Field Bits Type Description Res 7 4 f for future use Res
37. 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description and the duration for the comparison of the Signal Recognition criterion The number of consecutive valid Signal Recognition samples levels is compared vs a threshold defined in Signal Recognition Threshold Register This threshold has an influence on the false alarm rate So Signal Recognition Threshold Register defines the minimum needed consecutive T 16 samples of the Signal Recognition output to be at high level for a positive Wake Up event generation 6 13 14 4 Wake Up on Data Criterion All SFRs configuring the Wake up Generation Unit support the Multi Configuration capability The search for a wake up data criterion is started if symbol synchronization is given within a certain duration see Clock and Data Recovery CDR on Page 88 otherwise the wake up search is aborted During the observation period the wake up data search is aborted immediately if symbol synchronization is lost If this is not the case the wake up search will last for the number of chips bits defined in the register Wake Up Bit or Chip Count Register The Wake up Window WUW Chip Bit Counter counts the number of received chips bits and compares this number vs the number of chips bits defined in the register Wake Up Bit or Chip Count Register The Code Violation Detector checks the incoming chip data stream for being Bi Phase coded A Code Violation is given if four consecutive chips ar
38. 11 not used Reset 14 TXPLLTST 5 3 PLL Startup Time for TX Mode Tst TXPLLTST 8 11 64 Fsys Reset 34 RXPLLTST 2 0 PLL Startup Time for RX Mode Tst RXPLLTST 8 11 64 Fsys Reset 3 Antenna Switch Configuration Register A_ANTSW Offset Reset Value Antenna Switch Configuration Register 07E 224 7 6 5 4 3 2 1 0 RXON2 I RXON2 RXON2_E RXON2_E RXOM I RXON1_I RXON1 E RXON1 E NP NN XSW1 XSW2 NP NN XSW1 XSW2 w w w w w w w w Field Bits Type Description RXON2 INP 7 Ww LNA INP switch configuration in RX mode if antenna 2 selected 0g Internal LNA switch open 1g Internal LNA switch closed Reset 0 RXON2 INN 6 Ww LNA INN switch configuration in RX mode if antenna 2 selected Og Internal LNA switch open 1g Internal LNA switch closed Reset 0 RXON2 EXS 5 W External antenna switch 1 configuration in RX mode if antenna 2 W1 selected Og Level Low on PPx pin 1g Level High on PPx pin Reset 14 User Manual 188 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description RXON2_EXS W2 External antenna switch 2 configuration in RX mode if antenna 2 selected Og Level Low on PPx pin 1g Level High on PPx pin Reset 0 RXON1 INP LNA INP switch configuration in RX mode if antenna 1 selected Op Internal LNA switch open 1g
39. 2 4 9 Chip Serial Number Every device contains a unique pre programmed 32 bit wide serial number This number can be read out from Serial Number Register 0 Serial Number Register 1 Serial Number Register 2 and Serial Number Register 3 registers via the SPI interface The TDA5340 always has SNO 6 set to 1 and SNO 5 set to 1 Figure 37 Chip Serial Number User Manual 52 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Digital Control SFR Registers 5 Digital Control SFR Registers 5 1 SFR Address Paging An SPI instruction allows a maximum address space of 8 bit The address space for supporting more than one configuration set is exceeding this 8 bit address room Therefore a page switch is introduced which can be applied via the Special Function Register Page Register see Figure 90 logical address space physical address space 0x000 Configuration A Page 0 Configuration A Page 0 Ox0A0 OxOFF 0x100 Ox1A0 Ox1FF 0x200 Configuration C Page 2 Ox2A0 Ox2FF 0x300 Configuration D Page 3 Ox3A0 Ox3FF 1 Configuration dependent register block 4 protocol specific sets page switch via SFRPAGE register 2 2 Reserved Forbidden area 3 Configuration independent registers common for all configurations map mirror to the same physical address space Figure 38 SFR Address Paging 5 2 SFR Register List and Detailed SFR Description The register
40. 52 Functional Block Diagram ASK FSK Demodulator 6 13 1 ASK Demodulator The RSSI generator delivers a DC signal proportional to the applied input power at a logarithmic scale dBm and is also used as an ASK demodulator Via a programmable anti aliasing filter AAFFCSEL bit in Digital Receiver Configuration Register register this signal is converted to the digital domain by means of a 10 bit ADC For the AM demodulation a signal proportional to the linear power is required Therefore a conversion from logarithmic scale to linear scale is necessary This is done in the digital domain by a nonlinear filter together with an exponential function The analog RSSI signal after the anti aliasing filter is available at the RSSI pin via a buffer User Manual 69 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description amplifier To enable this buffer the SFR control bit RSSIMONEN in register RSSI Configuration Register must be set The anti aliasing filter can be by passed for visualization on the RSSI pin see AAFBYP control bit 6 13 2 Delog Block amp Peak Memory Filter The Received Signal Strength Indicator s RSSI output provides a signal in the logarithmic domain which is converted by the 10 Bit ADC into the digital domain The Subsequent signal processing is in the linear domain Therefore it is necessary to delogarithmize the signal which is accomplished in the DELOG block Delogarithmization is a highly no
41. 6d Runin Incoming Pattern opojo oj o tT o 1 O 1 O O 1 O Manchester Coded momomo olor TolorMoloMos mo oTr xTePB TSI Pattern B Match OTHO FSYNC 71110 1 0 0 1 0 Data into FIFO 0 5 0 SQA ttt Matching Information inserted Figure 70 8 Bit Extended TSI Mode 8 Bit Gap Mode As two sequentially working correlators of up to 16 chips length each This mode is only used in combination with the TSI Gap Mode shown below This mode is used to define a gap between the two patterns which is preset in the TSI Gap Length Register To identify exactly the beginning of the gap it would be helpful on occasion to place the first CV of the gap into the TSI Pattern A In this case the gap length needed for the TSI Gap Length Register must be shortened and the Timing Violation Window Register length must be extended X TSILENA 8d x TSILENB 12d TSIGRSYN 1 Incoming Pattern Manchester Coded TSI Pattern Match FSYNC IE Data into FIFO I a Figure 71 8 Bit Gap TSI Mode User Manual 97 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description Selection of a TSI Pattern
42. A was found After the lock period two different resynchronization modes are available TSI Gap ReSYNchronization TSIGRSYN Frequency readjustment PLL starts from the beginning TSI Detection Mode Register TSIGRSYN 1 In this mode the T 2 gap resolution can be set in the 5 MSB x TSIGAP register bits The value in GAPVAL 3 LSB in TSI Gap Length Register is not used This is the preferred mode in TSI Gap Mode User Manual 98 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description Clock recovery reset start point l valid data l all space or all mark l valid data RUNIN TSIA 3 TSI GAP GAPSync TSIB lt bit PLL sync T lt bit I I internal PLE Sync Figure 72 Clock Recovery Gap Resynchronization Mode TSIGRSYN 1 e Phase readjustment only TSI Gap Length Register TSIGRSYN 0 In this mode the value in GAPVAL is used to correct the phase after the gap phase Overall gap time can be defined in T 16 steps The 5 MSB bits TSI Gap Length Register TSIGAP define the real gap time and the 3 LSB bits TSI Gap Length Register GAPVAL the DCO digital controlled oscillator phase correction value clock recovery phase readjustment start point valid data l all space or all mark l valid data l x RUNIN GAPSync TSIB It lt 1bit PLL sync Figure 73 Clock Recovery Gap Resynchronization Mode TSIGRSYN 0 TSIA TSI GAP
43. Field Bits Type Description Res 7 r for future use Reset 0 User Manual 134 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description WUBCNT 6 0 Ww Wake Up Bit Chip Count Register unit is bits only exception is WU Pattern Chip Mode where unit is chips see A WUC WUPMSEL Counter Register to define the maximum counts of bits chips for Wake Up detection Min 00h 0 Bits Chips to count In amp oeRandom Bitsa or oeEqual Bits Mode this will cause a Wake Up on Data Criterion immediately after Symbol Synchronization is found In oePattern Detectiona Mode this will cause no Wake Up on Data Criterion In this Mode there is needed minimum 11h 17 Bits Chips to shift one Pattern through the whole Pattern Detector Because comparision can only be started when at least the comparision register is completely filled Max 7Fh 127 Bits Chips to count after Symbol Sync found Reset 00 RSSI Wake Up Threshold for Channel 1 Register A WURSSITH1 Offset Reset Value RSSI Wake Up Threshold for Channel 1 01B 00 Register 7 0 WURSSITH1 w Field Bits Type Description WURSSITH1 7 0 w Wake Up on RSSI Threshold level for Channel 1 Wake Up Request generated when actual RSSI level is above this threshold Reset 004 RSSI Wake Up Blocking Level Low Channel 1 Register A_WURSSIBL1 Offset
44. Infineon A CDRP Clock and Data Recovery P Configuration Register TDA5340 SmartLEWIS TRX 5 RegistersGenerated Registers Overview Offset Reset Value 04D E6 4 3 2 1 0 PDSR PHDEN1 PHDENO Ww Ww Ww Ww Field Bits Type Description PDSR 7 6 Peak Detector slew rate The slew rate of the Peak Detector in the clock recovery path will be set with PDSR Actually Peak Detector part of Signal Detector Block 00 up down 1 64 01 up 1 64 down 1 128 10 up 1 32 down 1 128 11 up 1 32 down 1 256 Reset 34 PHDEN1 5 Phase detector error PDE outer tolerance range Og Disabled PDEout PDEin 1g Enabled If PDEin gt abs 7 16 bit then PDEout 0 else PDEout PDEin Reset 14 PHDENO 4 Phase detector error PDE inner tolerance range Og Disabled PDEout PDEin 1p Enabled If PDEin lt abs 1 16 bit then PDEout 0 else PDEout PDEin Reset 04 PVAL 3 2 P Value The PVAL is the P value of the Clock Recovery PI Loop Filter The Phase Detector output error will be multiplied with the set value 00 1 1 phase detector error 01 1 2 phase detector error 10 1 4 phase detector error 11 1 8 phase detector error Reset 14 PSAT 1 0 P Value Saturation The saturation of the P Loop Filter path will be set according to the PSAT value Remark that the internal phase resolution of the phase detector is 1 16
45. Ka Se ep ee ee ee ag Me ea P Run ROS RR RE 77 Antenna Diversity based on RSSI ADR 0 000 ce eee eae 79 ADR activation eaa pe Gaara SUR Au Gals Sa Pee ae RU ne DRAN UR Rp Rn n 81 Digital Baseband DBB Receiver 00 en 82 Data Filter and Signal Detection 0 0 00 hh 82 Data SIICer uu iru bei Ee bee blest PR Oud Rubi ERE ERE 84 Raw Data Slicer DATA Output 0 000000 re 85 DC Offset Cancellation Settling time 2 0 eee 86 Median Fiter DPI 87 Matched Filter Output DATA Matched Filter 0 200000 00 eee eee 87 Clock and Data Recovery CDR 0 00 eee 88 Wake Up Generator 00 00 cette 90 Wake Up 0n RSSI oredr cae Ye ae cena eee ae a ee AG RR E ag Bel E T E 91 Threshold evaluation procedure 20 92 Wake Up on Signal Recognition 0 0 eee eae 92 Wake Up on Data Criterion 0 0000 ects 93 Frame Synchronization sesse siseses EE uae hh n rn 95 Message ID Scanning liiiseseleeee m rh 100 RUNIN Synchronization Search Time and Inter Frame Time 2 2200000 103 Decoding Encoding Modes 0 00 cee hr 105 DeninitiOnS 324 I erede nee Ea red n eed der ee Ak Ce m ee AG RA Deo CR 106 Definition of BERIE iu uscc kenis kahe earen E a EXGGIGQSRAR Gier ewe eed 106 Definition of Manchester Duty Cycle slsseeeseeeee e n 106 Definition of Power Level 2 siis lk eee RETE ERR E dre x d 109 Symbols of
46. RSSI Blocking Level LOW for Channel 2 Reset FF RSSI Wake Up Blocking Level High Channel 2 Register A_WURSSIBH2 Offset Reset Value RSSI Wake Up Blocking Level High Channel 020 00 2 Register 7 0 WURSSIBH2 l 1 1 l w Field Bits Type Description WURSSIBH2 7 0 Ww Wake Up on RSSI Blocking Level HIGH for Channel 2 when RSSI is selected as WU criterion or FFB criterion Reset 00 RSSI Wake Up Threshold for Channel 3 Register User Manual 137 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview A WURSSITH3 Offset Reset Value RSSI Wake Up Threshold for Channel 3 021 00 Register 7 0 WURSSITH3 li I I I w Field Bits Type Description WURSSITH3 7 0 w Wake Up on RSSI Threshold level for Channel 3 Wake Up Request generated when actual RSSI level is above this threshold Reset 00 RSSI Wake Up Blocking Level Low Channel 3 Register A_WURSSIBL3 Offset Reset Value RSSI Wake Up Blocking Level Low Channel 3 0224 FF Register 7 0 WURSSIBL3 w Field Bits Type Description WURSSIBL3 7 0 Ww Wake Up on RSSI Blocking Level LOW for Channel 3 Reset FF RSSI Wake Up Blocking Level High Channel 3 Register A_WURSSIBH3 Offset Reset Value RSSI Wake Up Blocking Level High Channel 023 00 3 Register 7 0 WURSSIBH3 w User Manual 138 Revision 1 0 17 02 2012 um TDA5340 In fi neo
47. RSSIMONEN 0 w Enable Buffer for RSSI pin Og Disabled 1g Enabled Reset 0 ADC Input Selection Register ADCINSEL Offset Reset Value ADC Input Selection Register 0B1 00 7 3 2 0 Res ADCINSEL r w Field Bits Type Description Res 7 3 r for future use Reset 00 User Manual 204 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description ADCINSEL 2 0 Ww ADC Input Selection 000 RSSI 001 Temperature 010 VDDD 2 011g n u 100g n u 101g n u 110g n u 111g n u Reset Op RSSI Offset Register RSSIOFFS Offset Reset Value RSSI Offset Register 0B2 80 7 0 RSSIOFFS i l l l w Field Bits Type Description RSSIOFFS 7 0 w RSSI Offset Compensation Value Min 00h 256 Max FFh 254 Reset 80 RSSI Slope Register RSSISLOPE Offset Reset Value RSSI Slope Register 0B3 80 7 0 RSSISLOPE w User Manual 205 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description RSSISLOPE 7 0 w RSSI Slope Compensation Value Multiplication Value Multiplication Factor RSSISLOPE 2 7 Min 00h 0 0 Max FFh 1 992 Reset 80 DELOG Shift Register DELOGSFT Offset Reset Value DELOG Shift Register 0B4 00 7 0 DELOGSFT w Field Bits Type Description DELOGSFT 7 0 Ww
48. RSSIPPL i i ADC Sampling Clock Generation gt Divide by 4 1 fave y i Integrate Dump A RSSI Slope gt RSSI i from D RSSI Offset 1 amp D Averaging Filter Compare T 1 RSSI Peak Generator t Peak Detector Value m y sssem I 1 i Peak I FSYNC Detector Track Control Bit position Load to ASK path RX_RUN from FSM from Read ACCESS SPI Controller Register RSSIPRX Figure 55 Peak Detector Unit Peak Detector Payload is used to measure the input signal power of a received and accepted data telegram It is read via RSSI Payload Peak Detector Readout Register Observation of the RSSI signal starts at the detection of a TSI FSYNC and ends with the detection of EOM The internal RSSIPPL value is cleared after FSYNC The evaluated RSSI peak level RSSIPPL is transferred to the RSSIPPL register at EOM Starting the observation of the RSSI level can be delayed by a selectable number of data bits and is controlled by the RSSI Peak Detector Bit Position Register A latency in the generation of FSYNC and EOM of approx 2 3 bits in relation to the contents of the Peak Detector must be considered Within the boundaries described the register RSSIPPL always contains the peak value of the last completely received data telegram The register RSSIPPL is reset to 0 at power up reset only Peak Detec
49. Reset 0 ADRSTAT 3 r ADR Status selected antenna Og X Antenna 1 selected 1g X Antenna 2 selected Reset 0 IF2GAIN 2 1 r AGC IF2 Gain Readout 00 OdB 01 15dB 10 30 dB 11g n u Reset 0 MIX2GAIN 0 r AGC MIX2 Gain Readout 0g 0 dB 1g 15 dB Reset 0 SPI Address Tracer Register SPIAT SPI Address Tracer Register User Manual Offset Reset Value 0DF 00 233 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview 7 0 SPIAT li 1 1 l p Field Bits Type Description SPIAT 7 0 r SPI Address Tracer Readout of the last address of a SFR Register written by SPI Reset 004 SPI Data Tracer Register SPIDT Offset Reset Value SPI Data Tracer Register 0E0 00 7 0 SPIDT i l 1 l f Field Bits Type Description SPIDT 7 0 r SPI Data Tracer Readout of the last written data to a SFR Register by SPI Reset 004 SPI Checksum Register SPICHKSUM Offset Reset Value SPI Checksum Register OE1 00 7 0 SPICHKSUM i l l ji re Field Bits Type Description SPICHKSUM 7 0 rc SPI Checksum Readout Reset 00 User Manual 234 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Serial Number Register 0 RegistersGenerated Registers Overview SNO Offset Reset Value Serial Number Register 0 0E2 00 7 0 S
50. Reset Value RSSI Wake Up Blocking Level Low Channel 1 01C FF Register User Manual 135 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview 7 0 WURSSIBL1 I ll ll ll w Field Bits Type Description WURSSIBL1 7 0 Ww Wake Up on RSSI Blocking Level LOW for Channel 1 Reset FF RSSI Wake Up Blocking Level High Channel 1 Register A_WURSSIBH1 Offset Reset Value RSSI Wake Up Blocking Level High Channel 01D 00 1 Register 7 0 WURSSIBH1 li l ll ll w Field Bits Type Description WURSSIBH1 7 0 Ww Wake Up on RSSI Blocking Level HIGH for Channel 1 when RSSI is selected as WU criterion or FFB criterion Reset 00 RSSI Wake Up Threshold for Channel 2 Register A_WURSSITH2 Offset Reset Value RSSI Wake Up Threshold for Channel 2 01E 00 Register 7 0 WURSSITH2 w User Manual 136 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description WURSSITH2 7 0 w Wake Up on RSSI Threshold level for Channel 2 Wake Up Request generated when actual RSSI level is above this threshold Reset 004 RSSI Wake Up Blocking Level Low Channel 2 Register A_WURSSIBL2 Offset Reset Value RSSI Wake Up Blocking Level Low Channel 2 01F FF Register 7 0 WURSSIBL2 w Field Bits Type Description WURSSIBL2 7 0 Ww Wake Up on
51. Run Mode Self Polling 3 3 1 Run Mode Slave Receive RMS In Run Mode Slave RMS the transceiver is able to continuously receive data which is consequently provided to the host controller Run Mode Slave is entered by setting the MSEL bit group in the Chip Mode Control Register Hold Mode Figure7 RX Main States The successful detection of a payload message ID and or a whole message End of message can be signaled to the host micro controller via interrupts For further details see Interrupt Generation Unit on Page 50 The configuration may be changed only in Sleep or in Hold Mode before returning to the previously selected operation mode This is necessary to restart the state machine with defined settings at a defined state Otherwise the state machine may show an undefined behaviour Reconfiguration in Hold Mode is faster because there is no Start Up sequence 3 3 2 Hold Mode The Hold Mode is used in RMS to reconfigure the SFR of the device without changing back to Sleep Mode to avoid the time consuming startup procedure To reconfigure the chip the SFR control bit HOLD in the RX Control Register must be set After reconfiguration in this state the SFR control bit HOLD must be cleared again After leaving the Hold Mode the INIT state is entered and the receiver can work with the new settings Be aware that the time between changing the configuration and re initialization of the chip has to be at least 40us User Manual 27 Revisio
52. SFR Registers and Control Bits llle ess 110 Generated Registers Overview lselleeee e 111 Registers cover kg Ru ERE RRUENRA REM AERA ERR wea ee BER Ea RES 123 Rege icem mu adie ae ae Hepa head Aye seta REG RUE UD E PRU RUE AER P RU det 123 User Manual 5 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX 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 Figure 26 Figure 27 Figure 28 Figure 29 Figure 30 Figure 31 Figure 32 Figure 33 Figure 34 Figure 35 Figure 36 Figure 37 Figure 38 Figure 39 Figure 40 Figure 41 Figure 42 Figure 43 Figure 44 Figure 45 Figure 46 Figure 47 Figure 48 Figure 49 Application Example optimized for System Costs 3V3 Supply Application Example optimized for RF performance 5V Supply PINOUT a aieeaa bg Saleen RY ean A a ack TDA5340 Block Diagram 045 Main State Diagram 0000 ee eee Transmit Modes 022200 eae RX Main States 200000 00 ee HOLD State Behavior INITPLLHOLD disabled HOLD State Behavior INITPLLHOLD enabled Constant On Off Time 2 Fast Fall Back to SLEEP Mixed Mode 2 20200 e eee eee P
53. TX Channel Offset Register 0 A TXCHOFFSO TX Channel Offset Register 0 Offset 061 Reset Value 00 TXCHOFFS Ww Field Bits Type Description TXCHOFFS 7 0 w Channel Offset Frequency Resolution 1 493 kHz Reset 004 User Manual 174 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX TX Channel Offset Register 1 RegistersGenerated Registers Overview A_TXCHOFFS1 Offset Reset Value TX Channel Offset Register 1 062 00 7 0 TXCHOFFS w Field Bits Type Description TXCHOFFS 7 0 W Channel Offset Frequency Resolution 1 493 kHz Reset 00 TX Baudrate Divider Register 0 A_TXBDRDIVO Offset Reset Value TX Baudrate Divider Register 0 0634 00 7 0 BDRDIV w Field Bits Type Description BDRDIV 7 0 Ww Baudrate division factor bits 7 0 Resolution Tsys Reset 004 TX Baudrate Divider Register 1 A_TXBDRDIV1 Offset Reset Value TX Baudrate Divider Register 1 0644 00 7 0 BDRDIV w User Manual 175 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description BDRDIV 7 0 WwW Baudrate division factor bits 15 8 Resolution Tsys Reset 00 TX Data Shaping Configuration Register 0 A TXDSHCFGO Offset Reset Value TX Data Shaping Configuration Register 0 0654 00
54. TX FIFO is done during the transmission in the TX FIFO Mode the FIFO empty interrupt will be generated and the TX FIFO empty state entered User Manual 48 Revision 1 0 17 02 2012 TDA5340 SmartLEWIS TRX Infineon System Interface 4 7 General Purpose Output Pins As long as the P ON pin is high all digital output pins operate as described If the P ON pin is low all digital output pins are switched to high impedance mode The digital outputs PPO PP1 are PP2 are fully configurable within the PPO and PP1 Configuration Register PP2 and PPRF Configuration Register and PPRF RSSI Configuration Register where each of the signals listed below can be routed to any of the three output pins The default configuration for these three output pins can be seen in Table 1 Pin Definition and Function on Page 15 The PPRF Pin has mainly the same function as described in the table below but the logic level will be independent of the supply voltage domain always follow the VDDRF voltage It is also not possible to select the Clock Out Signal for this Pin In Sleep Mode where all analog supplies are turned off including the VDDRF this Pin will be set to high Z The TDA5340 has also the ability to use the PPRF RSSI as general purpose output pin same functionality like PPRF Pin The general purpose functionality can be enabled by disabling the RSSI buffer in the RSSI Configuration Register The output current driving capability of this pin as g
55. TXSTART Init TX FIFO FIFO almost full Almost empty level FIFO almost em TXEIEGAEL pty pty Interrupt Controller Almost full level FIFO empty TXFIFOAFL Figure 36 TXFIFO Fill Level Signalization There are three types of interrupts which can be enabled and triggered by the TX FIFO FIFO empty IS2 TXEMPTY FIFO almost empty IS2 TXAE FIFO almost full IS2 TXAF With the FIFO empty interrupt the host controller can be informed that the transmission has finished and the TDA5340 is now ready to start a new transmission or go to another main state For continuous data transmission where the payload data length exceeds the FIFO size the FIFO almost empty interrupt can be used to trigger a refill of the FIFO to keep the transmission ongoing The trigger level can be programmed with the FIFO almost empty level TX FIFO Almost Empty Level Register to give flexibility in reaction time to the host controller The FIFO almost full interrupt can be utilized to avoid a congestion of the TX FIFO by the host controller The almost full level can be programmed in a SFR TX FIFO Almost Full Level Register and represents the distance in bits to the maximum of the FIFO FIFO Initialization The TX FIFO can be initialized by two ways Power Down Mode RESET Programming of SFR register bit TXC INITTXFIFO If the TX FIFO is initialized the read and write pointers are set to 0 position of the FIFO If the initialization of the
56. Value Self Polling Mode On Time SPMONTD 13 0 SPMONTD1 MSB amp SPMONTDO LSB On Time TRT SPMONTD Min 0001h 1 TRT Reg Value 3FFFh 16383 TRT Max 0000h 16384 TRT Reset 01 Self Polling Mode On Time Config D Register 1 SPMONTD1 Offset Reset Value Self Polling Mode On Time Config D Register 0C6 00 1 7 6 5 0 Res SPMONTD1 r w User Manual 216 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description Res 7 6 r for future use Reset 0 SPMONTD1 5 0 w Set Value Self Polling Mode On Time SPMONTD 13 0 SPMONTD1 MSB amp SPMONTDO LSB On Time TRT SPMONTD Min 0001h 1 TRT Reg Value 3FFFh 16383 TRT Max 0000h 16384 TRT Reset 00 External Processing Command Register EXTPCMD External Processing Command Register 7 6 5 Offset 0C7 4 3 2 1 Reset Value 00 0 ADRMANU F AGCMANU F AFCMANU F ADRMANF AGCMANF AFCMANF EXTTOTI M EXTWUEO M wc wc wc WC WC WC WC WC Field Bits Type Description ADRMANUF ADR Manual Unfreeze Og Inactive 1g Active Reset 0 wc AGCMANUF AGC Manual Unfreeze Og Inactive 1g X Active Reset 0 wc AFCMANUF AFC Manual Unfreeze Og Inactive 1g Active Reset 0 wc ADRMANF ADR Manual Freeze
57. be the ratio of the high pulse width and the ideal symbol period The DC content is constant and directly proportional to the specified duty cycle For DT gt 0 the high period is longer than the chip period and for DT 0 the high period is shorter than the chip period Depending on the bit content the same type of edge e g rising edge is sometimes shifted and sometimes not With this definition the Manchester duty cycle is calculated to T Tat T MDC SS Pee bit Tpit 30 User Manual 107 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description Chip based Definition MDC Duration of the first chip Symbol period MDC 50 1 1 i 0 0 1 p chip bit bit MDC gt 50 feat Dd p T p chip bit Figure 83 Definition B Chip based definition This definition determinates the duty cycle to be the ratio of the first symbol chip and the ideal symbol period independently of the information bit content The DC content depends on the information bit and it is balanced only if the message itself is balanced For DT gt 0 the first chip period is longer than the ideal chip period and for DT lt 0 the first chip period is shorter than the ideal chip period Depending on the bit content the same type of edge e g rising edge is sometimes shifted and sometimes not With this definition the Manchester duty cycle is calculated to MDC LLchip Temip T
58. before but with Fast Fall Back to SLEEP User Manual 30 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Operating Modes Single Channel Single Config run mode RX poling sleep mode Channels 1 E EDS e TEF y T MasterPeriod T Tron TmasterPeriod re Tore Multi Channel Single Config run mode Channels m RX poling 25 T T T sleep mode MasterPeriod AON OFF Taon Torr TmasterPeriod a al Multi Channel Multi Config Channels Config A m Channels Config B n T zb uat T MasterPeriod OFF Taon Torr gt lt TmasterPeriod Figure 11 Fast Fall Back to SLEEP Only the following receive modes see Data Interface on Page 35 can be used e Packet Oriented FIFO Mode POF e Packet Oriented Transparent Payload Mode POTP Transparent Mode Chip Data and Strobe TMCDS Ultra Fast Fall Back to Sleep UFFB The needed time for detecting that no relevant transmission took place can be further reduced by using Ultrafast Fall Back to SLEEP UFFB When there was no Wake up on Level criterion fulfilled in UFFB Mode during the Observation Time TWULOT see Wake Up Generator on Page 90 then the system goes back to SLEEP or to next config channel This can further reduce the receiver active time when no data is available When Wake up on Level criterion was fulfilled then the system proceeds with normal FFB functionality SYSRCTO optiona
59. bit O0g saturation to 1 16 bit 01 saturation to 2 16 bit 10 saturation to 4 16 bit 11 saturation to 8 16 bit Reset 2 User Manual 162 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Clock and Data Recovery Configuration Register A_CDRI Offset Reset Value Clock and Data Recovery Configuration 04E 45 Register CORSAT Res IVAL ISAT Ww Field Bits Type Description CORSAT 7 6 Ww Correlator output value Timing extrapolation unit The timing extrapolation unit output value will be multiplied with the LFSAT value The timing extrapolation unit measures the data rate error during the RUNIN sequence and sets the I Loop Filter path when the RUNIN length is reached 00 1 4 calculated value 01 1 8 calculated value 10 1 16 calculated value 11 1 32 calculated value Reset 14 Res 5 4 for future use Reset 0 IVAL 3 2 I Value The IVAL is the I value of the Clock Recovery PI Loop Filter The Phase Detector output error will be multiplied with this set value 00 1 32 phase detector error 01 1 64 phase detector error 10 1 128 phase detector error 11 1 256 phase detector error Reset 14 ISAT 1 0 Value Saturation The saturation of the I Loop Filter accumulator will be set according to the ISAT value Remark that the internal phase resolution of the phase detec
60. can be applied User Manual 74 Revision 1 0 17 02 2012 TDA5340 SmartLEWIS TRX Infineon Block Description Upon entering the AGC unit the digital RSSI signal is passed through a Peak Memory Filter PMF This filter has programmable up and down integration time constants PMFUP PMFDN in Peak Memory Filter Up Down Factor Register to set attack respectively decay time The integration time for decay time must be significantly longer than the attack time in order to avoid the AGC interfering with the ASK modulation The integrator is followed by two digital Schmitt triggers with programmable thresholds AGCTLO AGCTUP in AGC Threshold Register one Schmitt trigger for each of the two attack thresholds two digital AGC switching points The hysteresis of the Schmitt triggers is programmable AGCHYS in AGC Configuration Register 0 and sets the decay threshold The Schmitt triggers control both the analog gain as well as the corresponding programmable digital gain correction AGCDGC in register AGC Configuration Register 0 The difference error signal in the PMF is actually a normalized version of the modulation This signal is then used as input for the DELOG table The following condition of the thresholds needs to be fulfilled AGCOFFS 1 6 AGCTLO 102 4 AGCOFFS 25 6 1 6 AGCTUP 102 4 14 AGC threshold programming The SFR description for the AGC thresholds are in dBs The first value to set is the AGC t
61. data rate acceptance limitation block The same threshold can be used for FSK and ASK e If the thresholds are too small it may happen that also packets with a valid data rate are rejected 6 13 14 Wake Up Generator A wake up generation unit is used only in the Self Polling Mode for the detection of a predefined wake up criterion in the received pattern There are two groups of configurable wake up criteria e Wake up on Level criteria Wake up on Data criteria The search for the wake up data criterion is started if data chip synchronization has occurred within the predefined number of symbols otherwise the wake up search is aborted Several different wake up patterns like random bit equal bit bit pattern or bit synchronization are programmable Additional level criterion fulfilment for RSSI or Signal Recognition can lead to a fast wake up and to a change to Run Mode Self Polling Whenever one of these Wake up Level criteria is enabled and exceeds a programmable threshold a wake up has been detected The Wake up Level criterion can be used very effectively in combination with the Ultrafast Fall Back to SLEEP Mode see Ultra Fast Fall Back to Sleep UFFB on Page 31 for further decreasing the needed active time of the autonomous receive mode A configurable observation time for Wake up on Level can be set in the Wake up on Level Observation Time Register User Manual 90 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS
62. in this mode as well Og Disabled 1g Enabled Reset 0 User Manual 218 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description TXMODE Transmission start selection 0g Direct mode with TXFIFO TXFIFO not empty 1g X Start bit mode with TXFIFO TXSTART 1 Reset 0 TXTOIDLE Go to IDLE after TX In IDLE state PA and PLL are switched off Og Wait for new transmission 1g Goto IDLE after TX finished Reset Op TXENDFIFO Finish TX with FIFO empty Used to change power modulation data rate encoding Og TX continues after FIFO empty waiting for FIFO not empty or Start bit 1g TX finished with FIFO empty Reset 0 TXFAILSAFE Enable Failsafe mechanism in TX mode Og Disabled 1g Enabled Reset 14 RX Control Register RXC RX Control Register 6 5 Offset 0C9 4 3 2 1 Reset Value 84 Res INITPLL HOLD EOM2NCF G TOTIM2N CH INITRXF IFO FSINITR XFIFO RXFIFOL K HOLD Ww Ww Ww Ww Field Bits Type Description INITPLLHOLD 6 Init PLL after coming from HOLD required at channel change This requires an additional Channel Hop Time before initialization of the Digital Receiver Og No init of PLL 1p Init of PLL Reset 04 EOM2NCFG 5 Continue with next Co
63. is already loaded the transmission start only after setting the TX start bit in the TX Control Register The SBF mode can be used to enable exact timings of the transmitter By reloading the TX FIFO the transmission will continue as long as the FIFO is not empty After sending the last Bit Chip out of the FIFO a interrupt can be generated to signal the host controller that the transmission of the FIFO content has finished The TDA5340 either waits for a refill of the TX FIFO in the TX FIFO Empty state and sends out the last Bit Chip of the FIFO content as long as the start bit is set again in the TX Control Register After the TX Empty interrupt the Transceiver will go immediately into the the TX Idle state if the TX idle transition is enabled and waits for a user interaction SPI access which can be TX PLL initialization or a change to another mode With the enabled finish transmission with FIFO Empty bit the transceiver will wait for restart of the transmission in the TX Ready state the FIFO Empty and TX Ready interrupt flags are set in the Interrupt Status Register 2 4 3 4 TX Transparent Mode The transparent mode can be also subdivided into a synchronous and asynchronous transparent mode In transparent mode the data transmission is started with the transparent TX SPI command see Figure 31 Transparent TX Command on Page 44 Synchronous Transparent Mode The synchronous transparent mode utilize a the on chip baud rate generation
64. is usually taken with 140 dBm and the ADRTLO ADRTHI and Offset can be selected via SFR registers The timers of the search and switch state are using a common time base which can be calculated as follows 320 320 ADR_ Base 7 s 14 579 us f 21948717 105 Hz m 17 The equation below defines the timer for the search state D ean ADR Base ADRTSEARCH 18 The timer of the switch state can be calculated using the equation below As a general rule of thumb the search time should be 2 times the used baseband data rate switch ADR Base ADRTSWITCH 19 The ADRTSWITCH and ADRTSEARCH parameters can be selected in the ADR Timeout Configuration Register 0 ADR Timeout Configuration Register 1 and ADR Timeout Configuration Register 2 User Manual 80 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description 6 13 7 1 ADR activation There are two options for the active time of the ADR state machine e 1 always on 2 active for a programmable time relative to a signal identification event several options can be programmed in SFR Start Conditions ADR START in ADR Start Freeze Configuration Register e OFF ADR Deactivated Direct ON ADR always on Start on RSSI event gt not recommended ADR will start if RSSI level is above threshold which can be selected in RSSI Wake Up Threshold for Channel 1 Register Start on Signal recognition event ADR will start if the
65. not used OxEh not used OxFh Tristate selected Pin will be Tristate User Manual 49 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX System Interface 4 8 Interrupt Generation Unit The Interrupt functionality of the TDA5340 is the most important unit to signal to the host controller that information is available to collect or some information needs to be provided by the host controller The Interrupt signal NINT is provided on one of the PPX port pins see Chapter 4 7 The Interrupt Generation Unit handles all interrupts generated by the internal building blocks and sets the NINT signal based on the configuration of the Interrupt Mask registers Interrupt Mask Register 0 Interrupt Mask Register 1 and Interrupt Mask Register 2 The Interrupt Status registers Interrupt Status Register 0 Interrupt Status Register 1 and Interrupt Status Register 2 are set from the Interrupt Generation Unit depending on which interrupt occurred independent of the Interrupt Mask registers The polarity of the interrupt line can be changed in the PPx Port Configuration Register register Please note that during power up and brownout reset the polarity of NINT signal is always as described in Chip Reset on Page 54 A Reset event has the highest priority It sets all bits in the Status registers to 1 and sets the interrupt signal to 0 The first interrupt after the Reset event will clear the Status registers and will se
66. only be used when modulation type is the same for SPM and RMSP So after a reception of the EOM from the current payload the parallel WU search can take place in this mode The WU search will be active after Symbol Sync has been detected Self Polling Modes Four polling modes are available to fit the polling behavior to the expected wake up patterns and to optimize power consumption in Self Polling Mode The following 4 Polling Modes are available and can be configured via 2 bits in the configuration Self Polling Mode Control Register Constant On Off COO Fast Fall Back to SLEEP FFB Ultra Fast Fall Back to SLEEP UFFB Mixed Mode MM Permanent Wake Up Search PWUS A detected wake up data sequence or an actual value for RSSI or Signal Recognition a combination of Signal Detector and Noise Detector see Data Filter and Signal Detection on Page 82 exceeding a certain adjustable threshold forces the TDA5340 into Run Mode Self Polling In all modes the timing resolution is defined by the Reference Timer which scales the incoming frequency fsys 64 corresponding to the value which is defined in the Self Polling Mode Reference Timer Register Changing values of SPMRT helps to fit the final On Off timing to the calculated ideal timing 3 3 3 4 Constant On Off Mode COO In this mode there is a constant On and a constant Off time Therefore also the resulting master period time is constant When Single Configuration is
67. selected then only Configuration A is used The number of RF channels is defined in the Channel Configuration Register Single Channel or Multi Channel Mode Multi Configuration Mode allows reception of up to 4 different transmit sources or up to 16 RF channels The corresponding RF channels can be defined in the Channel Configuration Register B CHCFG C CHCFG and D CHCFG registers In the case of Multi Channel or combination of Multi Channel and Multi Configuration Mode User Manual 29 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Operating Modes the configured On time is used for each RF channel in a configuration The diagram below shows possible scenarios Single Channel Single Config run mode RX poling sleep mode Channels 1 Taon Torr TMasterPeriod Taon Torr TmasterPeriod m e Multi Channel Single Config run mode sleep mode Channels m Taon Taon Taon Torr T MasterPerioa M Taon Torr TMasterPeriod i Multi Channel Multi Confi run mode RX pollin H p ig A an ai 2 3 mx T 2 eui d zm m TaoNTAoNTaoN Tson TaoN Torr Channels Config B n fone Ga is gi gt t TMasterPeriod M TAON n T Bont Torr TmasterPeriod i Figure 10 Constant On Off Time 3 3 3 2 Fast Fall Back to SLEEP FFB This mode is used to switch off the receiver if there is no RF signal as quickly as possible to reduce power consumption During the search for wake up data there is a ch
68. separate demodulators for ASK and FSK see modulation type MT bit in register Channel Configuration Register After combining FSK and ASK data path a sampling rate adaptation follows to meet an output oversampling between 8 and 16 samples per chip Finally an oversampling of 8 samples per chip can be achieved using a fractional sample rate converter SRC with linear interpolation AFC track freeze S v3 AFC RF PLL ctrl OS gt loop filter 5 mol B 50 300kHz image suppression FSK ASK Rate adapter i FM limiter SK band limitation noise B s F w Demodulated X lt gt J x Ev gt 09 gt ypass Data BP ug gt Rate doubler 33 46 65 93 132 Decimation 2nd RSSI 190 230 282 kHz 2 conversion 2sided PDF BW 8 16 samples chip Y data rate dependent 2o Temp VDDD 2 RSSI Slope Dig Gain Peak Memory delog Mux ADC F RSSI offset Control Filter ASK t buffer Div ty acc Analog Gain Control RSSI Peak f Sem Detector orate RSSI S register g register RSSIPWUI fer of config internal gt channel signal f WU event Begin of config TH BL BH channel x WULOT Figure
69. shown in Figure 61 the DATA Matched Filter output is a sign operation of the Matched Filter output this will lead to a systematic jitter which can be up to 50 of the chip duration User Manual 87 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description 6 13 13 Clock and Data Recovery CDR An all digital PLL ADPLL recovers the data clock from the incoming data stream The second main function is the generation of a signal indicating symbol synchronization Synchronization on the incoming data stream generally occurs within the first 4 bits of a telegram a m e 4 a iS x CDRDRTHRP CDRDRTHRN Tnom 1 6 from Clock Recovery Slicer uu Symbol Timing Extrapolation Sync found ad Oooo Digital Phase PI Re Controlled ecovered y Detector Loop Filter Oscillator Clock Thom 2 Tnem 2 d gt lt E x_TSIMODE a a lt o o c M U 77 D I x Figure 62 Clock Recovery ADPLL Clock Recovery is implemented as standard ADPLL PI regulator with Timing Extrapolation Unit for fast settling In the unlocked state the Timing Extrapolation Unit calculates the frequency offset for the incoming data stream If the defined number of Bi phase encoded bits are detected the RUNIN length RUNLEN can be set in the CDR Configuration Register 0 the I part and the PLL oscillator will be set and the PLL will be locked When RUNLEN i
70. to low In default mode the User Manual 36 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX System Interface Strobe signal is active high and has a delay of Tg 16 relative to the data bit and a duration of T 7 2 The polarity of the Strobe signal is programmable this can be done via PPx Port Configuration Register RXD RXSTR Figure 18 Timing of the Packet Oriented Transparent Payload Mode 4 3 2 Transparent Receive Modes The receiver s simple plain data interface in this Transparent Mode is shown in Figure 19 In this mode the demodulated data signal is made directly available on the data output pin of the data interface The demodulated received data of the TDA5340 can be provided without any additional information of the frame structure The Transparent Mode has two main subgroups which can be distinguished by the usage of the Clock Data Recovery CDR block By using the CDR the TDA5340 provides the baseband data with the recovered encoding data clock Transparent Mode Chip Data and Strobe TMCDS The chip data and chip clock represents the recovered baseband data and clock of the CDR Note that a sensible chip clock can only be generated if the selected line encoding exhibits a constant chip rate The chip clock generation can be significantly improved by using a run in signal of alternating one zero chips maximum number of transitions within a data stream data TDA5340 _
71. transmitter data rate tolerances Ton also must include the relevant start up times In case of the first channel after Torr this is the Receiver Start Up Time In case of following channels RF Receiver is already on there is only a change of the channel or the configuration e g if Configuration B is used this is the Channel Hop Latency Time In addition it has to be considered that some data bits are required for synchronization and internal latency see RUNIN Synchronization Search Time and Inter Frame Time on Page 103 Calculation of Off time The longer the Off time the lower the average power consumption in Self Polling Mode On the other hand the Off time has to be short enough that no transmitted wake up pattern is missed Therefore the Off time depends mainly on the duration of the expected wake up pattern Active Idle Period Selection This functionality is used to deactivate some polling periods Normally polling starts again after the Tyasterperiog With this Active Idle Period selection some of the polling periods can be deactivated independent from the Polling Mode The active and the idle sequence is set with the Self Polling Mode Control Register and the Self Polling Mode Idle Periods Register The values of these registers determine the factor M and N User Manual 61 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description run mode RX polling sleep mode T Mast
72. upper two bits of RF PLL Actual Channel and Configuration Register at TSI detection of the next message The upper two bits of RF PLL Actual Channel and Configuration Register hold the MSBs thus a message length of 256 up to 1023 payload bits can be represented A saturation of the message length at the maximum value of 1023 is realized Storage at TSI of the next message ensures that even wrong payload data e g if MID is not matching no EOM will be generated but payload is kept in FIFO Or EOM data length criterion is selected only and a sync loss prevents from generating an EOM event can be identified On initialization of the FIFO the Payload Data Length Register and the upper two bits of RF PLL Actual Channel and Configuration Register are cleared The corresponding internal counter is cleared with every TSI detection and initialization of the FIFO User Manual 47 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX System Interface 4 6 Transmit FIFO TX FIFO The Transmit FIFO acts as a data buffer between the baseband data and the host micro controller to reduce the real time requirements and active time of the host controller The transmit FIFO can only be used combined with the Baud rate generator which generates the output timing of the baseband data SCK Data in Data out Data Encoder Modulator Filter Baud Rate Generator 288 Bit FIFO FIFO Controller Start TX
73. value after averaging over 4 samples Reset 00 RSSI Peak Memory Filter Readout Register RSSIPMF Offset Reset Value RSSI Peak Memory Filter Readout Register OE8 00 7 0 RSSIPMF r Field Bits Type Description RSSIPMF 7 0 r RSSI Peak Memory Filter Level Reset 00 Signal Power Readout Register SPWR Offset Reset Value Signal Power Readout Register OE9 00 7 0 SPWR r Field Bits Type Description SPWR 7 0 r Signal Power The register contains the actual signal power which should be used to calculate the value of x_SIGDETO x_SIGDET1 and x_SIGDETLO registers Reset 00 User Manual 237 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Noise Power Readout Register RegistersGenerated Registers Overview NPWR Offset Reset Value Noise Power Readout Register OEA 00 7 0 NPWR r Field Bits Type Description NPWR 7 0 r FSK Noise Power The register contains the actual noise power which should be used to calculate the value for the x NDTHRES register Reset 00 User Manual 238 Revision 1 0 17 02 2012
74. 012 Infineon TDA5340 SmartLEWIS TRX 7 Registers 7 1 Registers Message ID Register 0 RegistersGenerated Registers Overview A_MIDO Offset Reset Value Message ID Register 0 000 00 7 0 T T T T MIDO w Field Bits Type Description MIDO 7 0 w Message ID Register 0 Reset 004 Message ID Register 1 A_MID1 Offset Reset Value Message ID Register 1 0014 00 7 0 T T T T MID1 w Field Bits Type Description MID1 7 0 w Message ID Register 1 Reset 00 Message ID Register 2 A MID2 Offset Reset Value Message ID Register 2 002 00 User Manual 123 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview 7 0 MID2 I l ll ll w Field Bits Type Description MID2 7 0 Ww Message ID Register 2 Reset 00 Message ID Register 3 A_MID3 Offset Reset Value Message ID Register 3 0034 00 7 0 MID3 w Field Bits Type Description MID3 7 0 w Message ID Register 3 Reset 004 Message ID Register 4 A_MID4 Offset Reset Value Message ID Register 4 004 00 7 0 MID4 w Field Bits Type Description MID4 7 0 w Message ID Register 4 Reset 004 Message ID Register 5 User Manual 124 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview A_MID5 Offset Reset Value Me
75. 06D 07 A PLLFRAC2C1 PLL Fractional Division Ratio Register 2 Channel 1 O6E 09 A PLLINTC2 PLL MMD Integer Value Register Channel 2 O6F 13 A PLLFRACOC2 PLL Fractional Division Ratio Register 0 Channel 2 070 F3 A PLLFRAC1C2 PLL Fractional Division Ratio Register 1 Channel 2 0714 07 A PLLFRAC2C2 PLL Fractional Division Ratio Register 2 Channel 2 0724 09 A PLLINTC3 PLL MMD Integer Value Register Channel 3 073 13 A PLLFRACOC3 PLL Fractional Division Ratio Register 0 Channel 3 0744 F3 A PLLFRAC1C3 PLL Fractional Division Ratio Register 1 Channel 3 0754 07 A PLLFRAC2C3 PLL Fractional Division Ratio Register 2 Channel 3 076 09 A_PLLINTC4 PLL MMD Integer Value Register Channel 4 077 13 A PLLFRACOCA PLL Fractional Division Ratio Register 0 Channel 4 078 F3 A_PLLFRAC1C4 PLL Fractional Division Ratio Register 1 Channel 4 0794 07 A PLLFRAC2CA PLL Fractional Division Ratio Register 2 Channel 4 07A 09 A RXPLLBW PLL Bandwidth Selection Register for RX Mode 07B 0C A TXPLLBW PLL Bandwidth Selection Register for TX Mode 07C 2T A PLLTST PLL Startup Time Register 07D 5B A ANTSW Antenna Switch Configuration Register O07E 224 A_ADRSFCFG ADR Start Freeze Configuration Register O7F 00 A_ADRTCFGO ADR Timeout Configuration Register 0 080 40 A ADRTCFG1 ADR Timeout Configuration Register 1 0814 40 A ADRTCFG2 ADR Timeout Configuration Register 2 082 00 A_ADRTHRO ADR Threshold Register 0 083 05 A ADRTHR1 AD
76. 0h 64 256 fsys Reset 014 Self Polling Mode Off Time Register 0 SPMOFFTO Offset Reset Value Self Polling Mode Off Time Register 0 OBD 01 7 0 SPMOFFTO w Field Bits Type Description SPMOFFTO 7 0 Ww Self Polling Mode Off Time value SPMOFFT 13 0 SPMOFFT1 MSB amp SPMOFFTO LSB Off Time TRT SPMOFFT Min 0001h 1 TRT Reg Value 3FFFh 16383 TRT Max 0000h 16384 TRT Reset 01 Self Polling Mode Off Time Register 1 SPMOFFT1 Offset Reset Value Self Polling Mode Off Time Register 1 OBE 00 7 6 5 0 Res SPMOFFT1 li I I r w Field Bits Type Description Res 7 6 r for future use Reset 0 User Manual 212 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description SPMOFFT 1 5 0 Ww Self Polling Mode Off Time value SPMOFFT 13 0 SPMOFFT1 MSB amp SPMOFFTO LSB Off Time TRT SPMOFFT Min 0001h 1 TRT Reg Value 3FFFh 16383 TRT Max 0000h 16384 TRT Reset 00 Self Polling Mode On Time Config A Register 0 SPMONTAO Offset Reset Value Self Polling Mode On Time Config A Register OBF 01 0 7 0 SPMONTAO w Field Bits Type Description SPMONTAO 7 0 Ww Set Value Self Polling Mode On Time SPMONTA 13 0 SPMONTA1 MSB amp SPMONTAO LSB On Time TRT SPMONTA Min 0001h 1 TRT Reg Value
77. 0kHz Reset 0 RSSI Peak Detector Bit Position Register A_PKBITPOS Offset Reset Value RSSI Peak Detector Bit Position Register 03B 00 7 0 RSSIDLY li ll I I w Field Bits Type Description RSSIDLY 7 0 W RSSI Detector Start up Delay Min OOh O bit delay Start with first bit after FSYNC Max FFh 255 bit delay Note Due to filtering and signal computation the latency T1 and T2 have to be added Reset 004 PD Filter and Matched Filter Configuration Register A PDFMFC Offset Reset Value PD Filter and Matched Filter Configuration 03C 774 Register 7 4 3 2 0 MFL Res FCSEL w w Field Bits Type Description MFL 7 4 Ww Matched Filter Length MF Length MFL 1 Reset 74 User Manual 152 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description FCSEL 2 0 Ww Pre demodulation Filter Corner Frequency Selection for FSK signal path 000 33 kHz 001 46 kHz 010 65 kHz 011 93 kHz 100 132 kHz 101 190 kHz 110 239 kHz 111 282 kHz Reset 74 Pre Decimation Factor Register A_PDECF Offset Reset Value Pre Decimation Factor Register 03D 00 7 6 0 Res PREDECF r w Field Bits Type Description Res 7 r for future use Reset 0 PREDECF 6 0 w Predecimation Filter Decimation Factor Predecimation Factor PREDECF 1 Rese
78. 10b j Byte0 Bytet a Byte2 i Byteo Byte Byte2 Byte3 Number To Scan 11b 4 4 P Start MID Scan Figure 78 MID Scanning The starting position in this case is Bit 17 Depending on the number to scan the corresponding number of bytes is compared with the stored MIDs 6 13 17 RUNIN Synchronization Search Time and Inter Frame Time The functionality of the Digital Baseband Receiver is divided into four consecutive data processing stages the data filter clock and data recovery data slicer and frame synchronization unit The architecture of the Digital Baseband Receiver is optimized for processing bi phase coded data streams The basic structure of a payload frame is shown in Figure 79 The protocol starts with a so called RUNIN The RUNIN with the minimum length of four bi phase coded symbols is used for internal filter settling and frequency adjustment The TSI Telegram Start Identifier which is used as framing word follows the RUNIN sequence The payload contains the effective data The length of the valid payload data is defined as the length itself or additional criteria e g loss of Sync Please note that almost all transmitted protocols send a wake up sequence before the payload frame This wake up sequence allows a very fast decision whether there is a suitable message available or not RUNIN TSI PAYLOAD Figure 79 Structure of Payload Frame Two important system parameters are described in thi
79. 110 User Manual 7 Revision 1 0 17 02 2012 et fi TDA5340 Infineon SmartLEWIS TRX List of Tables List of Tables Table 1 Pin Definition and Function ilsllssseellll rr 15 Table 2 Operating Modes 3 3 05 osse edm Ed eed uum Por er pn RE He A RE ede 24 Table 3 Instruction Ob MCI x m 42 Table 4 Port Pin Output Selection naaa aaa 49 Table 5 Analog system bandwidth llliiiillllsellllle 58 Table 6 AGC Setting 1 ipni isna axer eub RA RAS pee RAE ped uu a E eed 75 Table 7 ACOSTA 76 Table 8 Wake Up Criteria Baseband Mode 0 0 00 ccc eee ee eee eens 94 Table 9 Power L evelis 2 2ic4 a5 REX shai sey Roe eae eee e Re CHE MERE ee qd A oes 110 Table 10 Registers Overview naaasar cet eee eens 111 Table 11 Registers Reset Values ieres iaeiiai iia aa tenets 116 User Manual 8 Revision 1 0 17 02 2012 In fineon Saians LIRE List of Tables User Manual 9 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Introduction 1 Introduction The IC is a low power ASK FSK GFSK Transceiver for the frequency bands 300 320 415 495 863 960 MHz Bi phase modulation schemes like Manchester bi phase mark bi phase space and differential Manchester as well as NRZ are supported The chip offers a high level of integration and needs only a few external components like a crystal several blocking capacitors and the necessary matching elements For very cost se
80. 166 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description TSIDETMOD 1 0 w TSI Detection Mode 00 16 Bit TSI Mode TSI configuration B AND A valid sequentially B is valid if the A_TSILENB gt 0 01 8 Bit Parallel TSI Mode TSI configurations A OR B parallel 10 8 Bit TSI Gap Mode TSI configurations A AND B with Gap sequentially with Gap between TSIA amp TSIB 11 8 Bit Extended TSI Mode TSI configurations A OR B parallel with matching information dependent on found TSI A or B O resp 1 will be sent as 1st received bit Reset 0 TSI Length Register A A TSILENA Offset Reset Value TSI Length Register A 054 00 7 5 4 0 Res TSILENA ll ll r w Field Bits Type Description Res 7 5 r for future use Reset 0 TSILENA 4 0 W TSI A Length in chips 114 up to 1F not used Min 00h 0 Bit Does only work in 16 Bit Mode FSYNC will be generated after Symbol Synchronization In other Modes the smallest possible value to generate a FSYNC will be 01h Be aware that such small values makes it impossible to find the right phase of the pattern in the data stream and therefore wrong data and code violations can be generated Max 10h 16 Chips 8 Bit Reset 00 TSI Length Register B A_TSILENB TSI Length Register B User Manual Offset Reset Value 055 004 167 Revision 1 0 1
81. 24 6 101 24 7 110 24 8 111 24 9 Reset 2 AGC Start Freeze Configuration Register A_AGCSFCFG Offset Reset Value AGC Start Freeze Configuration Register 036 00 7 6 5 4 3 2 1 0 T T T Res n EE an AGCUNFREEZE AGCFREEZE AGCSTART r w w w w Field Bits Type Description Res 7 r for future use Reset 0 AGCRESATC 6 Ww Enable AGC Restart at Channel Change and at the beginning of the C current configuration in Self Polling Mode Run Mode Slave Og Disabled 1g Enabled Reset 0 and at leaving the HOLD state when bit CMCO INITPLLHOLD is set in User Manual 148 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description AGCUNFREE 5 4 w ZE AGC Unfreeze Configuration 00 No Unfreeze 01 Unfreeze on NOT RSSI Event 10 Unfreeze on NOT Signal Recognition Event 11 Unfreeze on NOT Symbol Synchronization Reset 0 AGCFREEZE 3 2 w AGC Freeze Configuration 00 Stay ON 01 Freeze on RSSI Event Delay AFCAGCDEL 10 Freeze on Signal Recognition Event Delay AFCAGCDEL 11 Freeze on Symbol Synchronization Delay AFCAGCDEL Reset 0 AGCSTART 1 0 w AGC Start Configuration 00 OFF 01 Direct ON 10 Start on RSSI event 11 Start on Signal Recognition event Reset 0 AGC Configuration Register 0 A AGCCFGO AGC Configuration Register 0
82. 31 Transparent TX Command SPI Check Sum The SPI also includes a safety feature to verify the SPI communication by which the checksum is calculated with an XOR operation from the address and the data when writing SFR registers content The checksum is in fact an User Manual 44 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX System Interface XOR of the data 8 bitwise after every 8 bits of the SPI write command The calculated checksum value is automatically written in the SPI Checksum Register and can be compared with the expected value After the SPI Checksum Register is read its value is cleared In case of an SPI Burst Write and Write FIFO frame a checksum is calculated from the SPI start address and consecutive data fields enable every 8 bit read clear Checksum SFR SPI shift register Figure 32 SPI Checksum Generation 4 5 Receive FIFO RX FIFO The Receive FIFO is the storage of the received data frames and is only used in the POF Mode It is written during data reception The host micro controller is able to start reading via SPI right after frame sync interrupt or in the most common case right after detection of EOM interrupt The FIFO can store up to 288 received data bits If the expected data transmission contains more bits note that in TSI 8 bit Extended Mode one bit is added in front of the real payload to indicate which of the two TSI pattern has matched the reading from FIFO c
83. 4 0 XTAL High Precision Mode Capacitor Value Min 00h OpF Value 01h 1pF Max 18h 24pF higher values than 18h are automatically mapped to 24pF Reset 104 XTAL Fine Calibration Register XTALCAL1 XTAL Fine Calibration Register Offset Reset Value OAF 00 3 2 1 0 Res XTALSWF 3 XTALSWF 2 XTALSWF 1 XTALSWF 0 Ww Ww Field Bits Type Description Res 7 4 for future use Reset 0 XTALSWF3 Connect 500 fF XTAL Trim capacitor Og not connected 1g connected Reset Op XTALSWF2 Connect 250 fF XTAL Trim capacitor Og not connected 1g connected Reset 0 XTALSWF 1 Connect 125 fF XTAL Trim capacitor Og not connected 1g connected Reset 0 XTALSWFO Connect 62 5 fF XTAL Trim capacitor Og not connected 1g connected Reset Op RSSI Configuration Register User Manual 203 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview RSSICFG Offset Reset Value RSSI Configuration Register OBO 10 7 6 5 3 2 1 0 Res Res AGCDGC Res eae r w w Field Bits Type Description Res 6 r for future use Reset 0 AGCDGC 5 3 w AGC Digital RSSI Gain Correction Tuning 000 14 5 dB 001 15 0 dB 010 15 5 dB 011 16 0 dB 100 16 5 dB 101 17 0 dB 110 17 5 dB 111 18 0 dB Reset 2
84. 7 0 T T ASLDIV w Field Bits Type Description ASLDIV 7 0 Ww ASK sloping division factor bits 7 0 Resolution Tsys Reset 004 TX Data Shaping Configuration Register 1 A_TXDSHCFG1 Offset Reset Value TX Data Shaping Configuration Register 1 066 00 7 0 T T GFDIV w Field Bits Type Description GFDIV 7 0 Ww Gaussian filter division factor bits 7 0 Resolution Tsys Reset 004 TX Data Shaping Configuration Register 2 A_TXDSHCFG2 TX Data Shaping Configuration Register 2 User Manual Offset 067 176 Reset Value 00 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview 7 4 3 0 GFDIV ASLDIV ll ll ll w Field Bits Type Description GFDIV 7 4 Ww Gaussian filter division factor bits 11 8 Resolution Tsys Reset 0 ASLDIV 3 0 w ASK sloping division factor bits 11 8 Resolution Tsys Reset 0 TX Power Configuration Register 0 A TXPOWERO Offset Reset Value TX Power Configuration Register 0 068 00 7 5 4 0 SLDITHWD POWLOW w w Field Bits Type Description SLDITHWD 7 5 Ww ASK sloping dithering width Dithering range 2 SLDITHWD to 2 SLDITHWD 1 Reset 0 POWLOW 4 0 w Output power for data LOW in ASK not used in FSK mode POWLOW defines the number of enabled PA stages during the low phase of ASK Reset 004 T
85. 7 0 T T T T SLCCFG w User Manual 165 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description SLCCFG 7 0 w Data Slicer Configuration Value 944 Chip Mode with Code Violations enabled A EOMC EOMDATLEN enabled Value 90 Chip Mode with Code Violations enabled A4 EOMC EOMCV enabled and A EOMC EOMDATLEN disabled Value 75 Bit Mode without Code Violation Value 8C NRZ Mode Reset 904 TSI Detection Mode Register A TSIMODE Offset Reset Value TSI Detection Mode Register 053 80 7 6 3 2 1 0 T T xr od TSIWCA CPHRA TSIDETMOD w w w w Field Bits Type Description TSIGRSYN 7 WwW TSI Gap Resync Mode only for TSIDETMODE 2 Og Disabled In this mode the GAPVAL and TSIGAP values are used so the overall GAP time can be defined in T 16 steps 1g Enabled PLL resync after TSI Gap In this mode the T 2 GAP resolution can be set in the 5 MSB TSIGAP register bits GAPVAL value is not used Prefered in TSI Gap Mode Reset 14 TSIWCA 6 3 w Wild Cards for 4 LSB bits of Correlator A If bit is 0 the whole TSI pattern for Correlator A is valid if bit is 1 the corresponding bit from the TSI pattern is ignored Reset 0 CPHRA 2 w Code Phase Readjustment in Payload Og disabled code polarity is defined by the TSI pattern 1g enabled code phase readjustment in payload Reset 0 User Manual
86. 7 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview 7 5 4 0 Res TSILENB ll ll r w Field Bits Type Description Res 7 5 r for future use Reset 0 TSILENB 4 0 Ww TSI B Length in chips 114 up to 1F not used Min 00h 0 Bit see also A_TSILENA Max 10h 16 Chips 8 Bit Reset 00 TSI Gap Length Register A_TSIGAP Offset Reset Value TSI Gap Length Register 0564 00 7 3 2 0 TSIGAP GAPVAL w w Field Bits Type Description TSIGAP 7 3 Ww TSI Gap T 2 bit resolution 1Fh 15 1 2 bit gap 00h 0 bit gap TSIGAP is used to lock the PLL after TSI A is found if the TSI detection mode 10b is selected Reset 00 GAPVAL 2 0 Ww TSI Gap T 16 bit resolution 111b 7 16 bit gap 000b 0 bit gap GAPVAL is used to correct the DCO phase after TSIGAP time if A_TSIMODE TSIGRSYN is disabled Reset 0 TSI Pattern Data Reference A Register 0 A_TSIPTAO Offset Reset Value TSI Pattern Data Reference A Register 0 057 00 User Manual 168 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview 7 0 TSIPTAO i ll ll ll w Field Bits Type Description TSIPTAO 7 0 Ww Data Pattern for TSI comparison Bit 7 Bit 0 LSB in Chips Reset 00 TSI Pattern Data Reference A Register 1 A_TSIPTA1 Offset Reset Value TSI Pattern Da
87. Active Level on PP3 for Configuration B Og Active Low 1g Active High Reset 14 RXRUNPP3A RXRUN Active Level on PP3 for Configuration A Og Active Low 1g Active High Reset 1 RXRUNPP2D RXRUN Active Level on PP2 for Configuration D Og Active Low 1g Active High Reset 1 RXRUNPP2C RXRUN Active Level on PP2 for Configuration C Og Active Low 1g Active High Reset 14 RXRUNPP2B RXRUN Active Level on PP2 for Configuration B Og Active Low 1g Active High Reset 14 RXRUNPP2A RXRUN Active Level on PP2 for Configuration A Og Active Low 1g Active High Reset 1 Clock Divider Register 0 CLKOUTO Offset Reset Value Clock Divider Register 0 0A7 OB 7 0 CLKOUTO w User Manual 199 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description CLKOUTO 7 0 w Clock Out Divider CLKOUT 19 0 CLKOUT2 MSB amp CLKOUT1 amp CLKOUTO LSB Min 00002h Clock divided by 2 2 Max FFFFFh Clock divided by 2420 1 2 Reg value 00000h Clock divided by 2 20 2 Reset OB Clock Divider Register 1 CLKOUT1 Offset Reset Value Clock Divider Register 1 0A8 00 7 0 CLKOUT1 li ll ll ll w Field Bits Type Description CLKOUT1 7 0 w Clock Out Divider CLKOUT 19 0 CLKOUT2 MSB amp CLKOUT1 amp CLKOUTO LSB Min 00002h
88. Bits Type Description PLDLEN 7 6 r Payload Data Length stored at TSI detection of the next message PLDLEN 9 0 RFPLLACC PLDLEN MSB amp PLDLEN LSB Cleared with INIT RX FIFO Min 000h 0 bits received Max 3FFh 1023 bits received Reset 0 RMSPACFG 5 4 RF PLL Run Mode Self Polling Actual Configuration 00 Configuration A 01 Configuration B 10 Configuration C 11 Configuration D Reset 0 RMSPAC 3 2 RF PLL Run Mode Self Polling Actual Channel Only valid after the first EOM Interrupt 00 Data in FIFO belong to Channel 1 01 Data in FIFO belong to Channel 2 10 Data in FIFO belong to Channel 3 11 Data in FIFO belong to Channel 4 Reset 0 SPMAC 1 0 RF PLL Self Polling Mode Actual Channel Only valid after the first Wake up Interrupt 00g Wake Up was found from Channel 1 01 Wake Up was found from Channel 2 10 Wake Up was found from Channel 3 11 Wake Up was found from Channel 4 Reset 0 User Manual 229 Revision 1 0 17 02 2012 TDA5340 In fineon SmartLEWIS TRX RegistersGenerated Registers Overview Wakeup Peak Detector Readout Register RSSIPWU Offset Reset Value Wakeup Peak Detector Readout Register 0D7 00 7 0 RSSIPWU r Field Bits Type Description RSSIPWU 7 0 r Peak Detector Level at Wakeup Set at every WU event and also set at the end of every configuration channel cycle within a Self Polling period Cle
89. Blocking Level Low Channel 1 01C FF Register A WURSSIBH1 RSSI Wake Up Blocking Level High Channel 1 01D 00 Register A WURSSITH2 RSSI Wake Up Threshold for Channel 2 Register 01E 00 A WURSSIBL2 RSSI Wake Up Blocking Level Low Channel 2 01F FF Register A_WURSSIBH2 RSSI Wake Up Blocking Level High Channel 2 020 00 Register A_WURSSITH3 RSSI Wake Up Threshold for Channel 3 Register 0214 00 A WURSSIBL3 RSSI Wake Up Blocking Level Low Channel 3 022 FF Register A WURSSIBH3 RSSI Wake Up Blocking Level High Channel 3 023 00 Register A WURSSITHA RSSI Wake Up Threshold for Channel 4 Register 0244 00 User Manual 117 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Generated Registers Overview Table 11 Registers Reset Values cont d Register Short Name Register Long Name Offset Address Reset Value A_WURSSIBL4 RSSI Wake Up Blocking Level Low Channel 4 025 FF Register A_WURSSIBH4 RSSI Wake Up Blocking Level High Channel 4 026 00 Register A_SRTHR Signal Recognition Threshold Register 027 10 A SIGDETSAT Slicing Level Saturation Register 0284 FF A WULOT Wake up on Level Observation Time Register 029 00 A SYSRCTO Synchronization Search Time Out Register 02A 87 A TOTIMO Timeout Timer Register 0 02B FF A_TOTIM1 Timeout Timer Register 1 02C OF A TOTIM SYNC SYNC Timeout Timer Regi
90. C In front of the AD converter there is a multiplexer so that also temperature and VDDD can be measured The default value of the ADC MUX is RSSI ADC Input Selection Register 000 for RSSI 001 for Temperature 010 for VDDD 2 After switching ADC MUX to a value other than RSSI in SLEEP Mode the internal references are activated and this ADC start up lasts 100us So after this ADC start up time the readout measurements may begin The chip stays in this mode until reconfiguration of register ADCINSEL to setting RSSI However it is recommended to measure temperature during SLEEP mode This is also valid for VDDD Readout of the 10 bit ADC has to be done via ADC Result High Byte Register and ADC Result Low Byte Register Typical the ADC refresh rate is 3 7 us Time duration between two ADC readouts has to be at least 3 7 us so this is already achieved due to the maximum SPI rate 16 bit for SPI command and address last 8us at an SPI rate of 2MBit s The EOC bit end of conversion in ADC Result Low Byte Register indicates a successful conversion additionally Repetition of the readout measurement for several times is for averaging purpose The input voltage of the ADC is in the range of 1 to 2 V Therefore VDDD 2 1 65 V typical is used to monitor VDDD 6 11 Temperature Sensor The temperature Sensor of the TDA5340 may be utilized to compensate crystal and gain variations due to temperature influences The used temperature sensor is gener
91. Channel Configuration Register RegistersGenerated Registers Overview Offset Reset Value 05E 00 4 3 2 1 0 Res EXTPROC EOM2SPM NOC MT WwW Ww Ww Ww Field Bits Type Description Res for future use Reset 0 EXTPROC 6 5 External Data Processing O0g No deactivation of functional blocks 01 Chip Data RX Mode TMCDS no framing FSYNC MID and EOM interrupts disabled only TOTIM_SYNC is active random equal and pattern WU are disabled mapped to sync 10 Data Data MF RX Mode TMMF TMRDS no framing FSYNC MID and EOM interrupts disabled all TOTIMs are inactive only WU on RSSI Level Criterion possible 11 not used Reset Op EOM2SPM Continue with Self Polling Mode after EOM detected in Run Mode Self Polling Og Disabled stay in Run Mode Self Polling next Payload Frame is expected 1g X Enabled leave Run Mode Self Polling after EOM Reset 0 NOC 3 2 Number of Channels Run Mode Slave Self Polling Mode Run Mode Self Polling 00 Channel 1 Channel 1 01 Channel 2 Channel 1 2 10 Channel 3 Channel 1 2 3 11 Channel 4 Channel 1 2 3 4 Reset 0 User Manual 172 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description MT 1 0 Ww Modulation Type Run Mode Slave Self Pollin
92. Control Register After transmission of the data frame the TDA5340 either waits for retransmission in the Transmit Ready Mode using the command listed above or enters the Transmit Idle Mode TIM Out of the TIM a very fast switch to other modes e g receive is possible by changing the MSEL bit group in the Chip Mode Control Register It is strongly recommended to leave the TIM state as fast as possible which has to be initiated by the host controller to avoid unnecessary high current consumption 3 3 Receive Modes The Receive Modes of the TDA5340 are designed to meet different requirements of the application The TDA5340 has three major receive operation modes which are switched by MSEL bit group in the Chip Mode Control Register and the SFR bit HOLD in the RX Control Register Receive Modes Run Mode Slave Receive RMS User Manual 26 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Operating Modes Self Polling Mode Receive SPM Run Mode Self Polling RMSP e Hold Mode HM In RMS the receiver is always active which minimizes the preamble length of the transmit packet The SPM can be used to perform automatic channel switching and preamble detection Furthermore the average receive current consumption can be reduced significantly The following state diagram in Figure 7 shows the possible transitions within the Receive Mode SPI RMS SPM release Hold Mode Wake up criteria found
93. DELOG Shift Value 2 s complement Range 128 127 Reset 004 CDR Data Rate Acceptance Positive Threshold Register CDRDRTHRP Offset Reset Value CDR Data Rate Acceptance Positive 0B5 1E Threshold Register 7 0 CDRDRTHRP i ll ll ll w Field Bits Type Description CDRDRTHRP 7 0 w Data Rate Acceptance Positive Threshold Value This feature can be turned on with _CDRRI DRLIMEN Higher the value more percent of the datarate is tolerated Default gt 10 Reset 1E User Manual 206 Revision 1 0 17 02 2012 TDA5340 SmartLEWIS TRX Infineon RegistersGenerated Registers Overview CDR Data Rate Acceptance Negative Threshold Register CDRDRTHRN Offset Reset Value CDR Data Rate Acceptance Negative 0B6 234 Threshold Register 7 0 CDRDRTHRN li li I I w Field Bits Type Description CDRDRTHRN 7 0 Ww Data Rate Acceptance Negative Threshold Value This feature can be turned on with _CDRRI DRLIMEN Higher the value more percent of the datarate is tolerated Default gt 10 Reset 23 Interrupt Mask Register 0 IMO Offset Reset Value Interrupt Mask Register 0 0B7 00 7 6 5 4 3 2 1 0 IMEOMB IMMIDFB eer IMWUB IMEOMA IMMIDFA sid dos IMWUA w w w w w w w w Field Bits Type Description IMEOMB 7 W Mask Interrupt on End of Message for Configuration B Og Interrupt enabled 1g Interrupt disabled Reset 0 IMMIDFB 6 Ww Mask Interrupt on Message ID Found
94. Description Res 7 4 r for future use Reset 0 MIDSEN 3 w Enable Message ID Screening Og Disabled 1g Enabled Reset Op MIDBO 2 Ww Message ID Byte Organisation 0g 2 Byte Mode 1g 4 Byte Mode Reset Op MIDNTS 1 0 w Message ID Number of Bytes To Scan 4 Byte Mode 2 Byte Mode 00 1 Byte to scan 1 Byte to scan 01 2 Bytes to scan 2 Bytes to scan 10 3 Bytes to scan 2 Bytes to scan 11 4 Bytes to scan 2 Bytes to scan Reset 0 IF1 Register A IF1 Offset Reset Value IF1 Register 0164 A3 7 6 5 3 2 1 0 dab is SSBSEL BPFBWSEL SDCSEL ADCLPFCS li i l w w w w w Field Bits Type Description ADCLPFBYP 7 Ww ADC LPF bypass enable Og Disabled 13 Enabled Reset 14 SSBSEL 6 Ww RXRF Receive Side Band Select 0g RF LO IF1 Lo side LO injection 1g RF z LO IF1 Hi side LO injection Reset 0 User Manual 131 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description BPFBWSEL 5 3 Ww Band Pass Filter Bandwidth Selection 000 001 0105 011 100g 101 110g 111g 50 kHz 80 kHz 125 kHz 200 kHz 300 kHz not used not used not used Reset 44 SDCSEL 2 w Single Double Conversion Selection 0s 1g Double Conversion 10 7 MHz 274 kHz Single Conversion 274 kHz Reset 0 ADCLPFCS 1 0 w ADC LPF Corner Frequency Selection 005 01 10g 11g 2 144 kHz 4 511 kHz 10 063 kHz 26 165 kHz Re
95. Eben EP XTAL2 L H 4 GNDD GNDD GNDD 16 NCS Digital input VDD5V VDDD SPI Not Chip select User Manual 18 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Introduction Table 1 Pin Definition and Function PinNr Pad Name Equivalent I O Schematic Function 17 SCK Digital input VDD5V VDDD SPI clock A A 5009 r SCK NB 34 D A H GNDD GNDD 18 SDI aap Digital input p 2 SPI data in AN 5000 L D SDI MD 1 A 4 a GNDD GNDD 19 SDO Digital output VDD5V SPI data out SDO 20 TM Digital input Vp VDDD connect to digital ground TM User Manual 19 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Introduction Table 1 Pin Definition and Function PinNr Pad Name Equivalent I O Schematic Function 21 GNDRF Analog ground VDDRF GNDRF 22 LNA_INN Analog input LNA INN EP RF input SHORT LNA INN GNDRF GNDRF 23 LNA INP Analog input LNA INP RF input SHORT LNA INP GNDRF GNDRF 24 GNDRF Analog ground VDDRF d GNDRF 25 RFOUT Analog output RFOUT power amplifier output P jH GNDRF User Manual 20 Revision 1 0 17 02 2012 Infineon Table 1 TDA5340 SmartLEWIS TRX Pin Definition and Function Introduction Pin Nr Pad Name Equivalent I O Schematic Function 26 PPRF P
96. Error Threshold 0CD 00 7 0 VACERRTH w Field Bits Type Description VACERRTH 7 0 W VCO Autocalibration Error Threshold Value 00 disabled Reset 00 PRBS Starting Value Register PRBS Offset Reset Value PRBS Starting Value Register O0CE 50 7 0 PRBS w Field Bits Type Description PRBS 7 0 W PRBS Starting Value Only used if Data scrambling is enabled Reset 504 TX FIFO Almost Empty Level Register TXFIFOAEL Offset Reset Value TX FIFO Almost Empty Level Register OCF 00 7 0 TXFIFOAEL w User Manual 223 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description TXFIFOAEL 7 0 w TX FIFO Almost Empty Level Reset 00 TX FIFO Almost Full Level Register TXFIFOAFL Offset Reset Value TX FIFO Almost Full Level Register 0DO 00 7 0 TXFIFOAFL w Field Bits Type Description TXFIFOAFL 7 0 w TX FIFO Almost Full Level Value represents the distance to the upper boundary of the TX FIFO Reset 004 RX FIFO Almost Full Level Register RXFIFOAFL Offset Reset Value RX FIFO Almost Full Level Register 0D1 00 7 0 T T T RXFIFOAFL w Field Bits Type Description RXFIFOAFL 7 0 w RX FIFO Almost Full Level Value represents the distance to the upper boundary of the RX FIFO Reset 004 PLL Status Register PLLSTAT PLL Status Register User Manual
97. FF lt 3 mA Transmit ON ON ON ON ON JON ON OFF 12 5mA Receive ON ON ON ON ON ON OFF JON 11 5 mA 1 selectable between XTAL in high or low precision mode 2 XTAL in low precision mode 3 10dBm Output power at 434MHz 4 single down conversion Mode no external CER Filter used NCS line to low SPI disable P_ON Pin Deep Sleep low SPI enable Deep Sleep NCS line to high SPI Receive Mode Power Down SPI Transmit Mode P_ON Pin low Self Polling SPI Receive Mode Figure5 Main State Diagram 3 1 Power Saving Modes Three different power saving modes are supported by the TDA5340 Depending on the application requirements like startup time and system current consumption the appropriate Power Saving Mode can be selected User Manual 24 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Operating Modes Power Down Mode PDM Deep Sleep Mode DSM Sleep Mode SM To enter the Power Down Mode PDM the P ON Pin must be pulled to low potential As a result the Special Function Register SFR will be set to reset state and all voltage regulators will be switched off This mode provides the lowest current consumption but also requires the longest time to recover to active modes Before entering the Deep Sleep Mode DSM this mode must be enabled by setting the SFR bit DSLEEPEN in the Chip Mode Control Register To enter
98. G Offset Reset Value AFC Start Freeze Configuration Register 032 00 7 6 5 4 3 2 1 AREE cum AFCUNFREEZE AFCFREEZE AFCSTART w w w w w Field Bits Type Description AFCBLASK 7 Ww AFC blocking during a low phase in the ASK signal Og Disabled 1g Enabled Reset 0 User Manual 145 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description AFCRESATC C Enable AFC Restart at Channel Change and at the beginning of the current configuration in Self Polling Mode and at leaving the HOLD state when bit CMCO INITPLLHOLD is set in Run Mode Slave Og X Disabled 1g Enabled Reset 0 AFCUNFREE ZE AFC Unfreeze Configuration 00 No Unfreeze 01 Unfreeze on NOT RSSI Event 10 Unfreeze on NOT Signal Recognition Event 11 Unfreeze on NOT Symbol Synchronization Reset 0 AFCFREEZE AFC Freeze Configuration 00g Stay ON 01 Freeze on RSSI Event Delay AFCAGCDEL 10 Freeze on Signal Recognition Event Delay AFCAGCDEL 11 Freeze on Symbol Synchronization Delay AFCAGCDEL Reset 0 AFCSTART AFC Start Configuration 00 OFF 01 Direct ON 10 Start on RSSI event 11 Start on Signal Recognition event Reset 0 AFC Integrators Gain Coefficients Register 0 A AFCKCFGO Offset Reset Value AFC Integrators Gain Coefficients Register 0 033 00 7 0 AFCK1 w Field Bits Type Descri
99. Hz XTAL Figure 1 Application Example optimized for System Costs 3V3 Supply User Manual 12 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Introduction 10 7 MHz CERFIL I control line 1RSSI IF OUT 28 control line 2 VDDA VDDRF 27 e ll 5V OF 0 470 pF supply BB 3 GNDA PPRF 26 elk 3 X Y Y ANT 4IF IN RFOUT 25 I Antenna Switch 220 E rom 5 GND IF GNDRF 24 ll e e 6 VDD5V LNA INP 23 e AAA P 3 e aie 10uF _ 0 4pF 3 L 1 i 7 VDDD LNA INN 22 e F 0 1pF SAW 8 VDDD1V5 GNDRF 21 Filter O tuF 9 GNDD TM 20 I i 10 PPO TDA5340 SDO 19 to uC 11 PP1 SDI 18 from pC NINT touc lt 12 PP2 SCK 17 from pC P_ON from uC 13 P_ON NCS 16 from uC 14 XTAL1 XTAL2 15 ILI 21 948717 MHz XTAL Figure 2 Application Example optimized for RF performance 5V Supply User Manual 13 Revision 1 0 17 02 2012 Infineon 1 4 TDA5340 SmartLEWIS TRX Pin Configuration Introduction The pin configuration of the TDA5340 which is based on the PG TSSOP 28 package is shown in Figure 3 Figure 3 PPRF RSSI VDDA GNDA IF IN GNDIF VDD5V VDDD VDDD1V5 GNDD PPO PP1 PP2 P ON XTAL1 Pin Out User Manual
100. I Wake Up Threshold for Channel 2 Register 01E 136 A_WURSSIBL2 RSSI Wake Up Blocking Level Low Channel 2 01F 137 Register User Manual 111 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Generated Registers Overview Table 10 Registers Overview cont d Register Short Name __ Register Long Name Offset Address Page Number A_WURSSIBH2 RSSI Wake Up Blocking Level High Channel 2 020 137 Register A_WURSSITH3 RSSI Wake Up Threshold for Channel 3 Register 0214 137 A_WURSSIBL3 RSSI Wake Up Blocking Level Low Channel 3 022 138 Register A_WURSSIBH3 RSSI Wake Up Blocking Level High Channel 3 023 138 Register A WURSSITHA RSSI Wake Up Threshold for Channel 4 Register 0244 139 A WURSSIBLA4 RSSI Wake Up Blocking Level Low Channel 4 025 139 Register A_WURSSIBH4 RSSI Wake Up Blocking Level High Channel 4 026 139 Register A_SRTHR Signal Recognition Threshold Register 027 140 A_SIGDETSAT Slicing Level Saturation Register 028 140 A_WULOT Wake up on Level Observation Time Register 029 141 A_SYSRCTO Synchronization Search Time Out Register 02A 141 A_TOTIMO Timeout Timer Register 0 02B 142 A_TOTIM1 Timeout Timer Register 1 02C 142 A_TOTIM_SYNC SYNC Timeout Timer Register 02D 143 A TOTIM TSI TSI Timeout Timer Register 02E 143 A_TOTIM_EOM EOM Timeout Timer Register 02F 144 A_AFCLIMI
101. IGDET0 1 range selection factor for ASK The selected signal detector value is multiplied by the 2 range selection factor Use the right setting to fit the measured SPWR value 008 6 10 7 6 11 8 Reset 34 SDRSELFSK 3 2 W A_SIGDET0 1 range selection factor for FSK The selected signal detector value is multiplied by the 2 range selection factor Use the right setting to fit the measured SPWR value 00 2 Olg 4 108 6 11 8 Reset 34 User Manual 159 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description SDLORSEL 1 0 Ww SIGDETLO range selection factor The selected signal detector value is multiplied by the 2 range selection factor Use the right setting to fit the measured SPWR value 00 2 01g 4 108 6 11 8 Reset 34 Signal Detector Configuration Register A SIGDETCFG Offset Reset Value Signal Detector Configuration Register 04A 00 7 6 5 4 3 2 1 0 Res Res SDLORE SDBCNTWU SDBCNTR r w w w Field Bits Type Description Res 7 6 r for future use Reset 0 SDLORE 4 W Source selection of Signal Power Readout Register Os Signal Power for A SIGDETO 1 1g Signal for minimal usable FSK deviation the sigdet low level can be read out with SPWR register Reset 0 SDBCNTWU 3 2 Ww Signal Detector Bridging Counter for Wakeup Signal detector output will be bridged for a sel
102. In fi neon SmartLEWIS TRX Block Description Even in case no Wake Up occurred actual peak value is written in the Wakeup Peak Detector Readout Register at the end of the actual configuration channel of the Self Polling period So if no Wake Up occurred then the Wakeup Peak Detector Readout Register contains the peak value of the last configuration channel of the Self Polling period even in a Multi Configuration Multi Channel setup This functionality can be used to track RSSI during unsuccessful Wake Up search due to no input signal or due to blocking RSSI detection For further details please refer to Wake Up Generator on Page 90 Input Dn Dn Dn I SPI read out l i i RSSIPPL amp RSSIPRX i i i i i 4 i i I St re me npr ee que intemalRSSIPPL __ i rae i see RSSIPPL Register dut CORTO NP sn i i I E internal RSSI ee ee rr paa ee eqn em Mm L MORSU uS FSYNC diears the internal RSSPPL internal RSSIPRX i i 7 RSSIPRX Register cud x eri i fj i internal RSSI l i i 4 E j i i Reset FSync n PKBITPOS SPI EOM FSync I i l 1 I i i i 1 Computation Delay due to filtering and signal calculation Figure 56 Peak Detector Behavior Recommended Digital RSSI Trimming Procedure Download configuration file Run Mode Slave RSSI Slope Register
103. Internal LNA switch closed Reset Op RXON1_INN LNA INN switch configuration in RX mode if antenna 1 selected 0g Internal LNA switch open 1g Internal LNA switch closed Reset 0 RXON1 EXS W1 External antenna switch 1 configuration in RX mode if antenna 1 selected Og Level Low on PPx pin 1g Level High on PPx pin Reset 14 RXON1_EXS W2 External antenna switch 2 configuration in RX mode if antenna 1 selected Og Level Low on PPx pin 1g Level High on PPx pin Reset 0 ADR Start Freeze Configuration Register A ADRSFCFG Offset Reset Value ADR Start Freeze Configuration Register 07F 00 7 6 5 4 3 2 1 0 Res ADRUNFREEZE ADRFREEZE ADRSTART r w w w Field Bits Type Description Res 7 6 r for future use Reset 0 ADRUNFREE 5 4 Ww ADR Unfreeze Configuration ZE 00 No Unfreeze 01 Unfreeze on NOT RSSI Event 10 Unfreeze on NOT Signal Recognition Event 11 Unfreeze on NOT Symbol Synchronization Reset 0 User Manual 189 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description ADRFREEZE 32 w ADR Freeze Configuration 00 Stay ON 01 Freeze on RSSI Event Delay A_AFCAGCADRD 10 Freeze on Signal Recognition Event Delay A AFCAGCADRD 11 Freeze on Symbol Synchronization Delay A AFCAGCADRD Reset 0 ADRSTART 1 0 w ADR Start Configuration 00 OFF
104. Interrupt Status Register 2 Wake up Interrupt The TDA5340 found a match of the configured Wake up criteria and will change from Self Polling Mode to Run Mode Self Polling Status register and Mask registers for each configuration A B C and D separately Interrupt Mask bit 0 IMWUA and bit 4 IMWUB in Interrupt Mask Register 0 and bit 0 IMWUC and bit 4 IMWUD in Interrupt Mask Register 1 User Manual 50 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX System Interface Interrupt Status bit O WUA and bit 4 WUB in Interrupt Status Register 0 and bit O WUC and bit 4 WUD in Interrupt Status Register 1 Frame Sync found The Frame Synchronization Unit found the configured Telegram Start Identifier TSI and will start to write the payload data into the RX FIFO Status register and Mask registers for each configuration A B C and D separately Interrupt Mask bit 1 IMFSYNCA and bit 5 IMFSYNCB in Interrupt Mask Register 0 and bit 1 IMFSYNCA and bit 5 IMFSYNCB in Interrupt Mask Register 1 Interrupt Status bit 1 FSYNCA and bit 5 FSYNCB in Interrupt Status Register 0 and bit 1 FSYNCC and bit 5 FSYNCD in Interrupt Status Register 1 Message ID found This Interrupt shows the host controller that a valid message identification was found within the payload data Status register and Mask registers for each configuration A B C and D separately Interrupt Mask bi
105. LEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description ADCRESH 7 0 rc ADC Result Value ADCRES 9 0 ADCRESH 7 0 amp ADCRESL 1 0 Note RC for control signal generation only no clear Reset 00 ADC Result Low Byte Register ADCRESL Offset Reset Value ADC Result Low Byte Register oDC 00 7 3 2 1 0 T Res ADCEOC ADCRESL r r r Field Bits Type Description Res 7 3 r for future use Reset 00 ADCEOC 2 r ADC End of Conversion detected Og not detected 1g detected Reset 0 ADCRESL 1 0 ADC Result Value ADCRES 9 0 ADCRESH 7 0 amp ADCRESL 1 0 Reset 0 AFC Offset Read Register AFCOFFSET Offset Reset Value AFC Offset Read Register ODD 00 7 0 AFCOFFS r User Manual 232 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description AFCOFFS 7 0 r Readout of the Frequency Offset found by AFC AFC loop filter output Value is in signed representation Frequency resolution is 2 68 kHz digit Output can be limited by x AFCLIMIT register Update rate is 548 kHz Reset 00 AGC and ADR Readout Register AGCADRR AGC and ADR Readout Register Offset Reset Value ODE 00 4 3 2 1 0 Res ADRSTAT IF2GAIN MIX2GAI N r r r Field Bits Type Description Res T 4 r for future use
106. LL Fractional Division Ratio Register 1 071 07 Channel 2 7 0 T T T T PLLFRAC1C2 w User Manual 181 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description PLLFRAC1C2 7 0 Ww Synthesizer channel frequency value 21 bits bits 15 8 fractional division ratio for Channel 2 PLLFRAC 20 0 dec2hex f_LO f_XTAL PLLINT 2421 Reset 07 PLL Fractional Division Ratio Register 2 Channel 2 A_PLLFRAC2C2 Offset Reset Value PLL Fractional Division Ratio Register 2 072 09 Channel 2 7 6 5 4 0 Res ea PLLFRAC2C2 r w W Field Bits Type Description Res 7 6 r for future use Reset 0 PLLFCOMPC2 5 w Fractional Spurii Compensation enable for Channel 2 Og Disabled 13 Enabled Reset 04 PLLFRAC2C2 4 0 w Synthesizer channel frequency value 21 bits bits 20 16 fractional division ratio for Channel 2 PLLFRAC 20 0 dec2hex f LO f XTAL PLLINT 2421 Reset 094 PLL MMD Integer Value Register Channel 3 A PLLINTC3 Offset Reset Value PLL MMD Integer Value Register Channel 3 073 134 7 6 5 0 Res PLLINTC3 r w User Manual 182 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description Res 7 6 r for future use Reset 0 PLLINTC3 5 0 W SDPLL Multi Modulus Di
107. Line Number x MID14 Scan Start Position Reached MID found gt MID Scanning finished Control x MID 15 FSM Scan End Position Reached Bit Counte x MID 16 Interface to Master FSM Number of Startbit Ao x_MID17 x_MID18 Init MID Scanner x_MID19 E Enable MID Scanning Data Clock E I a E o a E xl from Digital Receiver Figure 77 2 Byte Message ID Scanning ID Position Configuration Itis possible to choose which part of the incoming data stream is compared against the stored MIDs The Message ID Control Register 0 contains the Scan Start Position If the Bit Counter detects the Scan Start Position the Control FSM enables the Scanner The Message ID Control Register 1 contains the number of bytes to scan During the observation period the Message ID Scanning is aborted immediately by the Master FSM if symbol synchronization is lost or an EOM End Of Message is detected User Manual 102 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description Example Start Selection 0010001b Number to scan 00b 01b 10b 11b a c 5 p I FSYNC st o 1 2 Pes Jeps 26 _ Te a2 a s4 se 40 41 42 Ta 48 49 Number To Scan 00b a Number To Scan 01b j ye t Mie gt Number To Scan
108. Manual 186 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description CPTRIM 3 0 Ww Charge Pump Current trimming in RX mode Min 0 5uA Max F 800A Step 5uA Reset Cy PLL Bandwidth Selection Register for TX Mode A_TXPLLBW Offset Reset Value PLL Bandwidth Selection Register for TX 07C 27 Mode 7 6 4 3 0 T T T Res LFTRIM CPTRIM r w w Field Bits Type Description Res 7 r for future use Reset 0 LFTRIM 6 4 w PLL LF Trim value in TX mode 000 Rz 9 94 kOhm R4 3 92 kOhm 001 Rz 10 48 kOhm R4 4 06 kOhm 010 Rz 11 38 kOhm R4 4 44 kOhm 011 Rz 13 46 kOhm R4 5 24 kOhm 100 Rz 15 26 kOhm R4 6 04 kOhm 101 Rz 18 8 kOhm R4 7 36 kOhm 110 Rz 26 64 kOhm R4 10 6 kOhm 111 Rz 37 4 kOhm R4 14 7 kOhm Reset 24 CPTRIM 3 0 Ww Charge Pump Current trimming in TX mode Min 0 5uA Max F 80uA Step 5uA Reset 74 PLL Startup Time Register A_PLLTST Offset Reset Value PLL Startup Time Register 07D 5B User Manual 187 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview VACRES TXPLLTST RXPLLTST Ww Ww Ww Field Bits Type Description VACRES 7 6 VCO Autocalibration resolution 00 14 6 MHz not recommended 01 7 3 MHz 10 4 4 MHz
109. N y lol OL digital a a m i i 8 Mee S Te gt gt harm sup FSK Demod RX x AS p S x o LNA c a BY of m N Input x i 3 I S z z 3 LP ASK ecb PY c QMix b gt H i j us Px 3 RSSI General tor Ly alias sup a dud md um Qupd dubi dne md d in f a f IF i Divider Attenuation mE gt IN j x Channel Filter Bandwidth select N py XA Modulator je e 4 Fi Crystal VCO gt 1 2 3 by IQ Divider 4 b E EN gt PD je oscil Pandcopes ivider N_I lator Channel select 4 j LF select Front end il control unit Band select ae i I Channel Filter select 1 OOP IF Attenuation adjust lt j Filter I I RSSI Gain Offset adjust LF select l l l l l l l l e I Channel select l l l l l l l l Figure 41 Block Diagram RF Receiver Section 6 3 1 Low Noise Amplifier LNA The LNA of the TDA5340 has a differential input where each input can be used as a single ended input Both Inputs of the LNA can be grounded separately via internal switches The LNA optimum input impedance for Noise figure and power matching is set to one single impedance point The frontend matching can be done either differential or single ended User Manual 56 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block D
110. NO r Field Bits Type Description SNO 7 0 r Serial Number SN 31 0 SN3 MSB amp SN2 amp SN1 amp SNO LSB Reset 00 Serial Number Register 1 SN1 Offset Reset Value Serial Number Register 1 0E3 00 7 0 SN1 r Field Bits Type Description SN1 7 0 r Serial Number SN 31 0 SN3 MSB amp SN2 amp SN1 amp SNO LSB Reset 00 Serial Number Register 2 SN2 Offset Reset Value Serial Number Register 2 0E4 00 7 0 T T T T SN2 r User Manual 235 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description SN2 7 0 r Serial Number SN 31 0 SN3 MSB amp SN2 amp SN1 amp SNO LSB Reset 004 Serial Number Register 3 SN3 Offset Reset Value Serial Number Register 3 0E5 00 7 0 SN3 r Field Bits Type Description SN3 7 0 r Serial Number SN 31 0 SN3 MSB amp SN2 amp SN1 amp SNO LSB Reset 00 Chip ID Register CHIPID Offset Reset Value Chip ID Register 0E6 00 7 0 CHIPID r Field Bits Type Description CHIPID 7 0 r CHIP ID Reset 00 RSSI Readout Register RSSIRX Offset Reset Value RSSI Readout Register 0E7 00 User Manual 236 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview 7 0 RSSIRX I ll ll ll r Field Bits Type Description RSSIRX 7 0 r RSSI
111. NTB1 5 0 w Set Value Self Polling Mode On Time SPMONTB 13 0 SPMONTB1 MSB amp SPMONTBO LSB On Time TRT SPMONTB Min 0001h 1 TRT Reg Value 3FFFh 16383 TRT Max 0000h 16384 TRT Reset 00 Self Polling Mode On Time Config C Register 0 SPMONTCO Offset Reset Value Self Polling Mode On Time Config C Register 0C3 01 0 7 0 SPMONTCO w Field Bits Type Description SPMONTCO 7 0 Ww Set Value Self Polling Mode On Time SPMONTC 13 0 SPMONTC1 MSB amp SPMONTCO LSB On Time TRT SPMONTC Min 0001h 1 TRT Reg Value 3FFFh 16383 TRT Max 0000h 16384 TRT Reset 01 Self Polling Mode On Time Config C Register 1 SPMONTC1 Offset Reset Value Self Polling Mode On Time Config C Register 0C4 00 1 7 6 5 0 Res SPMONTC1 r w User Manual 215 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description Res 7 6 r for future use Reset 0 SPMONTC1 5 0 w Set Value Self Polling Mode On Time SPMONTC 13 0 SPMONTC1 MSB amp SPMONTCO LSB On Time TRT SPMONTC Min 0001h 1 TRT Reg Value 3FFFh 16383 TRT Max 0000h 16384 TRT Reset 00 Self Polling Mode On Time Config D Register 0 SPMONTDO Offset Reset Value Self Polling Mode On Time Config D Register 0C5 01 0 7 0 SPMONTDO w Field Bits Type Description SPMONTDO 7 0 w Set
112. OTIM with SYNC There are two timers TOTIM TSI see TSI Timeout Timer Register which is only active between Wake up and potential Telegram Start Identifier TSI and TOTIM EOM is activated if enabled after detection of TSI This timers are mainly used to avoid receiver activity related to potential interferers which may have the same modulation and data rate as the expected data frame The register value of TOTIM EOM has to be multiplied by two and then multiplied with the time base to get the programmed time period for details see EOM Timeout Timer Register In Figure 49 a detailed description of all TOTIM s can be found User Manual 62 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description WU frame and Payload frame have the same modulation type eg TOTIM_TSI is set to 15ms A TX signal RI TSI Payloact RI TSI Payloac2 gt RX_RUN WU data Interrupt RunMode SelfPolling A SelfPolling Sleep Init TOTIMs TOTIM_SYNC counter activity i Log i i TOTIM TSI A i i counter activity d t pd TOTIM EOM counter activity TOTIM A counter activity Figure 49 TOTIM Behavior External Forced TOTIM Normally the TOTIM event is generated by the TDA5340 itself but in some circumstances the host controller must overrule the internal logic and bring back the receiver to Self Polling Mode immediately This can be done by a SPI access to Externa
113. OW of the transmitter can be defined in the TX Power Configuration Register 0 and TX Power Configuration Register 1 for each of the four configurations Of course for FSK modulation schema only the POWHIGH level will be used The resulting output power is a User Manual 58 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description combination of the matching network impedance selected power amplifier stages and Duty Cycle Control selection The output impedance of the PA depends on the number of PA stages used The external antenna matching must be done for the impedance related to the highest number of used PA stages or in other words for the use case of highest RF output power If the desired output power is 13 dBm for instance the antenna should be matched for the case of all the 31 PA Stages active Supposed the matching network have been set up for the PA impedance bound to 13 dBm output power all 31 PA Stages active it is reasonable to expect some degree of mismatch and efficiency loss by operation in 5 dBm RF power mode It has to be kept in mind by matching to the highest number of PA stages the best efficiency of the PA is reached but also the capability of trimming to higher output power level is lost All available PA stages are driven by so called preamplifiers The current consumption of the preamplifieres is a function of the selected RF frequency and the number of activated stages The mor
114. Og Inactive 1g Active Reset 0 wc AGCMANF AGC Manual Freeze Og Inactive 1g X Active Reset 0 wc User Manual 217 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description AFCMANF wc AFC Manual Freeze Og Inactive 1g Active Reset 0 EXTTOTIM wc Force TOTIM signal Og no external TOTIM signal forced 1g external TOTIM signal forced Reset 0 EXTWUEOM wc Force Wakeup EOM signal 0g no external Wakeup EOM signal forced 1g X external Wakeup EOM signal forced Reset 0 TX Control Register TXC TX Control Register 7 6 5 Offset 0C8 4 3 2 1 Reset Value 01 0 TXSTART TXPLLIN IT INITTXF IFO TXBDRSY TXMODE ME TXENDFI NCT FO TXFAILS AFE wc WC WC Ww Ww Ww Ww Ww Field Bits Type Description TXSTART WC TX start bit Used in Start bit mode Og TX not started 1g TX started Reset 04 TXPLLINIT WC TX PLL init at channel change Only possible out of TX idle and TX ready states Og TX and PLL not initialized 1g TX and PLL initialized Reset 0 INITTXFIFO WC Init the TX FIFO Og No TX FIFO init 1g TXFIFO init Reset 0 TXBDRSYNC T Synchronization with baudrate generator in Transparent mode Encoder can be activated
115. PRF Digital output always in 3V domain RX_RUN NINT ANT_EXTSW1 ANT_EXTSW1 DATA DATA_MATCHFIL CH_DATA CH_STR RXD RXSTR TXSTR and TRISTATE are programmable via SFR default TRISTATE 27 VDDRF GNDRF Analog input RF supply 28 IF OUT IF OUT GNDRF GNDRF VDDRF Analog output Mixer output User Manual 21 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Transceiver Architecture 2 Transceiver Architecture The TDA5340 transceiver architecture is based on a super heterodyne low IF single or double down conversion receiver in combination with a highly efficient Class C E type power amplifier A fully integrated Sigma Delta Fractional N PLL Synthesizer covers the frequency bands 300 320 MHz 415 495 MHz 863 960 MHz with a high frequency resolution using only one VCO running at around 3 6 GHz This makes the IC most suitable for Multi Band Multi Channel applications For Multi Channel applications a very good channel separation is essential To achieve the necessary high sensitivity and selectivity a double down conversion super heterodyne architecture is used The first IF frequency is located around 10 7 MHz and the second IF frequency around 274 kHz For both IF frequencies an adjustment free image frequency rejection feature is realized In the second IF domain the filtering is done with an on chip third order bandpass polyphase filter A multi stage ban
116. R Threshold Register 1 084 84 SFRPAGE Special Function Register Page Register OAO 00 PPCFGO PPO and PP1 Configuration Register 0A1 50 PPCFG1 PP2 and PPRF Configuration Register 0A2 F2 PPCFG2 PPx Port Configuration Register 0A3 00 PPCFG3 PPRF RSSI Configuration Register OAM OF RXRUNCFGO RX RUN Configuration Register 0 0A5 FF RXRUNCFG1 RX RUN Configuration Register 1 0A6 FF CLKOUTO Clock Divider Register 0 OAT7 OB CLKOUT1 Clock Divider Register 1 0A8 00 CLKOUT2 Clock Divider Register 2 0A9 10 ANTSW Antenna Switch Configuration Register OAA 1D RFC RF Control Register 0AB E74 XTALCALO XTAL Coarse Calibration Register OAE 90 User Manual 120 Revision 1 0 17 02 2012 TDA5340 SmartLEWIS TRX Infineon Generated Registers Overview Table 11 Registers Reset Values cont d Register Short Name Register Long Name Offset Address Reset Value XTALCAL1 XTAL Fine Calibration Register OAF 00 RSSICFG RSSI Configuration Register OBO 104 ADCINSEL ADC Input Selection Register 0B1 00 RSSIOFFS RSSI Offset Register 0B2 80 RSSISLOPE RSSI Slope Register 0B3 80 DELOGSFT DELOG Shift Register 0B4 00 CDRDRTHRP CDR Data Rate Acceptance Positive Threshold 0B5 1E Register CDRDRTHRN CDR Data Rate Acceptance Negative Threshold OB6 234 Register IMO Interrupt Mask R
117. RSSI Supports all bi phase format schemes and NRZ General Operating temperature range 40 to 110 C Supply voltage range 3 0 to 3 6 V or 4 5 to 5 5 V Brownout detector Integrated 4 wire SPI bus interface 32 bit wide Unique ID on chip On chip temperature sensor ESD protection 2 kV on all pins HBM PG TSSOP 28 package 1 2 Target Applications Remote keyless entry RKE Remote start applications Passive Keyless Entry PKE Security Alarm Systems Automatic Meter Reading AMR and Infrastructure AMI Home Automation Remote Control Sensor Networks Short range radio data transmission User Manual 11 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Introduction 1 3 Application Example The Application examples within this section where optimized for performance and system costs Of course there exists several steps in between which can be realized by the customer to fulfill the application specific needs 3V3 supply A 1 RSSI IF_OUT 28 479 e e 2 VDDA VDDRF 27 0 1uF 3 GNDA PPRF 26 il e AIF IN RFOUT 25 ANT t 0 1uF 5 GND IF GNDRF 24 100 e svopsv LNA INP 23 9 7 VDDD LNA INN22 0 1yF h s amp vbDbivs GNDRF 21 0 1uF 9 GNDD TM20 ppo 1DAS340 s 11 PP1 SDI 18 NINT tou C 12 PP2 SCK 17 P ON from uC 13 P ON NCS 16 14 XTAL1 XTAL2 15 21 948717 M
118. RSSI Offset Register set to default i e RSSISLOPE 1 RSSIOFFS 0 Turn off AGC AGCSTART 0 and set gain to AGCGAIN 0 Apply PIN1 85 dBm RF input signal read RSSI Peak Detector Readout Register eleven times minimum 10 ms in between readings use average of last ten readings always store as RSSIM1 Apply PIN2 65 dBm RF input signal read RSSI Peak Detector Readout Register eleven times minimum 10 ms in between readings use average of last ten readings always store as RSSIM2Calculate measured RSSI slope SLOPEM RSSIM2 RSSIM1 PIN2 PIN1 Adjust RSSI Slope Register for required RSSI slope SLOPER as follows RSSISLOPE SLOPER SLOPEM e Adjust RSSI Offset Register for required value RSSIR2 at PIN2 as follows RSSIOFFS RSSIR2 RSSIM2 SLOPEM SLOPER PIN2 The new values for RSSISLOPE and RSSIOFFS have to be added to the configuration Notes 1 The upper RF input level must stay well below the saturation level of the receiver see Chapter 6 13 5 2 The lower RF input level must stay well above the noise level of the receiver 3 If IF Attenuation is trimmed this has to be done before trimming of RSSI User Manual 78 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description 4 If RSSI needs to be trimmed in a higher input power range the AGCGAIN must be set accordingly 6 13 7 Antenna Diversity based on RSSI ADR The ADR is a build in state machine within the TDA5340 which can select one o
119. Register Configuration state only in Run Mode Slave Og Normal Operation 1p Jump into the Register Config state Hold Reset 0 Chip Mode Control Register CMC Offset Reset Value Chip Mode Control Register 0CA 10 7 6 5 4 3 2 1 0 T T INITMCU PERS mis ud ENBOD MCS MSEL WC w w w w w User Manual 220 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description INITMCU 7 Wc Init the MCU go to VREG_EN state Used to re enter the same mode selected by the MSEL bit Note Not recommended for SLEEP mode re entering Og NoMcCu init 1g Init MCU Reset 04 SDOHPPEN 6 Ww SDO High Power Pad Enable Og Normal 1g High Power Reset 0 DSLEEPEN 5 w Deep Sleep Mode enable Deep Sleep Mode entered only if Sleep Mode selected with MSEL bits Og Disabled 1g Enabled Reset 04 ENBOD 4 Ww Enable brown out detector Og Disabled 1g Enabled Reset 1 MCS 3 2 Ww Multi Configuration Selection Run Mode Slave Self Polling Mode Transmit 00 Config A Config A Config A 01 Config B Config A B Config B 10 Config C Config A B C Config C 11 Config D Config A B C D Config D Reset 0 MSEL 1 0 W Operating Mode Selection 00 Sleep Mode 01 Self Polling Mode 10 Run Mode Slave 11 Transmit Mode Reset 0 TX Channel Configuration Register TXCHNL Offset Reset Value TX Channel Con
120. S TRX RegistersGenerated Registers Overview A_EOMDLEN Offset Reset Value EOM Data Length Limit Register 05C 00 7 0 DATLEN w Field Bits Type Description DATLEN 7 0 W Length of Data Field in Telegram only valid when EOM criterion is EOMDATLEN Counting of number of payload bits starts after the last TSI Bit EOM will be generated after the last payload bit In 8 bit extended TSI mode the value must be the payload length 1 because of the additional bit inserted matching information Min 00h 256 payload bits Reg value 01h 1 payload bit Max FFh 255 payload bits Reset 00 EOM Data Length Limit Parallel Mode Register A_EOMDLENP Offset Reset Value EOM Data Length Limit Parallel Mode 05D 00 Register 7 0 DATLENP w Field Bits Type Description DATLENP 7 0 Ww Length of Data Field in Telegram in Parallel Mode for TSI Pattern B only valid when EOM criterion is EOMDATLEN Counting of number of payload bits starts after the last TSI Bit EOM will be generated after the last payload bit In 8 bit extended TSI mode the value must be the payload length 1 because of the additional bit inserted matching information Min 00h 256 payload bits Reg value 01h 1 payload bit Max FFh 255 payload bits Reset 004 User Manual 171 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Channel Configuration Register A_CHCFG
121. S Hold Mode usasa ege eae ex Self Polling Mode Receive SPM Constant On Off Mode COO Fast Fall Back to SLEEP FFB Mixed Mode MM Const On Off amp Fast Fall Back to SLEEP Permanent Wake Up Search PWUS System Interface Interfacing to the TDA5340 Control Interface llle Data Interface 22 oos ceded RPRIR Rz Packet Oriented Receive Modes Transparent Receive Modes TX FIFO Modes 0 0000 cece eee eee TX Transparent Mode Digital Control 4 wire SPI Bus Receive FIFO RX FIFO Transmit FIFO TX FIFO 00 000s General Purpose Output Pins Interrupt Generation Unit Interrupt Sources 200000000 ee Chip Serial Number 2222205 Digital Control SFR Registers SFR Address Paging 00 e eee eeaee SFR Register List and Detailed SFR Description Block Description Power Supply Circuitry 0000 000 ee Chip Reset 2 0000 0c eee eee RF IF Receiver 002002 cee eeeee Low Noise Amplifier LNA User Manual Table of Contents Revision 1 0 17 02 2012 TDA5340 In fineon SmartLEWIS TRX 6 3 2 6 3 3 6 4 6 4 1 6 4 2 6 5 6 6 6 7 6 8 6 9 6 10 6 11 6 12 6 12 1 6 12 2 6 13 6 13 1 6 13 2 6 13 3 6 13 4 6 13 5 6 13 6 6 13 7 6 13 7 1 6 13 8 6 13 9 6 13 10 6 13 11 6 13 11 1 6 13 11 2
122. Signal recognition condition is fulfilled see Data Filter and Signal Detection on Page 82 Freeze Conditions ADRFREEZE in ADR Start Freeze Configuration Register e Stay ON ADR is always searching Freeze on RSSI event Delay If the RSSI level is above the configured RSSI threshold in RSSI Wake Up Threshold for Channel 1 Register the ADR will stay at the found antenna after a programmable delay AFC AGC ADR Freeze Delay Register Freeze on Signal Recognition event Delay The ADR will be frozen if the Signal recognition condition is fulfilled and the programmable delay AFC AGC ADR Freeze Delay Register is expired Freeze on Symbol Synchronization SYNC Delay After loss of SYNC the programmable delay time AFC AGC ADR Freeze Delay Register is waited and the ADR is frozen The TDA5340 provides also the functionality that the host controller can freeze the ADR by the ADRMANF bit in the External Processing Command Register register Unfreeze Conditions ADRFREEZE in ADR Start Freeze Configuration Register nounfreeze once the ADR is frozen on a frequency the receiver will use the discovered antenna until the receiver leaves the active mode RMSP or RMS Unfreeze on NOT RSSI event If the RSSI level goes below the configured RSSI threshold in RSSI Wake Up Threshold for Channel 1 Register the ADR will unfreeze An unfreeze will be generated only if the RSSI level is above the threshold and changes below the thre
123. T AFC Limit Configuration Register 0301 144 A_AFCAGCADRD AFC AGC ADR Freeze Delay Register 031 145 A_AFCSFCFG AFC Start Freeze Configuration Register 032 145 A AFCKCFGO AFC Integrators Gain Coefficients Register 0 033 146 A AFCKCFG1 AFC Integrators Gain Coefficients Register 1 034 146 A PMFUDSF Peak Memory Filter Up Down Factor Register 035 147 A AGCSFCFG AGC Start Freeze Configuration Register 036 148 A AGCCFGO AGC Configuration Register 0 037 149 A AGCCFG1 AGC Configuration Register 1 038 150 A AGCTHR AGC Threshold Register 039 150 A DIGRXC Digital Receiver Configuration Register 03A 151 A PKBITPOS RSSI Peak Detector Bit Position Register 03B 152 A PDFMFC PD Filter and Matched Filter Configuration 03C 152 Register A_PDECF Pre Decimation Factor Register 03D 153 A_PDECSCFSK Pre Decimation Scaling Register FSK Mode 03E 153 A_PDECSCASK Pre Decimation Scaling Register ASK Mode O3F 154 A SRC Sample Rate Converter 040 154 A EXTSLCO External Data Slicer Configuration Register 0 041 155 User Manual 112 Revision 1 0 17 02 2012 TDA5340 SmartLEWIS TRX Infineon Generated Registers Overview Table 10 Registers Overview cont d Register Short Name Register Long Name Offset Address Page Number A EXTSLC1 External Data Slicer Configuration Register 1 042 155 A EXTSLC2 External Data Slicer Configuration Regis
124. TA_MATCHFIL 0111 LOW 1000 CH_DATA 1001 CH_STR 1010 RXD 1011 RXSTR 1100 TXSTR 1101 HIGH 1110 n u 1111 TRISTATE Reset F PP2CFG 3 0 Port Pin 2 Output Signal Selection 0000 CLK_OUT 0001 RX_RUN 0010 NINT 0011 ANT_EXTSW1 0100 ANT_EXTSW2 0101 DATA 0110 DATA_MATCHFIL 0111 LOW 1000 CH_DATA 1001 CH_STR 1010 RXD 1011 RXSTR 1100 TXSTR 1101 HIGH 1110 n u 1111 TRISTATE Reset 24 PPx Port Configuration Register PPCFG2 PPx Port Configuration Register User Manual Offset Reset Value 0A3 00 195 Revision 1 0 17 02 2012 Infineon 7 TDA5340 SmartLEWIS TRX 6 5 RegistersGenerated Registers Overview 4 3 2 1 0 PPRFHPP EN PP2HPPE N PP1HPPE PPOHPPE N N PPRFINV PP2INV PP1INV PPOINV Ww Ww Ww Ww Ww Ww Field Bits Type Description PPRFHPPEN PPRF High Power Pad Enable Og Normal 1g High Power Reset Op PP2HPPEN PP2 High Power Pad Enable Og Normal 1g High Power Reset 0 PP1HPPEN PP1 High Power Pad Enable Og Normal 1g High Power Reset 04 PPOHPPEN PPO High Power Pad Enable Og Normal 1g High Power Reset 0 PPRFINV PPRF Inversion Enable Og Not Inverted 1g Inverted Reset 0 PP2INV PP2 Inversion Enable Og Not Inverted 1 Inverted Reset 0 PP1INV PP1 Inversion Enable Og Not Inverted 1g Inverted Reset
125. TRX RSSI Level x_WURSSIBHy x_WURSSIBLy x_WURSSITHy Data x_NDCONFIG x_SIGDET1 x_NDTHRES x SIGDETLO Sync Search Time Elapsed Compare Wake up on Signal Exceeding Thresholds Recognition Exceeding Threshold _ WU Level Criterion Sync Chip Data Clock 94 Chip Data Wake up Window Chip Counter WU L WUW Chip Counter Elapsed Wake up nc No WU gt Code Violation Detector Code Violation Detected T Bit Change Detector Bit Change Detected 16 chips Shift Register f Pattern Detector RSSI gt WU on Level Criteria Signal Recognition gt Sync p Random Bits p WU on Data Criteria Equal Bits p Pattern X Figure 64 Wake Up Generation Unit 6 13 14 1 Wake Up on RSSI The threshold RSSI Wake Up Threshold for Channel 1 Register is used to decide whether the actual signal is a wanted signal or just noise Any kind of interfering RSSI level can be blocked by using an RSSI blocking window This window is determined by the thresholds RSSI Wake Up Blocking Level Low Channel 1 Register and RSSI Wake Up Blocking Level High Channel 1 Register where 1 represents the actual RF channel 1 to 4 These two thresholds can be evaluated during normal operation of the application to handle the actual interferer
126. TSI Pattern Data Reference B Register 1 05A 00 A EOMC End Of Message Control Register 05B 05 A EOMDLEN EOM Data Length Limit Register 05C 00 A_EOMDLENP EOM Data Length Limit Parallel Mode Register 05D 00 A CHCFG Channel Configuration Register 05E 00 A TXRF TX RF Configuration Register 05F 04 A TXCFG TX Configuration Regsiter 060 05 A TXCHOFFSO TX Channel Offset Register 0 061 00 A TXCHOFFS1 TX Channel Offset Register 1 062 00 A TXBDRDIVO TX Baudrate Divider Register 0 0634 00 A_TXBDRDIV1 TX Baudrate Divider Register 1 064 00 A TXDSHCFGO TX Data Shaping Configuration Register 0 065 00 A TXDSHCFG1 TX Data Shaping Configuration Register 1 066 00 A_TXDSHCFG2 TX Data Shaping Configuration Register 2 067 00 A_TXPOWERO TX Power Configuration Register 0 068 00 A_TXPOWER1 TX Power Configuration Register 1 069 00 A TXFDEV TX Frequency Deviation Register 06A 00 A PLLINTC1 PLL MMD Integer Value Register Channel 1 06B 934 User Manual 119 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Generated Registers Overview Table 11 Registers Reset Values cont d Register Short Name Register Long Name Offset Address Reset Value A_PLLFRACOC1 PLL Fractional Division Ratio Register 0 Channel 1 06C F3 A PLLFRAC1C1 PLL Fractional Division Ratio Register 1 Channel 1
127. TSLCO Offset External Data Slicer Configuration Register 0 041 7 5 4 3 Reset Value 02 Res BWSLOWSC BWSLOW r Ww Ww Field Bits Type Description Res 7 5 r for future use Reset 0 BWSLOWSC 4 3 Ww DC Offset Cancelation Bandwidth Scaling Selection for slow setting 00 1 2 01g 1 4 10 1 8 11g 1 16 Reset 0 BWSLOW 2 0 Ww DC Offset Cancelation Bandwidth Coefficient Selection for slow setting 000 1 8 001 1 16 010 1 24 011 1 32 100 1 40 101 1 48 110 FREEZE 111 n u Reset 2 Might be used for suppressing occasional pulse interferer Could be activated after decission of software CDR External Data Slicer Configuration Register 1 A_EXTSLC1 Offset External Data Slicer Configuration Register 1 042 User Manual 155 Reset Value 02 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview 4 3 2 0 Res BWFASTSC BWFAST Ww Ww Field Bits Type Description Res 7 5 for future use Reset 0 BWFASTSC DC Offset Cancelation Bandwidth Scaling Selection for fast setting 00 1 2 01 1 4 10 1 8 11g 1 16 Reset 0 BWFAST 2 0 DC Offset Cancelation Bandwidth Coefficient Selection for fast setting 000 1 8 001 1 16 010 1 24 011 1 32 100 1 40 101 1 48 110 FREEZE Might be used for suppressing occasional pulse inter
128. When A_CHCFG EXTROC 01 this setting is mapped to 34 010 Equal Bits Data Criterion When A_CHCFG EXTROC 01 this setting is mapped to 34 011 Wake Up on Symbol Sync Valid Data Rate Data Criterion The A_WUBCNT Register is not used in this mode 100 RSSI Level Criterion automatically selected when A CHCFG EXTPROC 10 101 Signal Recognition Level Criterion 110 Equal Zero Bits for Bi phase encodings Data Criterion When A_CHCFG EXTROC 01 this setting is mapped to 3 111 Equal One Bits for Bi phase encodings Data Criterion When A CHCFG EXTROC 01 this setting is mapped to 34 Reset 44 Wake Up Pattern Register 0 A WUPATO Offset Reset Value Wake Up Pattern Register 0 018 00 7 0 WUPATO w User Manual 133 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description WUPATO 7 0 Ww Wake Up Detection Pattern Bit 7 Bit 0 LSB in Bits Chips Reset 00 Wake Up Pattern Register 1 A WUPAT 1 Offset Reset Value Wake Up Pattern Register 1 019 00 7 0 WUPAT1 w Field Bits Type Description WUPAT1 7 0 W Wake Up Detection Pattern MSB Bit 15 Bit 8 in Bits Chips Reset 00 Wake Up Bit or Chip Count Register A_WUBCNT Offset Reset Value Wake Up Bit or Chip Count Register 01A 00 7 6 0 Res WUBCNT r w
129. X Power Configuration Register 1 A_TXPOWER1 Offset Reset Value TX Power Configuration Register 1 069 00 7 6 5 4 0 Res PENTE SIME POWHIGH r w w w User Manual 177 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description Res 7 r for future use Reset 0 FEDITHEN 6 w Falling edge dithering enable Og Disabled 1g Enabled Reset Op SLDITHEN 5 w ASK sloping dithering enable Og Disabled 13 Enabled Reset 04 POWHIGH 4 0 w Output power for data HIGH in ASK output power in FSK POWHIGH defines the number of enabled PA stages in FSK or during the high phase of ASK Reset 004 TX Frequency Deviation Register A_TXFDEV TX Frequency Deviation Register Offset Reset Value 06A 00 FDEVSCALE FDEV WwW Field Bits Type Description FDEVSCALE 7 5 w Scaling factor of the frequency deviation FDEV 000 Divide by 64 001 Divide by 32 010g Divide by 16 011 Divide by 8 100 Divide by 4 101 Divide by 2 110 Divide by 1 111 Multiply by 2 Reset 0 FDEV 4 0 w Frequency deviation selection factor Reset 004 PLL MMD Integer Value Register Channel 1 User Manual 178 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview A PLLINTC1 Offset Reset Value PLL MMD Integer Value R
130. actional Division Ratio Register 0 Channel 2 070 181 A PLLFRAC1C2 PLL Fractional Division Ratio Register 1 Channel 2 0714 181 A PLLFRAC2C2 PLL Fractional Division Ratio Register 2 Channel 2 072 182 A PLLINTC3 PLL MMD Integer Value Register Channel 3 073 182 A PLLFRACOC3 PLL Fractional Division Ratio Register 0 Channel 3 0744 183 A PLLFRAC1C3 PLL Fractional Division Ratio Register 1 Channel 3 0754 183 A PLLFRAC2C3 PLL Fractional Division Ratio Register 2 Channel 3 076 184 A PLLINTCA PLL MMD Integer Value Register Channel 4 0774 184 A PLLFRACOCA PLL Fractional Division Ratio Register 0 Channel 4 078 184 A PLLFRAC1CA PLL Fractional Division Ratio Register 1 Channel 4 0794 185 A PLLFRAC2CA PLL Fractional Division Ratio Register 2 Channel 4 07A 185 A RXPLLBW PLL Bandwidth Selection Register for RX Mode 07B 186 A TXPLLBW PLL Bandwidth Selection Register for TX Mode 07C 187 A PLLTST PLL Startup Time Register 07D 187 A ANTSW Antenna Switch Configuration Register O07E 188 A ADRSFCFG ADR Start Freeze Configuration Register O7F 189 A ADRTCFGO ADR Timeout Configuration Register 0 080 190 A_ADRTCFG1 ADR Timeout Configuration Register 1 081 190 A_ADRTCFG2 ADR Timeout Configuration Register 2 082 191 A_ADRTHRO ADR Threshold Register 0 083 191 A_ADRTHR1 ADR Threshold Register 1 084 192 SFRPAGE Special Function Register Page Register OAO 192 PPCFGO PPO and PP1 Configuration Register 0A1 193 PPCFG1 PP2 and PPRF Configur
131. an be triggered with the FIFO almost full interrupt to prevent an overrun The fill level of the FIFO where a FIFO almost full interrupt should be generated can be programmed in the RX FIFO Almost Full Level Register Architecture FIFO empty Data Clock push FIFO overflow 288 Bit FIFO Init FIFO INITFIFO Init FIFO at framestart Lock FIFO FIFOLK Controller Almost full level RXFIFOAFL Figure 33 Receive FIFO The write port is controlled by the Digital Receiver using the push command Writing data into the FIFO starts with the detection of a Telegram Start Identifier TSI The Write Address Pointer is incremented with each data clock signal generated by the Digital Receiver The read port is controlled by the SPI controller using the pop command Each bit read from the SPI controller increments the Read Address Pointer The Read and Write Address Pointers jump from their maximum value 287d to address zero Writing to the FIFO stops at EOM or after Sync loss FIFO Controller User Manual 45 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX System Interface FIFO Lock Behavior The FIFO possesses a lock mechanism that is enabled via the SFR bit FIFOLK in the Receiver Control register RX Control Register If this mechanism is enabled the FIFO will enter a FIFO Lock state at the detection of the End of Message EOM criterion During the time that the FIFO is lo
132. anchester encoded signal with a Manchester duty cycle of 5096 in case of ASK modulation An RF signal generator usually displays the level of the unmodulated carrier P This has following consequences for the different modulation types Table 9 Power Level Modulation Realization with RF Power level schema signal generator specification value ASK AM 100 P Pearrier 60B Pulse modulation ASK P Parier OOkK FSK FM with deviation f f4 P P f carrier f ff f we carrier r carrier For power levels in sensitivity parameters given as average power this is noted by the unit dBm Peak power can be calculated by adding 3 dB to the average power level in case of ASK modulation and a Manchester duty cycle of 50 6 15 4 Symbols of SFR Registers and Control Bits CONTROL Symbolizes unique SFR registers or SFR control bit s which are common for all configuration sets Symbolizes SFR registers or SFR control bit s with Multi Configuration capability protocol specific In case of SFR register the name starts with A_ B_ C_ or D depending on the selected configuration This is generally noted by the prefix x_ Figure 85 SFR Symbols User Manual 110 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Generated Registers Overview Generated Registers Overview Table 10 Registers Overview
133. ared at Reset only Reset 00 RSSI Peak Detector Readout Register RSSIPRX Offset Reset Value RSSI Peak Detector Readout Register 0D8 00 7 0 RSSIPRX rc Field Bits Type Description RSSIPRX 7 0 rc RSSI Peak Level during Receiving Tracking is active when Digital Receiver is enabled Set at higher peak levels than stored Cleared at Reset and SPI read out Reset 00 RSSI Payload Peak Detector Readout Register RSSIPPL Offset RSSI Payload Peak Detector Readout 0D9 Register Reset Value 00 User Manual 230 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview 7 0 RSSIPPL I l ll ll Field Bits Type Description RSSIPPL 7 0 r RSSI Peak Level during Payload Tracking starts after FSYNC PKBITPOS Set at every EOM Cleared at the Reset only Reset 00 Payload Data Length Register PLDLEN Offset Reset Value Payload Data Length Register ODA 00 7 0 PLDLEN r Field Bits Type Description PLDLEN 7 0 r Payload Data Length stored at TSI detection of the next message PLDLEN 9 0 RFPLLACC PLDLEN MSB amp PLDLEN LSB Cleared with INIT FIFO Min 000h 0 bits received Max 3FFh 1023 bits received Reset 00 ADC Result High Byte Register ADCRESH Offset Reset Value ADC Result High Byte Register ODB 00 7 0 ADCRESH rc User Manual 231 Revision 1 0 17 02 2012 Infineon TDA5340 Smart
134. asynchronous transparent mode has to be used The data which are provided on the SDI line are directly modulated Ncs JJ SCK static to reduce noise SCK running incr noise J sck PL Ltt ltt data item 1 data item 2 data item 3 data item 4 lata item n 1 data item n jt 7Tyleylyl yli3yl2yM 0 ii ai EEO ELI Instruction wrt0 1 SDO m doi A LLL LE ARE 0 when wrt0 else 1 high impedance Z Base band data 7 l1 PA enable Figure 24 Asynchronous Transparent Mode Attention If BT of Gaussian filter is less than 0 5 data edge uncertainties may occur 4 4 Digital Control 4 wire SPI Bus The control interface used for device control and data transmission is a 4 wire SPI interface e NCS select input active low e SDI data input e SDO data output e SCK clock input Data bits on SDI are read in at rising SCK edges and written out on SDO at falling SCK edges Level Definition logic 0 low voltage level logic 1 high voltage level Note It is possible to send multiple frames while the device is selected It is also possible to change the access mode while the device is selected by sending a different instruction Note In all bus transfers MSB is sent first except for the received data read from the FIFO There the bit order is given as first bit received is first bit transferred via the bus User Manual 41 Revision 1 0 17 02 2012
135. ating a voltage proportional to absolute temperature This voltage is converted into a digital value by the ADC The function TEMP function ADC value can be idealized by a straight line User Manual 66 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description The accuracy of the temperature sensor is mainly influenced by the used calibration routine In general it has to be stated that a calibration routine is necessary to achieve an acceptable temperature accuracy The achievable temperature accuracies are listed below e Uncalibrated The accuracy is low at 23 C 1 point calibration can be done at any temperature point A accuracy of 4 5 C can be achieved Temperature Measurement procedure e Set chip to SLEEP mode Setregister ADC Input Selection Register to Temperature Wait for at least 100 us for 1st readout Readout ADC via ADC Result High Byte Register and ADC Result Low Byte Register Repeat the readout process 10 times and create average value Measuring temperature is recommended in Sleep Mode and Transmit Mode only and is fully functional in this modes It is not recommended to measure Temperature during Run Mode Slave or Self Polling Mode as the RF input signal cannot be processed in that case and other side effects will occur Temperature or VDDD measurement itself would be working OK in the operating modes Run Mode Slave or Self Polling Mode but changing the ADC inp
136. ation Register 0A2 194 PPCFG2 PPx Port Configuration Register 0A3 195 PPCFG3 PPRF_RSSI Configuration Register OAM 196 User Manual 114 Revision 1 0 17 02 2012 TDA5340 SmartLEWIS TRX Infineon Generated Registers Overview Table 10 Registers Overview cont d Register Short Name __ Register Long Name Offset Address Page Number RXRUNCFGO RX RUN Configuration Register 0 0A5 197 RXRUNCFG1 RX RUN Configuration Register 1 0A6 198 CLKOUTO Clock Divider Register 0 OAT7 199 CLKOUT1 Clock Divider Register 1 0A8 200 CLKOUT2 Clock Divider Register 2 0A9 200 ANTSW Antenna Switch Configuration Register OAA 201 RFC RF Control Register 0AB 202 XTALCALO XTAL Coarse Calibration Register OAE 202 XTALCAL1 XTAL Fine Calibration Register OAF 203 RSSICFG RSSI Configuration Register OBO 203 ADCINSEL ADC Input Selection Register 0B1 204 RSSIOFFS RSSI Offset Register 0B2 205 RSSISLOPE RSSI Slope Register 0B3 205 DELOGSFT DELOG Shift Register 0B4 206 CDRDRTHRP CDR Data Rate Acceptance Positive Threshold OB5 206 Register CDRDRTHRN CDR Data Rate Acceptance Negative Threshold OB6 207 Register IMO Interrupt Mask Register 0 OB7 207 IM1 Interrupt Mask Register 1 OB8 208 IM2 Interrupt Mask Register 2 0B9 209 SPMIP Self Polling Mode Idle Periods Register OBA 210 SPMC Self Polling Mode Control Reg
137. ation pattern the receiver found the symbol synchronization and the consecutive equal bits are bridged by the Clock Data Recovery using the Timing Violation Window which can be selected in the register Timing Violation Window Register The maximum number of consecutive equal bits are limited by User Manual 105 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description Timing Violation Window Register configuration max 31 Bits Peak Memory Filter Up and Down coefficient in case of ASK see Chapter 6 13 2 For NRZ the Slicer Configuration Register has to be set to Ox8C 6 15 Definitions 6 15 1 Definition of Bit Rate The definition for the bit rate in the following description is symbols bitrate 20 28 If a symbol contains n chips for Manchester n 2 for NRZ n 1 the chip rate is n times the bit rate chiprate n bitrate 6 15 2 Definition of Manchester Duty Cycle Several different definitions for the Manchester duty cycle MDC are in place To avoid wrong interpretation some of the definitions are given below User Manual 106 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description Level based Definition MDC Duration of H level Symbol period MDC 50 i i 1 n 0 0 1 MDC gt 50 T gt i lt T i chip Figure 82 Definition A Level based definition This definition determinates the duty cycle to
138. ature is utilized to reduce the spectrum density out of the used channel and can be enabled by using the ASKSLOPEN bit in the TX Configuration Regsiter The sloping is done between the low power level and the high power level see Power Level Programing on Page 58 by switching on the internal power User Manual 67 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description amplifier stages sequentially The ramping slope can be defined in the ASLDIV in the registers TX Data Shaping Configuration Register 0 and TX Data Shaping Configuration Register 2 following the equation below ASLDIV Jes SlopeWidth o DataRate POWHIGH POWLOW 8 Where fsys equals to the System frequency which is 21 948717 MHz The Slope Width is the sloping time given in percentage of the bit duration of the Data Rate The POWHIGH and POWLOW values are the two power levels used in the ASK modulation For the Slope width calculation keep in mind that with BiPhase encoding one Bit consists of two Chips The dithering feature is a further mechanism to reduce discrete frequencies within the shaped ASK OOK frequency spectrum and can be enabled in the TX Power Configuration Register 1 selected using the SLDITHWD in the TX Power Configuration Register 0 The maximum dithering width is defined in following formula SLDITHWD DitherValue DitherValue lt ASLIY 9 The recommended dithering value is the most closest Dithe
139. c2hex f LO f XTAL PLLINT 2421 Reset 074 PLL Fractional Division Ratio Register 2 Channel 4 A_PLLFRAC2C4 Offset Reset Value PLL Fractional Division Ratio Register 2 07A 09 Channel 4 User Manual 185 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX 5 RegistersGenerated Registers Overview Res PLLFCOM PC4 PLLFRAC2C4 Ww Ww Field Bits Type Description Res 7 6 for future use Reset 0 PLLFCOMPC4 Fractional Spurii Compensation enable for Channel 3 0s 1B Disabled Enabled Reset 0 PLLFRAC2C4 4 0 Synthesizer channel frequency value 21 bits bits 20 16 fractional division ratio for Channel 3 PLLFRAC 20 0 dec2hex f_LO f_XTAL PLLINT 2421 Reset 09 PLL Bandwidth Selection Register for RX Mode A_RXPLLBW Offset Reset Value PLL Bandwidth Selection Register for RX 07B OCh Mode 7 6 4 3 0 T T T Res LFTRIM CPTRIM r w w Field Bits Type Description Res 7 r for future use Reset 0 LFTRIM 6 4 w PLL LF Trim value in RX mode 000 0015 010 011 100 101 1105 111g Rz 9 94 kOhm R4 3 92 kOhm Rz 10 48 kOhm R4 4 06 kOhm Rz 11 38 kOhm R4 4 44 kOhm Rz 13 46 kOhm R4 5 24 kOhm Rz 15 26 kOhm R4 6 04 kOhm Rz 18 8 kOhm R4 7 36 kOhm Rz 26 64 kOhm R4 10 6 kOhm Rz 37 4 kOhm R4 14 7 kOhm Reset Op User
140. ceive SPI TX mode PLL cal finished Transparent TX command SPI Finish TX TX PLL init with FIF g empty enabled NCS line to high Go to Idle after TX enabled TX fail if Failsafe enabled TX FIFO empty Interrupt Figure 6 Transmit Modes To enter the TX Mode the transceiver needs to start first the analog voltage regulators and the PLL The host controller needs to set the MSEL operating mode bit group in the chip mode control register to enter the TX Ready Mode The entrance of the TRM is indicated by an interrupt on the NINT line which shows the host controller that the transmitter has finished the startup procedure The Transmit Active Mode TAM enables a continuous data transmission where the baseband data are provided by the host controller or from the loaded on chip transmit FIFO The TAM must be entered out of the TRM This can be done via several methods The transparent TX command is entering the TX Transparent Mode while base band data must be provided on the SDI line see TX Transparent Mode on Page 40 The transceiver is configured in direct transmit mode This means the Transmit Mode starts right after Transmit Ready Mode as long the TX FIFO is not empty see TX FIFO Modes on Page 39 The host controller is using the start bit mode of the transceiver Within this mode the TFM is entered after enabling the TX start bit in the transmit mode control register TX
141. cked it is not possible to receive additional data in Run Mode Self Polling This means that it is only possible to detect another wake up in the Self Polling Mode but no more data in the Run Mode Self Polling This will guarantee that only the first complete data packet is stored in the FIFO Enabling the FIFOLK also locks the digital receiver chain at EOM until release from FIFO lock state The FIFO will remain locked unless one of three conditions occurs The remaining contents of the FIFO are completely read out via the SPI The SFR control bit FIFOLK is cleared in the RX Control Register register NITFIFO at Cycle Start is set in the RX Control Register and FSM is switched to Run Mode Slave or FSM switches from Self Polling Mode to Run Mode Self Polling INITFIFO Init Fifo Cycle Start 1 Accept Data EOM 0 EOM 1 EOM 1 FIFOLK 0 FIFOLK 1 Wait till FIFO is empty FIFOLK 0 FIFO Empty 1 FIFO Empty 0 FIFOLK 1 Figure 34 FIFO Lock Behavior FIFO Status Word The FIFO Status Word is attached at the end of a FIFO SPI transmission and shows if there was an overflow and how many valid data bits were transmitted The number of valid FIFO bits is indicated at bit positions SO to S5 S6 of the Status Word is always undefined 32 FIFO Bits Status Word Figure 35 SPI Data FIFO Read User Manual 46 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX System Interface If the W
142. dB 8 4 5 dB 200 kHz 32 63 9 dB 6 2 5 dB 125 kHz 32 63 9 dB 5 0 5 dB 80 kHz 32 51 1 dB 11 6 2 8 dB 50 kHz 32 51 1 dB 9 5 0 dB 1 This value needs to be used for calculating the register values For the full RSSI input range the values in Table 7 can be applied User Manual 75 Revision 1 0 17 02 2012 Infineon Table 7 TDA5340 SmartLEWIS TRX AGC Setting 2 Block Description AGC Threshold Hysteresis 21 3 dB AGC Digital RSSI Gain Correction 15 5 dB BPF RSSI Offset AGC Threshold AGC Threshold AGC Threshold Compensation Offset Low Up 300 kHz 18 63 9 dB 5 1 200 kHz 18 51 1 dB 11 7 125 kHz 18 51 1 dB 10 5 80 kHz 4 51 1 dB 9 5 50 kHz 32 51 1 dB 9 5 1 This value needs to be used for calculating the register values Attack and Decay coefficients of Peak memory filter PMF UP amp PMF DOWN The settling time of the loop is determined by means of the integrator gain coefficients PMFUP and PMFDN in Peak Memory Filter Up Down Factor Register which need to be calculated from the wanted attack and decay times The ADC is running at a fixed sampling frequency of 274kHz Therefore the integrator is integrating with PMFUP 274k per second i e time constant is 1 PMFUP 274k The attack times are typically 16 times faster than the decay times Typical calculation of the coefficients by means of an example PMFUP 2 round In AttTime BitRa
143. de the baud rate generator data request strobe can be either signaled with a 50 duty cycle using the TXSTR signal on a port pin or as a interrupt The maximum achievable baseband data rate is defined by the interrupt duration 12 us which is 80 kBit s Interrupt Mask bit 5 IMTXR in Interrupt Mask Register 2 Interrupt Status bit 5 TXR in Interrupt Status Register 2 TX FIFO Almost Empty Interrupt For continuous data transmission where the payload data length exceeds the FIFO size the FIFO almost empty interrupt can be used to trigger a refill of the FIFO to keep the transmission ongoing Interrupt Mask bit 3 IMTXAE in Interrupt Mask Register 2 nterrupt Status bit 3 TXAE in Interrupt Status Register 2 TX FIFO Almost Full Interrupt The FIFO almost full interrupt can be utilized to avoid a congestion of the TX FIFO by the host controller Interrupt Mask bit 4 IMTXAF in Interrupt Mask Register 2 Interrupt Status bit 4 TXAF in Interrupt Status Register 2 User Manual 51 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX System Interface TX FIFO Empty Interrupt With the FIFO empty interrupt the host controller can be informed that the transmission has finished and the TDA5340 is now ready to start a new transmission or go to another main state Interrupt Mask bit 2 IMTXEMPTY in Interrupt Mask Register 2 Interrupt Status bit 2 TXEMPTY in Interrupt Status Register
144. dpass limiter completes the RF IF path of the receiver For Single Channel applications with relaxed requirements to selectivity a single down conversion low IF scheme can be selected A very high efficient Class C E Power amplifier with output levels of 14 dBm combined with a Gaussian Filter for GFSK and amplitude ramping functions for shaped ASK is implemented A high resolution power adjustment can be done to trim the output power for highest system power savings The data can be either shifted out of an on chip transmit FIFO or directly provided on an input pin An RSSI generator delivers a DC signal proportional to the applied input power and is also used as an ASK demodulator Via an anti aliasing filter this signal feeds an ADC with 10 bits resolution The harmonic suppressed limiter output signal feeds a digital FSK demodulator This block demodulates the FSK data and delivers an AFC signal which controls the divider factor of the PLL synthesizer A digital receiver which comprises RSSI peak detectors a matched data filter a clock and data recovery a data slicer a frame synchronization and a data FIFO decodes the received ASK or FSK data stream The recovered data and clock signals are accessible via 2 separate pins The FIFO data buffer is accessible via the SPI bus interface The crystal oscillator serves as the reference frequency for the PLL phase detector the clock signal of the Sigma Delta modulator and divided by two as the 2nd local
145. duced which provides a very stable slicing threshold Within the External Data Slicer Configuration Register 1 the wide bandwidth with fast settling can be defined and the External Data Slicer Configuration Register 0 provides the functionality to set the tighter bandwidth with a very stable slicing threshold DC Offset Cancelation for ASK In ASK the bandwidth within both areas should be set to the same value due to the fact that in ASK are no huge DC offsets are expected 6 13 11 2 Median Filter The Median Filter can be enabled with the MEDFEN bit within the External Data Slicer Configuration Register 2 and will be used to bridge single samples at the output of the One Chip Matched Filter and Low Pass Filter to avoid glitches on the output of the slicer 6 13 12 Matched Filter Output DATA Matched Filter The Matched Filter has an inherent DC cancellation with a very fast settling time which can be applied only to a bi phase encoded input data stream Due to the nature of the Matched Filter the output has an edge delay which is depending of the input data sequence Therefore an edge detection with a chip bit duration measurement can not be applied to this output The figure below shows the output data of the Matched Data Filter and the output of the DATA Matched Filter in comparison to the input data Input Data L two Chip matched Filter output Data Matched Filter slicer output Figure 61 DATA Matched Filter Output As
146. e One or Zero The Bit Change Detector checks the incoming Bi phase coded bit data stream for changes from Zero to One or One to Zero The Pattern Detector searches for a pattern with 16 chips bits length within the Wake up Window The pattern is configurable via the Wake Up Pattern Register 0 and Wake Up Pattern Register 1 The selection of 1 out of 4 wake up data criteria is done via the Wake Up Control Register The following table shows the different Wake Up criteria in combination with the baseband modes User Manual 93 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Block Description Table 8 Wake Up Criteria Baseband Mode Base Band Mode Wake Up Criteria Pattern Detection Pattern Detection Random Bit Equal Bit Detection Bit Mode Chip Mode Detection Normal Mode OK abort Wake Up OK OK abort Wake Up OK abort Wake Up search at Code search at CV search at CV Violation CV NRZ Mode OK abort Wake Up OK 3 out of 6 Detection alternating Bit search at 4 equal abort Wake Up detection chips search at 4 equal chips Bit Slicer Mode not supported OK OK abort Wake Up OK abort Wake Up search at 4 equal search at 3 equal chips chips Pattern Detection The incoming signal must match a dedicated pattern of up to 8 bits or 16 chips in Wake Up Pattern Chip Mode When the WUW chip counter elapses the search is stopped The higher the setting of Wa
147. e ID Register 2 002 00 User Manual 116 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Generated Registers Overview Table 11 Registers Reset Values cont d Register Short Name Register Long Name Offset Address Reset Value A_MID3 Message ID Register 3 003 00 A_MID4 Message ID Register 4 004 00 A MID5 Message ID Register 5 005 00 A MID6 Message ID Register 6 006 00 A MID7 Message ID Register 7 007 00 A MID8 Message ID Register 8 008 00 A MID9 Message ID Register 9 009 00 A MID10 Message ID Register 10 00A 00 A MID11 Message ID Register 11 00B 00 A MID12 Message ID Register 12 00C 00 A MID13 Message ID Register 13 00D 00 A MID14 Message ID Register 14 O0E 00 A MID15 Message ID Register 15 OOF 00 A MID16 Message ID Register 16 010 00 A MID17 Message ID Register 17 0114 00 A MID18 Message ID Register 18 012 00 A MID19 Message ID Register 19 013 00 A MIDCO Message ID Control Register 0 014 00 A MIDC1 Message ID Control Register 1 015 00 A IF1 IF1 Register 016 A3 A WUC Wake Up Control Register 017 04 A WUPATO Wake Up Pattern Register 0 0184 00 A_WUPAT1 Wake Up Pattern Register 1 0194 00 A_WUBCNT Wake Up Bit or Chip Count Register 01A 00 A WURSSITH1 RSSI Wake Up Threshold for Channel 1 Register 01B 00 A WURSSIBL1 RSSI Wake Up
148. e integrity of the stored data and configuration can no longer be guaranteed thus a reset is generated While the supply voltage stays between the brownout and the functional threshold of the chip the NINT signal is forced to low When the supply voltage drops below the functional threshold the levels of all digital output pins are undefined When the supply voltage raises above the brownout threshold the IC generates a high pulse at NINT and remains in the reset state for the duration of the reset time When the IC leaves the reset state the Interrupt Status registers are set to OxFF and the NINT signal is forced to low Now the IC starts operation in the SLEEP Mode ready to receive commands via the SPI interface The NINT signal will go high when one of the Interrupt Status registers is read for the first time 6 3 RF IF Receiver The receiver path uses a double down conversion super heterodyne low IF architecture where the first IF frequency is located at 10 7 MHz and the second IF frequency at 274 kHz For the first IF frequency an adjustment free image frequency rejection is realized by means of two l Q mixers followed by a second order passive polyphase filter centered at 10 7 MHz PPF The l Q oscillator signals for the first down conversion are delivered User Manual 55 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description from the PLL synthesizer The frequency selection in the first IF domain
149. e stages are activated and the higher the frequency the higher the overall current consumption of the preamplifiers 6 4 2 Duty Cycle Control The control of Duty Cycle leads to control of the averaged RF output power by changing the conductive angle of the power amplifier and contributes to further reduction of the current consumption It is worth to be noted that the decreasing conduction angle values lead to decrease of power consumption but due to the short and high amplitude current pulses the level of RF harmonics on n fcarrier frequencies tends to rise Proper measures filtering must be taken to maintain harmonics level rejection The duty cycle can be programmed from 25 to 37 5 in 5 steps in the TX RF Configuration Register The higher the selected duty cycle the higher the current consumption and output power 6 5 Crystal Oscillator and Clock Divider The crystal oscillator is a Pierce type oscillator An automatic amplitude regulation circuitry allows the oscillator to operate with minimum current consumption In SLEEP Mode where the current consumption should be as low as possible the load capacitor must be small and the frequency is slightly de tuned therefore all internal trim capacitors are disconnected The internal capacitors are controlled by the crystal oscillator calibration XTAL Coarse Calibration Register and XTAL Fine Calibration Register With a binary weighted capacitor array the necessary load capacitor can be s
150. eceiver The digital baseband receiver comprises a matched data filter a clock and data recovery a data slicer a line decoder a wake up generator a frame synchronization and a data FIFO The recovered data and clock signals are accessible via 2 separate pins The FIFO data buffer is accessible via the SPI bus interface ssyne TMCDS Matched Filter DFE Data 121 411 Fractional SRC in 8 samples chip DFE Data Strobe out 8 samples chip in 8 16 samples chip data rate dependent fSou fSin 0 5 1 0 XSTR RXD POTP DATA DATA MATCHFIL Sliced RAW Data for 2 tered 2 chip Matched Fil chip Matched Fil extemal processing Data for extemal processing TMRDS TMMF Figure 58 Functional Block Diagram Digital Baseband Receiver 6 13 9 Data Filter and Signal Detection The data filter is a matched filter MF The frequency response of a matched filter has ideally the same shape as the power spectral density PSD of the originally transmitted signal therefore the signal to noise ratio SNR at the output of the matched filter becomes maximum The input sampling rate of the baseband receiver has to be between 8 and 16 samples per chip The oversampling factor within this range is depending on the data rate The MF has to be adjusted accordingly to this oversamp
151. eck for the right data rate to which the system can be synchronized If there is no synchronization to the programmed data rate within the so called Sync Search Time Out SYSRCTO the wake up search for this channel is stopped If synchronization to the data rate is possible and not lost again the TDA5340 waits if the wake up criterion is fulfilled If the wake up criterion is not fulfilled in worst case if the last bit of an expected wake up data pattern is wrong the wake up procedure for this channel is stopped and the TDA5340 tries to synchronize on the next channel or falls back to sleep That means that the effective search time and consequently the receiver active time is significantly shorter and power consumption is reduced when no input signal is present Calculation of Sync Search Time Out can be found in Clock and Data Recovery CDR on Page 88 The On and Off time setting is different from the Constant On Off Time Mode The entire On time is defined in the Self Polling Mode On Time Config A Register 0 and Self Polling Mode On Time Config A Register 1 Regardless of the numbers of RF channels and whether or not Multi or Single Configuration is used the On time is defined with the Configuration A On Timer The deactivation of the receiver can happen at different times but this event does not influence the timer stage because the On time is still the same So the master period is constant The following scenarios are the same as
152. ecognition Sync Pattern RSSI Recognition Sync Pattern POF nro N xv N xv POTP RXD RST vi viv v xv TMCDS CH DATA enor vi viv vi viv TMMF DATA_MATCHFIL 4 TMRDS DATA 4 Legend N available 7 not available Figure 15 Receive Modes There are 4 possible transmit modes Start Bit FIFO Mode SBF Direct FIFO Mode DF Synchronous Transparent Mode STM Asynchronous Transparent Mode ASTM User Manual 35 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX System Interface 4 3 1 Packet Oriented Receive Modes The TDA5340 features the so called Packet Oriented Mode which supports the autonomous reception of data telegrams The Packet Oriented Mode provides a high level System Interface which greatly simplifies the integration of the transceiver in data centric applications In Packet Oriented Mode the data interface is based on chunks of synchronous data which are received in packets In the easiest way the Application Controller only reacts on the synchronous data it receives The receiver autonomously handles the line decoding and the de framing of these data and supports the timed reception of packets Data is buffered in a receive FIFO and can be read out via the data interface Further the receiver provides support for the identification of wake up signals Packet Oriented FIFO Mode POF In Packet Oriented FIFO Mode data
153. ected length 00 Disabled 01 1 chip 10 5 chips 11 10 chips Reset 04 SDBCNTR 1 0 WwW Signal Detector Bridging Counter for Run Mode Signal detector output will be bridged for a selected length 00 Disabled 01 1 chip 10 5 chips 11 10 chips Reset 0 FSK Noise Detector Threshold Register User Manual 160 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview A_NDTHRES Offset Reset Value FSK Noise Detector Threshold Register 04B 00 7 0 NDTHRES w Field Bits Type Description NDTHRES 7 0 w FSK Noise Detector Threshold Reset 00 FSK Noise Detector Configuration Register A_NDCONFIG FSK Noise Detector Configuration Register Offset 04C Reset Value 074 NDRSEL NDSEL Res Ww Field Bits Type Description NDRSEL 7 6 w 2 7 2 6 10 2 5 ilg 24 Reset 0 00 01 FSK Noise Detector Range Selection NDSEL 5 4 005 ASK 01 10g We Reset 0 Signal and Noise Detector Selection Signal detection Squelch only This mode is recommended for Noise detection only Signal and noise detection simultaneously Signal and noise detection simultaneously but the FSK noise detect signal is valid only if the SIGDETLO threshold is exceeded This is the recommended mode for FSK Clock and Data Recovery P Configuration Register User Manual 161 Revision 1 0 17 02 2012
154. ection and initiates a power on reset The regulator for the analog section is controlled by the Master Control Unit and is active only when the RF section is active To provide data integrity within the digital units a brownout detector monitors the digital supply In case a voltage drop of VDDD below approximately 2 45 V is detected a RESET will be initiated A typical power supply application for a 3 3 Volts and a 5 Volts environment is shown in the figure below 2 20 a aS dci c LIC ne gee ee ee er cT X Fe IEEE Se l i 1 L I l I i l i L i I i i i i i i TDA5340 i i TDA5340 i PA i PA i i voprr VODSV i 4t Q VDDRF aoe i L I l 1 i I 470n i l VDDA VDDD VDDA VDDD I 3 3V acini 5V l p VDDD1V5 ac VDDD1V5 elke T L I I bx 400n NDA 100n L I I 1 i i i i GNDRF GNDD GNDRF GNDD i i i 1 1 i I i TENET UE ee AA AE z posso ee a E E E A a Supply Application in 3 3V environment Supply Application in 5V environment When operating in a 5V environment the voltage drop across the voltage regulators 5 gt 3 3V has to be limited to keep the regulators in a safe operating range Resistive or capacitive loads in excess to the scheme shown above on pins VDDA and VDDD are not recommended Figure 39 3 3 Volts and 5 Volts Applications 6 2 Chip Reset Power down and power on are controlled by the P ON pin A LOW at this pin k
155. ed With the fractional N PLL synthesizer and a selectable Gaussian data shaping filter a very accurate and precise FSK modulation is achieved The transmit data can be either stored in a separate FIFO data buffer or directly provided via the bus interface The receiver portion is able to scan autonomously for incoming data by using the self polling feature while the host micro controller can stay in power down mode which reduces the system current consumption significantly The digital baseband processing unit together with the high performance downconverter is the key element for the exceptional sensitivity performance of the device which takes it close to the theoretical top performance limits It comprises signal and noise detectors matched data filter clock and data recovery data slicer and a format decoder It demodulates the received ASK or FSK data stream and recovers the data clock out of the received data with very fast synchronization times which can then be either accessed via separate pins or used for further processing like frame synchronization and intermediate storage in the on chip FIFO The RSSI output signal is converted to the digital domain with an on chip ADC All these signals are accessible via the 4 wire SPI interface bus Up to 4 pre configured telegram formats with different data rates and filter bandwidths can be stored into the device offering independent pre processing of the received and transmitted data The downconvert
156. eeps the IC in Power Down Mode All voltage regulators and the internal biasing are switched off A high transition at P ON pin activates the appropriate voltage regulators and the internal biasing of the chip A power up reset is generated at the same time User Manual 54 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description Supply Voltage 4 at VDDD Pin 3V 4 Reset Brownout Threshold typ 2 45V T Functional Threshold typ 2V treset Internal Reset P Voltage at PP2 Pin 4 NINT Signal 3V 4 Reset Brownout Threshold typ 2 45V T Functional Threshold typ 2V gt ty A LOW is i Lavalier A generated at 4 t H NINT signal PP2 pi A is undefined pin A HIGH is uC reads NINT signal L Interrupt Supply voltage generated at pe Supply voltage falls below falls below pin Status Register Reset BrownoutThreshold FunctionatThreshold NINT signal A LOW is Supplyvoltage generated at A LOW is generated rises above ii at NINT signal FunctionalThreshold NINT signal Figure 40 Reset Behavior Brownout Event A second source that can trigger a reset is a brownout event This brownout reset can be enabled and disabled in the Chip Mode Control Register by controlling the EN3V3DET bit Whenever the integrated brownout detector measures a voltage drop below the brownout threshold approx 2 45V on the digital supply th
157. egister 0 OB7 00 IM1 Interrupt Mask Register 1 OB8 00 IM2 Interrupt Mask Register 2 0B9 00 SPMIP Self Polling Mode Idle Periods Register OBA 01 SPMC Self Polling Mode Control Register OBB 08 SPMRT Self Polling Mode Reference Timer Register OBC 01 SPMOFFTO Self Polling Mode Off Time Register 0 OBD 01 SPMOFFT1 Self Polling Mode Off Time Register 1 OBE 00 SPMONTAO Self Polling Mode On Time Config A Register O OBF 01 SPMONTA1 Self Polling Mode On Time Config A Register 1 0CO 00 SPMONTBO Self Polling Mode On Time Config B Register O OC1 01 SPMONTB1 Self Polling Mode On Time Config B Register 1 0C2 00 SPMONTCO Self Polling Mode On Time Config C Register 0 0C3 01 SPMONTC1 Self Polling Mode On Time Config C Register 1 0C44 00 SPMONTDO Self Polling Mode On Time Config D Register 0 0C5 01 SPMONTD1 Self Polling Mode On Time Config D Register 1 0C6 00 EXTPCMD External Processing Command Register 0C7 00 TXC TX Control Register 0C8 01 RXC RX Control Register 0C9 84 CMC Chip Mode Control Register OCA 10 TXCHNL TX Channel Configuration Register OCB 00 PLLCFG PLL Configuration Register 0CC 28 VACERRTH VCO Autocalibration Error Threshold OCD 00 PRBS PRBS Starting Value Register OCE 50 TXFIFOAEL TX FIFO Almost Empty Level Register OCF 00 TXFIFOAFL TX FIFO Almost Full Level Register 0DO0 00 RXFIFOAFL RX FIFO Almost Full Level Register 0D1 00 PLLSTAT PLL Status Register 0D2 00
158. egister Channel 1 06B 93 7 6 5 0 BANDSEL PLLINTC1 w w Field Bits Type Description BANDSEL 7 6 w Frequency Band Selection 00 not used 01 863 960 MHz 10 415 495 MHz 11g 300 320 MHz Reset 2 PLLINTC1 5 0 WwW SDPLL Multi Modulus Divider Integer Offset value for Channel 1 PLLINT 5 0 dec2hex INT f_LO f_XTAL Reset 134 PLL Fractional Division Ratio Register 0 Channel 1 A_PLLFRACOC1 Offset Reset Value PLL Fractional Division Ratio Register 0 06C F3 Channel 1 7 0 PLLFRACOC1 w Field Bits Type Description PLLFRACOC1 7 0 WwW Synthesizer channel frequency value 21 bits bits 7 0 fractional division ratio for Channel 1 PLLFRAC 20 0 dec2hex f LO f XTAL PLLINT 2421 Reset F3 PLL Fractional Division Ratio Register 1 Channel 1 A PLLFRAC1C1 Offset Reset Value PLL Fractional Division Ratio Register 1 06D 07 Channel 1 User Manual 179 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview 7 0 PLLFRAC1C1 li ll ll ll w Field Bits Type Description PLLFRAC1C1 7 0 w Synthesizer channel frequency value 21 bits bits 15 8 fractional division ratio for Channel 1 PLLFRAC 20 0 dec2hex f LO f XTAL PLLINT 2421 Reset 074 PLL Fractional Division Ratio Register 2 Channel 1 A PLLFRAC2C1 Offset Reset Value PLL Fractional Division Ratio Reg
159. elected Whenever a XTALCALx register value is updated the selected trim capacitors are automatically connected to the crystal so that the frequency is precise at the specified value Step size is 1 pF The SFR control bit XTALHPMS in the Clock Divider Register 2 can be used to activate the High Precision Mode also during SLEEP Mode Setting automatically controlled 1pF step size XTALCALO XTALCAL1 XTALHPMS DGND Oscillator Core Binary weighted Capacitor Array Binary weighted Capacitor Array XTAL1 XTAL2 Figure 45 Crystal Oscillator User Manual 59 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description External Clock Generation Unit A built in programmable frequency divider can be used to generate an external clock source out of the crystal reference The 20 bit wide division factor is stored in the Clock Divider Register 0 Clock Divider Register 1 and Clock Divider Register 2 The minimum value of the programmable frequency divider is 2 This programmable divider is followed by an additional divider by 2 which generates a 50 duty cycle of the CLK_OUT signal So the maximum frequency at the CLK_OUT signal is the crystal frequency divided by 4 The minimum CLK_OUT frequency is the crystal frequency divided by 271 To save power this programmable clock signal can be disabled by the SFR control bit CLKOUTEN in Clock Divider Register 2 In th
160. eneral purpose output is limited to 300 pA All the Signals listed in Table 4 can be inverted separately for each Port Pin in the register PPx Port Configuration Register High Power Pad enable The PPO PP1 PP2 and PPRF Pins has the possibility to increase the driving capability from 500pA to 4mA each If one of the Pins needs to drive for example an external LNA the driving capability on this pin can be increased to supply the external LNA directly with the RX RUN signal The driving capability can be increased for each PPX pin separately in the register PPx Port Configuration Register The increase of the driving capability should be just enabled if it is necessary due to fast transients if the pin is not loaded thus possibly increasing the digital noise in the application Table 4 Port Pin Output Selection Selection Name Function OxOh CLK OUT Clock Out Signal Ox1h RX RUN Receiver enabled Ox2h NINT Interrupt Signal Ox3h ANT EXTSW1 External Antenna Switch Signal Ox4h ANT EXTSW2 External Antenna Switch Signal Ox5h DATA Receiver Raw Data Slicer Output Ox6h DATA_MATCHFIL Receiver Matched Filter Output Ox7h not used Ox8h CH_DATA Receiver Data Output of Clock Data Recovery Ox9h CH STR Receiver recovered Data Strobe Output of Clock Data Recovery OxAh RXD Receiver line decoded Data output OxBh RXSTR Receiver Data Strobe of line decoded Data OxCh TXSTR Baud Rate Generator Data Clock OxDh
161. er can be also configured to single conversion mode at moderately reduced selectivity and image rejection performance but at the advantage of saving the external IF filter User Manual 10 Revision 1 0 17 02 2012 1 1 TDA5340 In fineon SmartLEWIS TRX Introduction Key Features Transceiver Multiband Multichannel 300 320 MHz 415 495 MHz 863 960 MHz High receiver sensitivity better than 116 dBm Power amplifier with up to 14 dBm output power Very Low Current consumption Receive Mode 12 mA typ Transmit Mode at 10 dBm and 434 MHz 12 mA typ Sleep Mode XTAL ON 40 uA typ Deep Sleep Mode XTAL OFF 7 pA typ Power down Mode 0 9 uA typ ASK and FSK capability with programmable Gaussian data shaping 20 dB programmable output power range On chip IF filter with selectable bandwidth optional an external CER filter is possible Sigma delta fractional N PLL synthesizer with high resolution Automatic Frequency Control function AFC for offset carrier frequency Antenna Diversity by using the RSSI as decision base Digital Baseband Multi protocol handling Up to 4 parallel parameter sets for autonomous scanning and receiving from different sources Integrated data and clock recovery Autonomous receive functionality Frame synchronisation format decoding message ID screening 288 Bit RX TX FIFO for receive and transmit data Wake up generator and polling timer unit Ultra fast wake up on
162. er reconfiguration 3 3 3 Self Polling Mode Receive SPM In Self Polling Mode SPM the TDA5340 is autonomously toggling between Sleep Mode and receive mode At that time there is no processing load on the host micro controller When a wake up criterion has been found an interrupt can be generated and the TDA5340 mode will be changed to Run Mode Self Polling RMSP In RMSP the receiver is searching for the payload data The mode change back to SPM can be triggered by a successful reception of the payload or by several programmable Time Out Timer TOTIM events Detailed descriptions of payload detection can be found in section Frame Synchronization on Page 95 and for the TOTIM in section Time Out Timer TOTIM on Page 62 The Polling Timer Unit controls the timing for scanning On time and sleeping Off time SPM_OFF Up to four independent configuration sets A B C and D can automatically be processed thus enabling scanning from different transmit sources Additionally up to 4 different frequency channels within each configuration may be scanned to support Multi Channel applications For configuration of On and Off timings see also Polling Timer on Page 60 So a autonomous scanning of up to 16 different frequency channels is supported The successful detection of a wake up criteria payload message ID and or a whole message End of message can be signaled to the host micro controller via interrupts For further details see
163. erPeriod M T N T MasterPeriod MasterPeriod Active Idle Figure 48 Active Idle Period 6 7 Time Out Timer TOTIM The Time Out Timer unit is used to bring the receiver from Run Mode Self Polling back to Self Polling Mode The TOTIM can be divided into three main subgroups Timer which are independent of data rate synchronization Timeout Timer Register 0 and Timeout Timer Register 1 Timer are only active if data rate synchronization is lost SYNC Timeout Timer Register Timer are only active if data rate synchronization is present TSI Timeout Timer Register and EOM Timeout Timer Register The timer will be deactivated by setting the corresponding registers to zero all other values in this registers will activate the timer All TOTIM s are initialized after a Wake up event and a End of Message EOM event The common time base is defined as follows 4 512 Timebase SOM SYS 4 Independent TOTIM This timer will be started and will bring back the receiver to Self Polling Mode after expiring without any interaction from internal signal processing Data Rate Synchronization Lost TOTIM SYNC The TOTIM SYNC is only enabled if the synchronization SYNC to the programmed data rate is lost If the SYNC is found again the timer will be halted at the present value and will continue from this time after loss of SYNC The SYNC signal will be provided from the Clock and Data Recovery see Chapter 6 13 13 T
164. ermanent Wake Up Search Logical and electrical System Interfaces of the TDA5340 Receive Modes 000 c ee eee eee Data interface for the Packet Oriented FIFO Mode Data interface for the Packet Oriented Transparent Payload Mode Timing of the Packet Oriented Transparent Payload Mode Data interface for the Transparent Mode Chip Data and Strobe Timing of the Transparent Mode Chip Data and Strobe Data interface for the Transparent Modes TMMF TMRDS External Data Processing llus Synchronous Transparent Mode Asynchronous Transparent Mode Write Register llle Burst Write Registers 0 000 Read Register l a naaa uaaa Burst Read Registers a a ua aaaa aaau Read FIFO a Sf drakan E a a Write TX FIFO ees rncrraatosriare ee ee Transparent TX Command SPI Checksum Generation Receive FIFO 20200 cee eee eee FIFO Lock Behavior 2 00 SPI Data FIFO Read 2 TX FIFO inus RR Rx UR ates Eus Chip Serial Number SFR Address Paging 200e esau 3 3 Volts and 5 Volts Applications Reset Behavior 000000000 Block Diagram RF Receiver Section LNA Block Diagram ssellsssesse Single Down Conversion no external filters required Double Down Conversion Crystal Oscillator 2 2 0 0 0 2 0 eee eee External Clock Generation Unit Polling Timer Unit 0000 000
165. ern is a series of either Manchester 1 s or Manchester 0 s This pattern includes the highest number of edges that can be used for synchronization In this case the number of physically sent RUNIN bits is 4 The number of RUNIN bits specified in CDR Configuration Register 0 should always be set to three This setting defines the duration of the internal synchronization Because of internal processing delays the pattern length that must be reserved for RUNIN is longer Code Timing Violation Window TVWIN The PLL unlocks if the reference signal is lost for more than the time defined in the Timing Violation Window Register During the TSI Gap see TSI Gap Mode in Frame Synchronization on Page 95 the PLL and the TVWIN are frozen TVWIN time is the time during which the Digital Baseband Receiver should stay locked without any incoming signal edges detected The time resolution is T 16 Duty Cycle Variation Ideally the input signal to the Clock and Data Recovery CDR would have a chip width of 8 samples and a bit width of 16 samples and the CDR would not lock onto any input that violates this However due to variations in the duty cycle this stringent assumption for the pulse widths will in general not be true Therefore it is necessary to loosen this requirement by using tolerance windows A TOLCHIPH TOLBITH TOLCHIPL TOLBITL Y lim chip low 8 TOLCHIPL lim bit low 16 TOLBITL lim c
166. errupt Request by Frame Sync from Configuration B Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 1 WUB 4 rc Interrupt Request by Wake Up from Configuration B Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 14 EOMA 3 rc Interrupt Request by End of Message from Configuration A Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 14 MIDFA 2 rc Interrupt Request by Message ID Found from Configuration A Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 1 FSYNCA 1 rc Interrupt Request by Frame Sync from Configuration A Reset event sets all Bits to 1 Og Not detected 1p Detected Reset 14 WUA 0 rc Interrupt Request by Wake Up from Configuration A Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 1 Interrupt Status Register 1 User Manual 227 Revision 1 0 17 02 2012 Infineon IS1 Interrupt Status Register 1 TDA5340 SmartLEWIS TRX 5 Offset 0D5 RegistersGenerated Registers Overview 1 Reset Value FF EOMD MIDFD FSYNCD WUD EOMC MIDFC FSYNCC WUC rc rc rc rc Field Bits Type Description EOMD rc Interrupt Request by End of Message from Configuration D Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 14 MIDFD rc Int
167. errupt Request by Message ID Found from Configuration D Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 14 FSYNCD rc Interrupt Request by Frame Sync from Configuration D Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 1 WUD rc Interrupt Request by Wake Up from Configuration D Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 14 EOMC rc Interrupt Request by End of Message from Configuration C Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 1 MIDFC rc Interrupt Request by Message ID Found from Configuration C Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 14 FSYNCC rc Interrupt Request by Frame Sync from Configuration C Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 1 User Manual 228 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description WUC 0 rc sets all Bits to 1 Og Not detected 1g Detected Reset 14 Interrupt Request by Wake Up from Configuration C Reset event RF PLL Actual Channel and Configuration Register RFPLLACC Offset Reset Value RF PLL Actual Channel and Configuration 0D6 00 Register 7 6 5 4 1 0 T T T T PLDLEN RMSPACFG RMSPAC SPMAC r r r r Field
168. ersion no external filters required For Multi Channel applications or systems which demand higher selectivity the double down conversion scheme with an external CER filter can be selected The order of such ceramic filter is in a range of 3 so the selectivity is drastically improved and a good channel separation should be guaranteed RX digital FSK Data gt FSK Demod ZH blz Zl ZHN Z OL ddd JepJo puz ddd d Jepio pig AARAA ASK RSSI ADC 1 RX ASK Data gt Divider IN IF Attenuation adjust Channel Filter Bandwidth select Figure 44 Double Down Conversion User Manual 57 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description The selection of Single or Double Down Conversion can be done with the SDCSEL bit in the IF1 Register Of course the frequency of the local oscillator needs to be adopted to generate the wanted IF frequency 6 3 3 Band Pass Filter BPF The fully BPF bandwidth can be programmed via the BPFBWSEL bits in the IF1 Register in each configuration The available bandwidths are 50 kHz e 80kHz e 125 kHz e 200 kHz e 300 kHz The bandpass filter follows the subsequent formula Jones S corner LOW corner HIGH 2 Therefore asymmetric corner frequencies can be observed It has to be noted that the analog system bandwidth is not only defined by the BPF alone The analo
169. es see Data Interface on Page 35 can be used e Packet Oriented FIFO Mode POF Packet Oriented Transparent Payload Mode POTP Transparent Mode Chip Data and Strobe TMCDS 4 System Interface In most applications the TDA5340 transceiver IC is attached to an external micro controller This so called Application Controller executes a firmware which governs the TDA5340 by reading data from the transceiver when data has been received on the RF channel or write data to the transmit portion if some data needs to be sent The firmware needs to handle the switching between receive and transmit mode and also the intialization of the transceiver device The TDA5340 features an easy to use System Interface which is described in this chapter Transparent Mode The TDA5340 supports two levels of integration In the most elementary fashion it provides a rather rudimentary interface The incoming RF signal is demodulated and the corresponding data is made available to the Application Controller Optionally a chip clock is generated by the TDA5340 The Application Controller can provide the baseband data to a single input pin which is modulated and amplified via the PLL and Power amplifier Since the data signal is always directly the baseband representation of the RF signal we call this mode the Transparent Mode The usage of the Transparent Mode will be described in Chapter 4 3 2 for the receive mode and in Chapter 4 3 4 for the transmit mode
170. escription LNA INP LNA INN e Sw1 SW2 Figure 42 LNA Block Diagram The independent switchable LNA inputs gives the possibility to match each input to different frequency bands for example LNA INP input to 434MHz and LNA INN to 868MHz The position of the switches can be defined in all four configurations in the Antenna Switch Configuration Register independently The optimum NF of the frontend is reached if a differential matching network is applied to the LNA input 6 3 2 Single Double Down Conversion The immunity against strong interference frequencies so called blockers is determined by the available filter bandwidth the filter order and the 3rd order intercept point of the front end stages For Single Channel applications with moderate requirements to the selectivity the performance of the on chip 3rd order bandpass polyphase filter might be sufficient In this case no external filters are necessary and a single down conversion architecture can be used which converts the input signal frequency directly to the 2nd IF frequency of 274 kHz Dr 7 r 1 p I l l Rx n PK I p _8 digital FSK Data 32 X es de FSK Demod S8 3 NJ LK ME x EE 8 1 22 EE ASK RX RE Te ELA zy eal ASK Data alt ae DM i ADC Ma il i Divider BN Attenuation adjust Channel Filter Bandwidth select Figure 43 Single Down Conv
171. escription EXTSLTHR 7 0 w Externel Data Slicer BW Switching Threshold Reset 004 Signal Detector Threshold Level Register Run Mode A SIGDETO Offset Reset Value Signal Detector Threshold Level Register 046 00 Run Mode 7 0 T T T T SDTHR w Field Bits Type Description SDTHR 7 0 Ww Signal Detector Threshold Level for Run Mode Reset 004 Signal Detector Threshold Level Register Wakeup A_SIGDET1 Offset Reset Value Signal Detector Threshold Level Register 047 00 Wakeup 7 0 T T T T SDTHR w Field Bits Type Description SDTHR 7 0 W Signal Detector Threshold Level for Wakeup Reset 00 Signal Detector Threshold Low Level Register A_SIGDETLO Offset Reset Value Signal Detector Threshold Low Level 048 00 Register User Manual 158 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview 7 0 SDLOTHR li ll ll ll w Field Bits Type Description SDLOTHR 7 0 Ww Signal Detector Threshold Low Level This threshold level is only valid if the FSK Noise detector selection in the A_NDCONFIG register is set to 11b Reset 00 Signal Detector Range Selection Register A_SIGDETSEL Offset Reset Value Signal Detector Range Selection Register 049 7Fy 7 6 5 4 3 2 1 0 Res SDRSELASK SDRSELFSK SDLORSEL w w w Field Bits Type Description SDRSELASK 5 4 Ww A_S
172. eset 0 IMTXR Mask Interrupt on TX Ready The PLL calibration is finalized and the transmitter is now ready to start the transmission Og Interrupt enabled 1g Interrupt disabled Reset 0 User Manual 209 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description IMTXDS Mask Interrupt on TX Data Strobe New data request in transparent TX mode if baudrate synchronization enabled Og Interrupt enabled 1g Interrupt disabled Reset 0 IMTXAF Mask Interrupt on TX FIFO Almost Full Og Interrupt enabled 1g Interrupt disabled Reset 0 IMTXAE Mask Interrupt on TX FIFO Almost Empty Og Interrupt enabled 1g Interrupt disabled Reset 0 IMTXEMPTY Mask Interrupt on TX FIFO Empty Og Interrupt enabled 1g Interrupt disabled Reset 0 IMSYSRDY Mask Interrupt on System Ready Op Interrupt enabled 1g Interrupt disabled Reset 0 IMRXAF Mask Interrupt on RX FIFO Almost Full Og Interrupt enabled 1g Interrupt disabled Reset 0 Self Polling Mode Idle Periods Register SPMIP Offset Reset Value Self Polling Mode Idle Periods Register OBA 01 7 0 SPMIP w Field Bits Type Description SPMIP 7 0 Ww Self Polling Mode Idle Periods value Min 01h 1 Master Period Max FFh 255 Master Periods Reg value 00h 256 Maste
173. eshold for Channel 1 Register the AFC will stay at the found frequency after a programmable delay AFC AGC ADR Freeze Delay Register Freeze on Signal Recognition event Delay The AFC will be frozen if the Signal recognition condition is fulfilled and the programmable delay AFC AGC ADR Freeze Delay Register is expired Freeze on Symbol Synchronization SYNC Delay After loss of SYNC the programmable delay time AFC AGC ADR Freeze Delay Register is waited and the AFC frozen The TDA5340 provides also the functionality that the host controller can freeze the AFC by the AFCMANF bit in the External Processing Command Register register User Manual 72 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description Unfreeze Conditions AFCFREEZE in AFC Start Freeze Configuration Register no unfreeze once the AFC is frozen on a frequency the receiver will use the discovered frequency offset until the receiver leaves the active mode RMSP or RMS or the bit AFC restart at channel change and config change AFCRESATCO in AFC Start Freeze Configuration Register is enabled Unfreeze on NOT RSSI event If the RSSI level goes below the configured RSSI threshold in RSSI Wake Up Threshold for Channel 1 Register the AFC will unfreeze A unfreeze will be generated only if the RSSI level is above the threshold and changes below the threshold negative edge detection Unfreeze on NOT Signal Recognition eve
174. essrr IUD OU OUOU CS spo Pittrimpsdance z feres os es onore or oe os 4 oa 200 Figure 27 Read Register ra Burst Read Command To read from the device in Burst mode the SPI master has to select the SPI slave unit first Therefore the master has to drive the NCS line to low After the instruction byte and the start address byte have been transferred to the SPI slave MSB first the slave unit will respond by transferring the register contents beginning from the given start address MSB first Driving the NCS line to high will end the Burst frame NCS 1 8 u 8 1 8 1 SCK AA AA AA AE LATA AY vivi vivi viv vivi viv viv viv Y Instruction Register Start Address E e gt SDI 7 y 6 5 X i 3 X D Ni n X 10 Jer fne jns ne Jn Jas Jo rt gt e ighi a paloma a Y spo 9h impedance Z o7 o8 os D4 y D3 D2 y D1 Do or Y D6 y Ds pay 22 Jo D71 100 orbs Josibs ba ba bs bo r iy eee 4 L Figure 28 Burst Read Registers r3 Data Out i Data Out i 1 Data Out i x Read FIFO Command To read the FIFO the SPI master has to select the SPI slave unit first Therefore the master must set the NCS line to low
175. et 0 User Manual 191 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description ADRHYS 3 2 w ADR Threshold Hysteresis 00 3 2 qB 01 6 4 dB 10 9 6 dB 11 12 8 dB Reset 14 ADRTHOFFS 1 0 Ww ADR Threshold Offset 00 12 8dB 01 25 6 dB 10 38 4 dB 11 51 2 dB Reset 14 ADR Threshold Register 1 A_ADRTHR1 Offset Reset Value ADR Threshold Register 1 084 84 7 4 3 0 ADRTHI ADRTLO i I 1 I w w Field Bits Type Description ADRTHI 7 4 w ADR High Threshold dB ADR High Threshold A ADRCFG ADRTHOFFS 12 8 ADRTHI 3 2 Reset 8 ADRTLO 3 0 w ADR Low Threshold dB ADR Low Threshold A ADRCFG ADRTHOFFS ADRTLO 3 2 Reset 4 Special Function Register Page Register SFRPAGE Offset Reset Value Special Function Register Page Register 0A0 00 7 3 2 1 0 Res Res SFRPAGE r w User Manual 192 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description Res 7 3 r for future use Reset 00 SFRPAGE 1 0 Ww Selection of Register Page File Configuration A D for SPI communication 00 Page 0 Config A start address 000 01 Page 1 Config B start address 100 10 Page 2 Config C start address 200 11 Page 3 Config D start address 300 Reset 0 PPO a
176. f the system latency time T1 the RUNIN length and the time of asynchronous between transmitter and receiver This means that for the minimum length of register value for Synchronization Search Time Out Register the value 2 bits plus 12 5 us plus the RUNIN length which is set in the CDR Configuration Register 0 RUNLEN register plus 2 bits to consider worst case RUNIN patterns and TX RX asynchronous have to be used To reach data rate and duty cycle errors 1096 of the overall sum must be added 2 2 HS bit SYSRCTO roundup 24 RUNINLEN 2 16 1 26 A second important system parameter that must be considered is the minimal Inter Frame Time time between two data frames This time is equal to the time T2 and has a length of 1 5 or 2 bits The EOM to PLL resynchronization time is negligible in case Digital Receiver Configuration Register INITDRXES is disabled Otherwise T1 has to be added Note that the described Inter Frame Time is based on the input pattern with equal signal power in the following data frame in other cases the Inter Frame Time can vary from the calculated value T ee m Tpi L riter Tramen 1 5 Tjj 0 5 Ty T 27 1 The 0 5 T have to be added in case of activation of Bi phase mark space decoding mode and Data Slicer Bit mode without Code Violation see Slicer Configuration Register User Manual 104 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description
177. f two antennas by using the RSSI as decision criteria The selection of the antenna can be done either by using an external antenna switch or by utilize the build in RX TX switch as an antenna switch between RFINN and RFINP This would mean that the two differnetial inputs of the LNA are used as sepparate single ended LNA inputs for both antennas Due to the fact that the ADR is using the RSSI as decision base the functionality is mainly useful for constant envelope modulation schemes i e FSK or GFSK ADR principle The antenna selection behavior of the ADR is divided into 3 different areas of the RSSI curve and can be adjusted by several thresholds and hysteresis registers Search Switch Stay Digital RSSI output 1023 saturatioftes Teese ee eee ee eee ee e e ee e e eee e eee e eee e eee neces eee sees e eee sees sees s eee ecce eee Input power H U gt i ca o m mJ o Figure 57 ADR principle ADR Search State If the actual RSSI voltage on both antenna inputs is below the ADR Threshold Register 1 the internal state machine will switch between both antennas periodically The period can be defined by the ADR Timeout Configuration Register 0 and ADR Timeout Configuration Register 2 User Manual 79 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description ADR Switch State The state machine will enter the switch state if the RSSI level of one of the antennas is above t
178. ferer Could be activated after decission of software CDR 111 n u Reset 24 External Data Slicer Configuration Register 2 A EXTSLC2 Offset Reset Value External Data Slicer Configuration Register 2 043 00 7 6 4 3 2 0 Res Res LPFSEL LPFBW r w w Field Bits Type Description Res 7 r for future use Reset 0 User Manual 156 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description LPFSEL 3 Low Pass Filter select Og Matched Filter selected 1 LPF selected Reset 0 LPFBW 2 0 Low Pass Filter Bandwidth Coefficient Selection 000 1 1 6 001 1 2 010 1 2 67 011g n u 100 1 3 2 101 1 4 110 1 5 33 111g n u Reset 0 Externel Data Slicer BW Switching Threshold Register 0 A EXTSLTHRO Offset Reset Value Externel Data Slicer BW Switching Threshold 044 00 Register 0 7 0 T T T T EXTSLTHR w Field Bits Type Description EXTSLTHR 7 0 w Externel Data Slicer BW Switching Threshold Reset 00 Externel Data Slicer BW Switching Threshold Register 1 A_EXTSLTHR1 Offset Externel Data Slicer BW Switching Threshold 0454 Register 1 Reset Value 00 7 T EXTSLTHR w User Manual 157 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type D
179. ffset Reset Value Message ID Register 11 00B 00 7 0 MID11 w Field Bits Type Description MID11 7 0 w Message ID Register 11 Reset 00 Message ID Register 12 A_MID12 Offset Reset Value Message ID Register 12 00C 00 7 0 MID12 w Field Bits Type Description MID12 7 0 Ww Message ID Register 12 Reset 00 Message ID Register 13 A_MID13 Message ID Register 13 User Manual Offset 00D 127 Reset Value 00 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview 7 0 MID13 l ll ll ll w Field Bits Type Description MID13 7 0 Ww Message ID Register 13 Reset 00 Message ID Register 14 A_MID14 Offset Reset Value Message ID Register 14 00E 00 7 0 MID14 w Field Bits Type Description MID14 7 0 w Message ID Register 14 Reset 004 Message ID Register 15 A_MID15 Offset Reset Value Message ID Register 15 OOF 00 7 0 MID15 w Field Bits Type Description MID15 7 0 w Message ID Register 15 Reset 004 Message ID Register 16 User Manual 128 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview A MID16 Offset Reset Value Message ID Register 16 010 00 7 0 MID16 w Field Bits Type Description MID16 7 0 Ww Message ID Register 16 Reset 00 Message ID Register 17
180. figuration Register OCB 00 7 2 1 0 NCHNL TXCHNL w w User Manual 221 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description NCHNL 7 2 WwW Channel offset number N TX frequency base channel N offset 000000 Selected TX base channel N 0 001111 N Reset 00 TXCHNL 1 0 w 005 01 10g 11g TX base channel selection Defines the base of the channel frequency for the selected configuration CMC MCS Channel 1 Channel 2 Channel 3 Channel 4 Reset 04 PLL Configuration Register PLLCFG PLL Configuration Register 7 6 5 Offset occ 4 Reset Value VCOCCUR Res EN PLLLDEN PLLLDTHR r Ww Ww Ww Field Bits Type Description Res 7 6 r for future use Reset 0 VCOCCUREN 5 w 0s 1s Disabled Enabled Reset 1 Enable VCO constant current PLLLDEN 4 w 0s 1s Enable PLL lock detector Disabled Enabled Reset 0 PLLLDTHR 3 0 w PLL lock detector threshold Defines the threshold for the error counter 0 allways error detected Reset 84 VCO Autocalibration Error Threshold User Manual 222 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview VACERRTH Offset Reset Value VCO Autocalibration
181. g PRBS9 at correct data rate at about 80 dBm input signal power and minimum FSK deviation to the RF input Do 500 50 readings of Signal Power Readout Register calculate average Change bit group SDLORSEL in Signal Detector Threshold Level Register Wakeup till average is smaller than 50d 0x32 Signal Detector Threshold Low Level Register 0 8 average 3 Standard Deviation Set register SDLORE back to 0 The last setting of bit group SDLORSEL must also be used for configuration 6 13 10 Data Slicer The output signal of the matched filter within the internal data processing path is in the range of x to x x is the maximum value of the internal bit width If Code Violations within a Manchester encoded bit stream have to be detected the data slicer has to recover the underlying chip stream instead of the bit stream In this case zero values at the matched filter output lead to an additional slicing threshold and an implicit sensitivity loss To provide the full reachable sensitivity for applications which do not need the symbols S space and M mark the data slicer has three different operating modes Chip mode Code Violations are allowed Bit mode without Code Violations NRZ mode The chip mode introduces an implicit sensitivity loss compared to the bit mode because a zero crossing in the 2 chip matched filter signal must be detectable This is only possible when an additional slicing level is introduced in the data sl
182. g Mode Run Mode Self Polling 00 ASK ASK ASK 01 FSK FSK FSK 10 ASK FSK ASK 11g FSK ASK FSK Reset 0 TX RF Configuration Register A TXRF Offset Reset Value TX RF Configuration Register 05F 04 7 4 3 0 T T T Res Res DCCSEL r w Field Bits Type Description Res 7 4 r for future use Reset 0 DCCSEL 2 0 W Duty Cycle Control selection Duty Cycle DCCSEL 8 32 Reset 34 TX Configuration Regsiter A_TXCFG Offset Reset Value TX Configuration Regsiter 060 05 7 6 5 4 3 0 T T Res ASKFSK er GFSKEN oa ENCODING r w w w w w Field Bits Type Description Res for future use Reset 0 User Manual 173 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description ASKFSK 6 w Modulation Type Selection 0g ASK 1g FSK Reset 0 ASKSLOPEN 5 w ASK sloping enable In FSK mode enable for power up sloping Og Disabled 1g Enabled Reset 0 GFSKEN 4 w GFSK Gaussian Filter enable FSK mode only Og Disabled 1g Enabled Reset 04 INVERSION 3 w TX data inversion 0s Disabled 1g Enabled Reset 0 ENCODING 2 0 w Encoding mode code selection 000 Manchester 001 Differential manchester 010 Biphase Space 011 Biphase Mark 100 Miller 101 NRZ 110 Scrambling PRBS 111g n u Reset 5
183. g system bandwidth is typically lower than the BPF filter bandwidth due to cascading blocks with filter behavior The typical analog system bandwidth for different bandpass filter settings are shown in the table below Table 5 Analog system bandwidth BPFBWSEL BPF bandwidth BW 0005 50 kHz 50 kHz 001 80 kHz 80 kHz 010 125 kHz 120 kHz 011 200 kHz 180 kHz 1005 300 kHz 230 kHz 6 4 Transmitter A highly efficient Class C E Power amplifier with output levels of 14 dBm combined with a Gaussian Filter for GFSK and amplitude ramping functions for shaped ASK is implemented A high resolution power adjustment can be done to trim the output power for system power savings The power adjustment can be also utilized to trim out the production spread of matching components and the PA stage itself The Sigma Delta PLL is used to generate the necessary local oscillator frequency The data can be either shifted out of a on chip transmit FIFO or directly provided on an input pin 6 4 1 Power Amplifier The Class C E Power Amplifier has single ended output RF OUT and is divided into several selectable clusters of amplifier stages 31 stages which can be combined to achieve the wanted output power in combination with the best efficiency The achievable output power and efficiency is highly influenced by the load impedance of the matching network Power Level Programing The high power level POWHIGH and low power level POWL
184. h between Start Bit FIFO Mode SBF and Direct FIFO Mode DF User Manual 39 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX System Interface Direct FIFO Mode DF The Direct FIFO Mode enables the fastest transition from Init TX state to TX FIFO state The transmitter will start if a FIFO content is loaded right after the PLL settling time TX Ready Mode to shift out the FIFO content with the pre configured output power modulation scheme center frequency data rate and coding By reloading the TX FIFO the transmission will continue as long the FIFO is not empty After sending the last Bit Chip out of the FIFO an interrupt can be generated to signal the host controller that the transmission of the FIFO content has finished The TDA5340 either waits for a refill of the TX FIFO in the TX FIFO empty state and sends out the last Bit Chip of the FIFO content as long as a new FIFO content is loaded If the TX Idle transition is enabled the Transceiver will go immediately after the TX empty interrupt into the TX Idle state and waits for a user interaction SPI access which can be TX PLL initialization or a change to a other mode With the enabled finish transmission with TX FIFO Empty bit see TX Control Register the transceiver will wait for restart of the transmission in the TX Ready state the FIFO Empty and TX Ready interrupt flags are set in the Interrupt Status Register 2 Start Bit FIFO Mode SBF If the FIFO
185. hat all Time out Timers TOTIMs should be disabled in the configuration set of the external processing mode as the micro controller takes over the control see SFR bit group EXTPROC in the Channel Configuration Register It is recommended to put this external configuration at the end of the On time within the polling cycle so right before the Off time This is helpful when using the EXTTOTIM command go to Self Polling Mode next programmed channel or Configuration A When the external configuration is the last configuration before the Off time then the next programmed channel within the polling cycle would be the sequence of the Off time When data User Manual 38 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX System Interface is available and the RSSI is within a valid threshold area an interrupt is generated NINT So the Application Controller can process the data and decide about valid data In case the controller decides that wrong data was sent the micro controller can send the register command EXTTOTIM see External Processing Command Register register When the micro controller detects valid data then the controller can send the register command EXTEOM found see External Processing Command Register after completing the data reception The functionality described above can also be used for other receive modes mainly TMMF TMCDS where the external micro controller takes on responsibility fo
186. he lower threshold level ADR Threshold Register 1 and below the higher threshold level After entering the switch state the state machine changes to the other antenna and will check the signal level strength The receiver will now remain on the antenna with the higher RSSI value In the switch state the state machine starts the switch timer which can be programed in the ADR Timeout Configuration Register 1 and ADR Timeout Configuration Register 2 This timer is used to periodically change to the opposite antenna This mechanism enables the detection of a stronger signal on the other antenna within the switch state If the Signal strength on both antennas will fall below the lower threshold minus the hysteresis the receiver will go back to the search mode ADR Stay State To enter the stay state the actual signal strength of one antenna needs to be above the higher threshold level ADR Threshold Register 1 After reaching the stay state the receiver will remain on this antenna as long as the RSSI is above the higher threshold level minus the hysteresis If the signal level falls below the lower bound the state machine will change the antenna and moves to the switch state ADR Calculations The lower threshold can be calculated as follows ADRTH o dBm BasddBm ADRTLO 3 2 Offset dBm 15 For calculation of the threshold high the equation below can be used ADRTH dBm Base dBm 12 5 dBm ADRTHI 3 2 OffsefdBm nb Where the Base
187. hip high 8 TOLCHIPH lim bit high 16 TOLBITH Figure 63 Definition of Tolerance Windows for the CDR The CDR Configuration Register 1 with TOLCHIP for the chip width tolerance and with TOLBIT for the bit width tolerance that can be used to tighten or loosen the windows around the ideal pulse widths As it can easily be seen from Figure 63 tighter windows will result in more stringent requirements for the input data to have a 5096 duty cycle and bigger windows will allow the duty cycle to vary more Figure 63 also depicts the meaning of the bits in the CDR Configuration Register 1 Data Rate Acceptance Limitation The Clock and Data Recovery is able to accept data rate errors of more than 15 with a certain loss of performance There exist Multi Configuration applications where the data rate of both configurations are within this User Manual 89 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description range So the adjacent data rates of these configurations are disturbing each other The limitation of the data rate acceptance can be activated in this case The clock and data recovery CDR regenerates the clock based on the input data delivered from the clock recovery CR slicer Symbol synchronization cdr_lock is achieved when a specified number of chips can be set via RUNLEN bit of the CDR Configuration Register 0 has a valid pulse width In parallel the preset value correlator estimates a prese
188. hon TAONTAON Teon Tor Channels Gonfig B n i T MasterPeriod m T pon i Tgont Tore T MasterPeriod Figure 12 Mixed Mode Only the following receive modes see Data Interface on Page 35 can be used e Packet Oriented FIFO Mode POF Packet Oriented Transparent Payload Mode POTP Transparent Mode Chip Data and Strobe TMCDS 3 3 3 4 Permanent Wake Up Search PWUS In this mode the receiver will work in Fast Fall Back Mode but it will not go back to the SLEEP state after the last channel has been searched Instead it will start again from the beginning Configuration A RF Channel 1 until the On time has elapsed The timing calculation can be seen in Figure 13 Ultrafast Fall Back to SLEEP functionality can be used as well User Manual 32 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX System Interface Single Channel Single Config run mode RX paling ineptos Channels 1 Taon Torr T MasterPerioa Taon Torr tA T MasterPeriod gt Multi Channel Single Config run mode RX poling B A B Channels m sleep mode TMasterPeriod Taon Torr Taon Torr T MasterPeriod Multi Channel Multi Config run mode P AA BB A Channels Config A m ae A d c Channels Config B n Taon Torr T MasterPerioa AON Torr OO TH T MasterPeriod 4 Figure 13 Permanent Wake Up Search Only the following receive mod
189. hreshold offset AGCTHOFFS in register AGC Configuration Register 1 This value is the offset relative to 0 input no noise no signal which for the default setting of gain and assuming typical insertion loss of matching network and ceramic filter can be extrapolated to be approximately 143dBm In this case the default setting of the AGCTHOFFS of 63 9dB corresponds to an input power of approximately 79dBm 143dBm 63 9dB The low digital AGC threshold is then 79 12 8dB default AGCTLO 66dBm and the upper digital AGC threshold is 79 25 6 default AGCTUP 53dBm Therefore a margin of about 6dB is indicated before a degradation of the linearity of the 2nd IF can be observed when using the 50kHz BPF or even about 16dB when using the 300kHz BPF The input power level at which the AGC switches back to maximum gain is 66dBm 21 3dB default AGCHYS 87dBm This provides enough margin against the minimum sensitivity When AGC is activated RSSI is untrimmed IFATT lt 5 6dB and the same RSSI offset should be applied for all bandpass filter settings then the settings in Table 6 can be applied where a small reduction of the RSSI input range can be observed Table 6 AGC Setting 1 AGC Threshold Hysteresis 21 3 dB AGC Digital RSSI Gain Correction 15 5 dB BPF RSSI Offset AGC Threshold AGC Threshold AGC Threshold RSSI Input Range Compensation Offset Low Up Reduction 300 kHz 32 63 9
190. icer The data slicer internally maps a positive value to a 1 and a negative value to a 1 Everything inside the zero thresholds zero tube becomes a 0 After that the decoding to the chip level representation is done by mapping the 1 to a 0 chip and the 1 to a 1 chip A zero out of the data slicer is decoded to chip level by referencing to the previous chip value In bit mode the data slicer has only one threshold zero to distinguish between the two levels of the matched filter output The data slicer internally maps a positive value to a 1 and a negative value to a 1 After that the selected line decoding is applied User Manual 84 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description Data Slicer Chip mode Code violations detectable TSI or EOM Performance loss compared to bit mode e Activation via setting register Slicer Configuration Register to a value of 0x90 Chip Mode EOM CV For patterns with code violation in data packet and optimized for activated EOM code violation criterion and optional data length criterion 0x94 Chip Mode EOM Data length For patterns with code violations in data packet and optimized for activated EOM data length criterion only OxD5 Chip Mode Transparent When Framer is not used but CH DATA and CH STR are used for external processing Data Slicer Bit Mode e No code violations detectable Full performance Incase of Bi phase mar
191. ich can be activated autonomously by the transceiver as part of the scheduling process In contrast to the high level interface used for communicating configuration instructions and status information alerts are emitted by the transceiver on a digital output pin that may trigger external interrupts in the Application Controller Note that the alerting conditions as well as the polarity of the output pin are configurable see Interrupt Generation Unit on Page 50 4 3 Data Interface The data interface between the Application Controller and the TDA5340 transceiver IC is used for the transport of the received and transmitted data see Figure 14 The physical implementation as well as the features of the data interface depend on the selected mode of operation There are 5 possible receive modes Packet Oriented FIFO Mode POF e Packet Oriented Transparent Payload Mode POTP Transparent Mode Chip Data and Strobe TMCDS Transparent Mode Matched Filter TMMF Transparent Mode Raw Data Slicer TMRDS Access points for these receive modes can be seen in Figure 58 The possible combinations of receive modes and polling mode setup is noted in Figure 15 Self Polling Mode Const ON OFF Fast Fall Back UFFB Mixed PWUS WU on Level criterion WU on data criterion WU on Level criterion WU on data criterion RX Mode Signal Random Equal Signal Random Equal available signal RSSI R
192. ill be limited User Manual 70 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description The following equation shows the relationship between attack decay timings and the actual register values DataRate kBit s In 2 t attack Bit 274 C Round PMFUP C 1 deca Bit DataRatd Bits 4 C ous Round mue 2 d C In 2 PMFDN 2 N C sawn 1 3 A good starting point is to use an attack time tata Of 0 2 bit and a decay time tyecay of 4 bit 6 13 3 FSK Demodulator The limiter output signal which has a constant amplitude over a wide range of the input signal feeds the FSK demodulator There is a configurable lowpass filter in front of the FSK demodulation to suppress the down conversion image FSK Pre Demodulation Filter PDF This is realized as a 3 order digital filter The sampling rate after FSK demodulation is fixed and independent from the target data rate 6 13 4 Automatic Frequency Control AFC In front of the image suppression filter a second FSK demodulator is used to derive the control signal for the Automatic Frequency Control Unit which is actually the DC value of the FSK demodulated signal This makes the AFC loop independent from signal path filtering and allow so a wider frequency capture range of the AFC The derivation of the AFC control signal is preferably done during the DC free preamble and is then frozen for the rest of the datagram Si
193. is case the external clock signal is set to low The resulting CLK_OUT frequency can be calculated by A sys 2 divisionfactor f CLKOUT 7 CLKOUTO CLKOUT1 CLKOUT2 z W 2 o x o Enable fsys fc LK_OUT 20 Bit Counter Figure 46 External Clock Generation Unit The maximum CLK_OUT frequency is limited by the driver capability of the PPx pin and depends on the external load connected to this pin Please be aware that large loads and or high clock frequencies at this pin may act as an interfere and reduces performance After Reset the PPx pin is activated and the division factor is initialized to 11 equals fork our 998 kHz A clock output frequency higher than 1 MHz is not recommended For high sensitivity applications the use of the external clock generation unit is not recommended 6 6 Polling Timer The Polling Timer is used to define the ON and OFF timings of the receiver in Self Polling Mode SPM and has three sub modules The Reference Timer is used to divide the state machine clock fsys 64 into the slower clock required for the SPM timers see Self Polling Mode Reference Timer Register The On Off Timer and the Active Idle Period Timer are used to generate the polling signal The entire unit is controlled by the SPM Finite State Machine FSM The TDA5340 is able to handle up to four different sets of configurations automatically However the examples and figures in this subsection only show up to tw
194. is done by an external CER filter For low cost applications this ceramic filter can be substituted by a simple LC Pi filter or completely by passed using the receiver as a single down conversion low IF scheme with 274 kHz IF frequency The down conversion to the second IF frequency is done by means of two high side injected I Q mixers together with an on chip third order bandpass polyphase filter PPF2 BPF The l Q oscillator signals for the second down conversion are directly derived by division of two from the crystal oscillator frequency The bandwidth of the bandpass filter BPF can be selected from 50 kHz to 300 kHz in 5 steps see BPFBWSEL bit group in IF1 Register For a frequency offset of 150 kHz to 120 kHz the AFC Automatic Frequency Control function is mandatory Activated AFC option might require a longer preamble sequence in the receive data stream The receiver enable signal RX_RUN can be offered at each of the port pins to control external components Whenever the receiver is active the RX_RUN output signal is active Active high or active low is configured via PPx Port Configuration Register The frequency relations are calculated with the following formulas fir 10 7 MHz _ Sirs IF2 3 9 p m nn 2 80 f pm LO2 2 Jo jm Dividerfactor m ATs 1 T a UMP I Mix gt l I o LP ED
195. is transferred via the 4 wire SPI bus During receive operation the incoming RF signal is demodulated in the RF IF interface the line decoding is performed and the data of which wake up frames data frame headers and optional footers have been stripped off is stored in the RX FIFO Then the received data can be read from the RX FIFO using the read FIFO command described in Chapter 4 5 and Chapter 4 4 The data which is read from the RX FIFO is accompanied by information which contains the status of the respective receive operation Note that the availability of received data packets is communicated via alerts in the control interface TDA5340 data interface bit synchronizer scheduler Figure 16 Data interface for the Packet Oriented FIFO Mode RF Interface Application Controller Packet Oriented Transparent Payload Mode POTP Packet Oriented Transparent Payload Mode POTP This mode is very similar to POF Mode as data which is going into FIFO is also available via RXD and RXSTR signals see Chapter 4 7 TDA5340 data RF Interface interface bit RX data synchronizer Strobe scheduler Figure 17 Data interface for the Packet Oriented Transparent Payload Mode Application Controller In the TDA5340 there are specific digital output lines PPx pin for the Bi phase decoded data and an appropriate Strobe signal During inactivity of the receiver the line is in default mode switched
196. ister 02F 00 7 0 TOTIMEOM w Field Bits Type Description TOTIMEOM 7 0 W Set value of Time Out Timer End of Message Timer is used to get back from Run Mode Self Polling to the Self Polling Mode whenever a TSI has been detected but there is no EOM detected Timer is set back at new cycle start of Run Mode Self Polling TimeOut TOTIMEOM 64 512 2 fsys Min O1h 1 64 512 2 fsys Max FFhz 255 64 512 2 fsys 00h disabled Reset 00 AFC Limit Configuration Register A AFCLIMIT Offset Reset Value AFC Limit Configuration Register 030 02 7 4 3 0 Res AFCLIMIT r w User Manual 144 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description Res 7 4 r for future use Reset 0 AFCLIMIT 3 0 W AFC Frequency Offset Saturation Limit gt 1 16 x 10 7 kHz Min Oh Fsys 2 11 Hz Max Fh 16 Fsys 2 11 Hz Reset 24 AFC AGC ADR Freeze Delay Register A_AFCAGCADRD Offset Reset Value AFC AGC ADR Freeze Delay Register 031 00 7 AFCAGCADRD w Field Bits Type Description AFCAGCADR 7 0 W AFC AGC ADR Freeze Delay Counter Division Ratio D The base period for the delay counter is the 8 16 samples chip matched filter input strobe divided by 4 Reset 004 AFC Start Freeze Configuration Register A_AFCSFCF
197. ister 2 06E 09 Channel 1 7 6 5 4 0 Res di Ps PLLFRAC2C1 r w w Field Bits Type Description Res 7 6 r for future use Reset 0 PLLFCOMPC1 5 W Fractional Spurii Compensation enable for Channel 1 Og Disabled 13 Enabled Reset 0 PLLFRAC2C1 4 0 W Synthesizer channel frequency value 21 bits bits 20 16 fractional division ratio for Channel 1 PLLFRAC 20 0 dec2hex f LO f XTAL PLLINT 2421 Reset 09 PLL MMD Integer Value Register Channel 2 A PLLINTC2 Offset Reset Value PLL MMD Integer Value Register Channel 2 06F 13 User Manual 180 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview 7 6 5 0 Res PLLINTC2 l l l r w Field Bits Type Description Res 7 6 r for future use Reset 0 PLLINTC2 5 0 Ww SDPLL Multi Modulus Divider Integer Offset value for Channel 2 PLLINT 5 0 dec2hex INT f_LO f_XTAL Reset 134 PLL Fractional Division Ratio Register 0 Channel 2 A PLLFRACOC2 Offset Reset Value PLL Fractional Division Ratio Register 0 0704 F34 Channel 2 7 0 PLLFRACOC2 w Field Bits Type Description PLLFRACOC2 7 0 W Synthesizer channel frequency value 21 bits bits 7 0 fractional division ratio for Channel 2 PLLFRAC 20 0 dec2hex f LO f XTAL PLLINT 2421 Reset F3 PLL Fractional Division Ratio Register 1 Channel 2 A PLLFRAC1C2 Offset Reset Value P
198. ister OBB 211 SPMRT Self Polling Mode Reference Timer Register OBC 211 SPMOFFTO Self Polling Mode Off Time Register 0 OBD 212 SPMOFFT1 Self Polling Mode Off Time Register 1 OBE 212 SPMONTAO Self Polling Mode On Time Config A Register O OBF 213 SPMONTA1 Self Polling Mode On Time Config A Register 1 OCO 213 SPMONTBO Self Polling Mode On Time Config B RegisterO 0C1 214 SPMONTB1 Self Polling Mode On Time Config B Register 1 0C2 214 SPMONTCO Self Polling Mode On Time Config C Register 0 0C3 215 SPMONTC1 Self Polling Mode On Time Config C Register 1 0C44 215 SPMONTDO Self Polling Mode On Time Config D Register 0 0C5 216 SPMONTD1 Self Polling Mode On Time Config D Register 1 0C6 216 EXTPCMD External Processing Command Register 0C7 217 TXC TX Control Register 0C8 218 RXC RX Control Register 0C9 219 CMC Chip Mode Control Register OCA 220 TXCHNL TX Channel Configuration Register OCB 221 User Manual 115 Revision 1 0 17 02 2012 TDA5340 SmartLEWIS TRX Infineon Generated Registers Overview Table 10 Registers Overview cont d Register Short Name Register Long Name Offset Address Page Number PLLCFG PLL Configuration Register 0CC 222 VACERRTH VCO Autocalibration Error Threshold OCD 222 PRBS PRBS Starting Value Register OCE 223 TXFIFOAEL TX FIFO Almost Empty Leve
199. ity to a data rate of 80 kChips s 6 9 Sigma Delta Fractional N PLL The Sigma Delta Fractional N PLL is fully integrated on chip The Voltage Controlled Oscillator VCO with on chip LC tank runs at approximately 3 6 GHz and is first divided with a band select divider by 1 2 or 3 see BANDSEL in PLL MMD Integer Value Register Channel 1 Divide by 1 selects the 915 MHz and 868 MHz band divide by 2 selects the 434 MHz band and divide by 3 selects the 315 MHz band In receive mode the I Q divider provides an orthogonal local oscillator signal for the first image reject mixer with the necessary high accuracy In transmit mode a simple divider generates the local oscillator frequency for the power amplifier stage The multi modulus divider determines the channel selection and is controlled by a 3rd order Sigma Delta Modulator SDM A type IV phase detector a charge pump with programmable current and an on chip loop filter closes the phase locked loop The following formula defines the frequency of the local oscillator for reception FRAC 20 0 40 5 Sar Sie xs INT lt 5 0 gt 72105 6 The following formula defines the frequency of the local oscillator for transmission FRAC lt 20 0 gt 0 5 29 5 fu xose INT lt 5 0 gt 7 Where the INT represents the integer value of the divider which can be programmed in the PLL MMD Integer Value Register Channel 1 The FRAC value respectively is the fraction value of the d
200. ivider and can be configured in the PLL Fractional Division Ratio Register 0 Channel 1 PLL Fractional Division Ratio Register 1 Channel 1 and PLL Fractional Division Ratio Register 2 Channel 1 The same register set exists for each of the 4 channels within the 4 configurations e g 16 times User Manual 64 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description To 1 mixer 3 6 GHz VCO Loop Filter CP To DCC PA A A IQ Divider P Band Select K 4 4 21 22 23 Ud Multi p modulus PFD Divider Channel FN i XA Modulator FSK Modulation QOSC A 22MHz AFC filter LI AFC data Figure 50 Synthesizer Block Diagram The following picture shows the PLL frequency range together with the reception and transmission frequency ranges User Manual 65 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description 415 MHz 495 MHz PLL frequency range TX frequency range 484 3 MHz RX frequency range high side injection RX frequency range low side injection Using ext IF filter 425 7 MHz RX frequency range high side injection RX frequency range low side injection Using int IF filter only 415 MHz 495 MHz Figure 51 TRX frequency range 6 10 Analog to Digital Converter AD
201. k and Bi phase space an additional bit must be sent to ensure correct decoding of the last bit e Activation via setting Slicer Configuration Register to a value of 0x75 In Data Slicer Bit mode an even number of TSI chips needs to be used When Data Slicer Bit mode is selected then the last chip of RUNIN must be different from first chip of TSI e g Runin bit sequence 000000 and TSI bit sequence Oxx xxx is OK Otherwise the TSI will not be detected correctly On using Data Slicer Bit Mode the Wake up criteria Random Bits Detection and Pattern Detection cannot be applied When using Data Slicer Bit Mode the Wake up criterion Equal Bits Detection cannot be applied in case the transmitted Manchester Bi phase coded bit stream used for the Wake up decision contains a sequence of at least two equal chips Data Slicer NRZ Mode longer RUNIN pattern required prefered alternating Zeros and Ones e Activation via setting Slicer Configuration Register to a value of Ox8C A line decoder decodes the incoming data chips according to the encoding scheme see Decoding Encoding Modes on Page 105 Slicer Level Saturation The magnitude of the Matched Data Filter output defines the decision level of the Data Slicer A huge input step at the matched filter input can lead to drift of the slicing level and therefore to bit errors Such an input step can happen in FSK by applying a high frequency offsets 100kHz with low deviations 1kHz The calc
202. ke Up Bit or Chip Count Register the longer it is possible to search for the wake up pattern The minimum for the Wake Up Bit or Chip Count Register is 0x11 The pattern detection is stopped either when WUW elapses or when symbol synchronization is lost The Wake Up pattern can be extended from 16 chips to 16 bits on activation of WUPMSEL bit Wake Up Pattern Bit Mode in the Wake Up Control Register In this Bit Mode no Code Violations CV are allowed and thus Pattern Detection is aborted when a CV is detected Equal Bit Detection Wake up condition is fulfilled if all received bits inside of WUW are either 0 or 1 Wake Up Bit or Chip Count Register holds the number of required equal bits The higher the setting of Wake Up Bit or Chip Count Register the lower the number of wrong wake ups Equal bits detection is stopped if a bit change or a CV has been detected or symbol synchronization is lost Random Bits Detection Wake up condition is fulfilled if there is no code violation inside of WUW WUBCNT holds the number of required Bi phase coded bits The higher the setting of Wake Up Bit or Chip Count Register the lower the number of wrong wake ups Random bits detection is stopped if a code violation has been detected or symbol synchronization is lost Valid Data Rate Detection Wake up condition is fulfilled if symbol synchronization is possible inside of Sync Search Time out see RUNIN Synchronization Search Time and Inter Frame Time o
203. l Wake up data criterion Ultrafast Fall Back to SLEEP is working when a Wake up on Data criterion is selected the UFFBLCOO bit is enabled and FFB or PWUS mode is selected The UFFB level criterion can be selected in the Wake Up Control Register 3 3 8 3 Mixed Mode MM Const On Off amp Fast Fall Back to SLEEP This mode combines Constant On Time and Fast Fall Back to SLEEP within different configuration sets Cfg A COO Cfg B FFB Cfg C FFB Cfg D FFB Ton for Configuration A is always calculated according to Const On Off rules Ton for Configuration B C and D is always calculated according to Fast Fall Back to SLEEP rules In Mixed Mode the On time of the first configuration within the FFB group is used Below there are shown the same scenarios as before but now for Mixed Mode Note that Single Configuration can be set but is not recommended in Mixed Mode User Manual 31 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Operating Modes Single Channel Single Config run mode RX polling sleep mode Channels 1 TaAoN Teon Torr T T T T MasterPeriod AON BON OFF TmMasterPeriod Multi Channel Single Config run mode RX polling sleep mode Channels m TaoNTAoNTAON Teon Torr T zm T T 4 4 4 MasterPeriod AON BON T OFF la T MasterPeriod gt Multi Channel Multi Config run mode RX polling Channels Config A m sleep mode T
204. l Processing Command Register by setting the EXTTOTIM bit to high 6 8 Baud Rate Generator The Baud Rate Generator is used to provide a time base for the transmitter baseband The generated baud rate strobe can be used by the TX FIFO Mode which builds the actual baseband data for the modulation or as an output data request signal in TX Transparent Mode The Data Rate frequency can be calculated as follows Bit f DataRate s TXBDRDIV 1 2 Where TXBDRDIV can be set in the TX Baudrate Divider Register 0 and TX Baudrate Divider Register 1 It has to be mentioned that the chip rate is double of the Bit rate if bi phase encoding is used for NRZ coding the chip rate equals the bit rate The data request strobe of the baud rate generation unit can be provided on one of the PPx pins by selecting the TXSTR signal see General Purpose Output Pins on Page 49 The transmit baseband data should be provided to the TDA5340 as described in the chapter TX Transparent Mode on Page 40 The request strobe can be also signaled to the host controller via a TX Strobe interrupt request of the Interrupt generation unit see Transmitter Interrupts on Page 51 It has to be stated at this point that the maximum User Manual 63 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description achievable baseband data rate is defined by the interrupt duration 12 us which limits this functional
205. l Register OCF 223 TXFIFOAFL TX FIFO Almost Full Level Register ODO 224 RXFIFOAFL RX FIFO Almost Full Level Register 0D1 224 PLLSTAT PLL Status Register 0D2 224 IS2 Interrupt Status Register 2 0D3 225 ISO Interrupt Status Register 0 0D4 226 IS1 Interrupt Status Register 1 0D5 227 RFPLLACC RF PLL Actual Channel and Configuration OD6 229 Register RSSIPWU Wakeup Peak Detector Readout Register OD7 230 RSSIPRX RSSI Peak Detector Readout Register 0D8 230 RSSIPPL RSSI Payload Peak Detector Readout Register 0D9 230 PLDLEN Payload Data Length Register ODA 231 ADCRESH ADC Result High Byte Register ODB 231 ADCRESL ADC Result Low Byte Register oDC 232 AFCOFFSET AFC Offset Read Register ODD 232 AGCADRR AGC and ADR Readout Register ODE 233 SPIAT SPI Address Tracer Register ODF 233 SPIDT SPI Data Tracer Register OE0 234 SPICHKSUM SPI Checksum Register OE1 234 SNO Serial Number Register 0 0E2 235 SN1 Serial Number Register 1 0E3 235 SN2 Serial Number Register 2 OE4 235 SN3 Serial Number Register 3 OE5 236 CHIPID Chip ID Register OE6 236 RSSIRX RSSI Readout Register OE7 236 RSSIPMF RSSI Peak Memory Filter Readout Register OE8 237 SPWR Signal Power Readout Register OE9 237 NPWR Noise Power Readout Register OEA 238 Table 11 Registers Reset Values Register Short Name Register Long Name Offset Address Reset Value Registers A MIDO Message ID Register 0 000 00 A MID1 Message ID Register 1 001 00 A MID2 Messag
206. l be stored into the FIFO Other bits are skipped At the end of the access frame the master has to deselect the slave unit by driving the NCS line to high NCS UT JJ SCK haneagnnti inaeenns Pigg SDI X TABY ue y eye ya yy Aid Us SM Us UO s G I E ies G s E ma Ea z Instruction n 1 data items to push into TX F high impedance Z eG Cesena Figure 30 Write TX FIFO Transparent TX Command To transfer data items chip bit via SPI in transparent TX mode the SPI master has to select the SPI slave unit first Therefore the master has to drive the NCS line to low After the instruction byte MSB first the SCK should stay static to reduce noise during transmit Note that there are 2 versions of the same command available They differ only in the LSB of the instruction The intent of this is to pre set the level of the SDI line to the level of the first TX data item chip bit A new data item is sampled every positive edge of the Baud rate generator strobe NCS JJ SCK static to reduce noise SCK running incr noise SCK T i f data item 1 JJ data item 2 data item 3 data item 4 data item n ex OCKEY a ena Instruction wrt0 1 0 when wrt0 else 1 high impedance Z e i f f E we generator Figure
207. ler SIGDET threshold levels but then the FAR performance will worsen signal power better FAR performance SDTHR level area NS s IS better MER BER performance high SDTHR level I low SDTHR level Figure 59 Signal Detector Threshold Level Quick Procedure to Determine Signal and Noise Detector Thresholds Preparation A setup is required with original RF hardware as in the final application The values of Signal Power Readout Register and Noise Power Readout Register can be read via the final application A complete configuration file using right modulation data rate and Run Mode Slave must be prepared and downloaded to the TDA5340 Signal Detector Threshold for ASK User Manual 83 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description Take 500 readings of Signal Power Readout Register 50 are also possible but this leads to less accurate results with no RF input signal applied noise only Calculate average and Standard Deviation Signal Detector Threshold is average plus 2 times the Standard Deviation To load the Signal Detector Threshold Level Register Wakeup and Signal Detector Threshold Level Register Run Mode register the calculated value must be rounded and converted to hexadecimals For a final application the Signal Detector Threshold should be varied to optimize the false alarm rate and the sensitivity Signal Detector Thresholds for FSK Do 500
208. ling After the MF a fractional sample rate converter SRC is applied using linear interpolation Depending on the data rate decimation is adjusted within the range 1 2 Finally at the output of the fractional SRC the sampling rate is adjusted to 8 samples per chip for further processing To distinguish whether the incoming signal is really a signal or only noise adequate detectors for ASK and FSK are built in Signal and Noise Detector The Signal Detector decides between acceptable and unacceptable data e g noise This decision is taken by comparing the signal power of the actually received data Signal Power Readout Register with a configurable threshold level registers Signal Detector Threshold Level Register Wakeup and Signal Detector Threshold Level Register Run Mode which must be evaluated In case the actual signal power is above the threshold acceptable data has been detected To decide in case of FSK whether there is a data signal or simply noise at the output of the rate adapter there is a Noise Detector implemented The principle is based on a power measurement of the demodulated signal The User Manual 82 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description current noise power is stored in the Noise Power Readout Register and is updated at every SPI controller access The Noise Detector is useful if data signal is transmitted with small FSK deviations In case the current noise
209. list is attached in the Appendix at the end of the document Registers for Configurations B C and D are equivalent and not shown in detail All registers with prefix A_ are related to Configuration A All these registers are also available for Configuration B C and D having the prefix B_ C_ and D_ User Manual 53 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description 6 Block Description In this section a detailed description of each building block of the TDA5340 is provided 6 1 Power Supply Circuitry The chip may be operated within a 5 Volts or a 3 3 Volts environment For operation within a 5 Volts environment supply voltage range 1 the chip is supplied via the VDD5V pin In this configuration the digital I O pads are supplied via VDD5V and the 5 V to 3 3 V voltage regulators supply all internal analog RF and digital parts analog RF section is only active in Run Modes When operating within a 3 3 Volts environment supply voltage range 2 the VDD5V VDDA VDDD and VDDRF pins must be supplied The 5 V to 3 3 V voltage regulators are inactive in this configuration The internal digital core is supplied by an internal 3 3 V to 1 5 V regulator The regulators for the digital section are controlled by the signal at P ON Power On pin A low signal at P ON disables all regulators and set the IC in Power Down Mode A low to high transition at P ON enables the regulators for the digital s
210. m 2 2 Block Overview The TDA5340 is separated into the following main blocks RF IF Receiver Power Amplifier e Crystal Oscillator and Clock Divider Sigma Delta Fractional N PLL Synthesizer e ASK FSK Demodulator inc AFC and AGC e RSSI Peak Detector Digital Baseband Receiver Digital Baseband Transmitter e Power Supply Circuitry System Interface System Management Unit 3 Operating Modes NCS SDI SDO SCK The transceiver has three different power saving modes two receive modes and a transmit mode The different operating modes are used to adjust the transceiver functionality to the needs of the application Depending on the User Manual 23 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Operating Modes used communication protocols the appropriate power saving mode can be selected In the table below all different modes are listed and corresponding to the modes the active blocks and current consumptions are shown Table 2 Operating Modes Operating Mode Transceiver Blocks typ Current Dig Vreg Ana Vreg XTAL SFR SPI PLL PA RX Consumption Power Down OFF OFF OFF OFF OFF OFF OFF OFF 0 9pA Deep Sleep ON OFF OFF ON OFF OFF OFF OFF 7uA Sleep ON OFF ON ON ON OFF OFF OFF 40 pA Sleep ADC enabled ON ON ON ON ON OFF OFF OFF 1mA Transmit Ready ON ON ON ON ON JON OFF OFF 5 8mA Transmit Idle ON ON ON ON ON OFF OFF O
211. n 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Operating Modes FSM State EOM Check HOLD INIT wat till ync Wri CM Write x Wi SPI Command I 1 i a 12us 2 0MHz i I l 40us Figure 8 HOLD State Behavior INITPLLHOLD disabled In case of large frequency steps an additional VAC routine VCO Automatic Calibration has to be activated when recovering from Hold Mode INITPLLHOLD bit in RX Control Register The maximum allowed frequency step in Hold Mode without activation of VAC routine depends on the selected frequency band The limits are 1 MHz for the 315 MHz band 1 5 MHz for the 434 MHz band and 3 MHz for the 868 915 MHz band When this additional VAC routine is enabled the TDA5340 starts initialization of the Digital Receiver block after release from Hold Mode and an additional Channel Hop time tt IL FSM State EOM Check HOLD vac VAC INIT pila 3t Instruction Address Data Instruction Address Instruction Address Data J1 SPI Command Wri C0 HOLD 1 Write x_CHCFG sel other Write CMCO HOLD 0 0x02 0x02 channel 0x02 I 12us 2 0MHz te l l it a Pid hHop gt i l I s 40us it gt Figure 9 HOLD State Behavior INITPLLHOLD enabled Hold Mode is only available in Run Mode Slave Configuration changes in Self Polling Mode have to be done by switching to SLEEP Mode and returning to Self Polling Mode aft
212. n Page 103 WUBCNT is not used This is the weakest wake up data criterion and should be avoided User Manual 94 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description Reset m SSync Search Time Elapsed 1 N Init Wakeup Unit SSync 1 SSync 1 SSync 1 SSync 1 Wakeup Criteria Pattern Detection Wakeup Criteria Random Bits Detection Wakeup Criteria Equal Bits Detection Wakeup Criteria Valid Data Rate Detection ctio WUW Chip Counter SSyneso 2 WUBCNT y Pattern Detection Random Bits Detectio WUW Chip Counter WUBCNT SSync 0 Equal Bits Detection M WUW Chip GE ru CountersWUBCNT e Bit Change Detected 1 a SSync 0 cv 1 WUW Chip Counter elapsed WUW Chip Counter elapsed WUW Chi t p Counter elapsed WUW Chip Counter Pattern Match 1 WUW Chip Counter WUBCNT WUW Chip Counter WUBCNT Wake Up d A WU 1 No WU 0 IW No Wake Up E WU 0 No WU 1 Figure 66 Wake Up Data Criteria Search 6 13 15 Frame Synchronization The Frame Synchronization Unit Framer synchronizes to a specific pattern to identify the exact start of a payload data frame within the data stream This pattern is called Telegram Start Identifier TSI There are different TSI modes selectable via the configuration in register TSI Detection Mode Register e 16 Bit TSI Mode supporting a TSI length of up to 16 bits or 32 chips 8 Bit Parallel TSI Mode suppo
213. n SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description WURSSIBH3 7 0 Ww Wake Up on RSSI Blocking Level HIGH for Channel 3 when RSSI is selected as WU criterion or FFB criterion Reset 00 RSSI Wake Up Threshold for Channel 4 Register A WURSSITHA4 Offset Reset Value RSSI Wake Up Threshold for Channel 4 024 00 Register 7 0 WURSSITHA w Field Bits Type Description WURSSITH4 7 0 w Wake Up on RSSI Threshold level for Channel 4 Wake Up Request generated when actual RSSI level is above this threshold Reset 00 RSSI Wake Up Blocking Level Low Channel 4 Register A_WURSSIBL4 Offset Reset Value RSSI Wake Up Blocking Level Low Channel 4 025 FF Register 7 0 WURSSIBL4 i ll li ll w Field Bits Type Description WURSSIBL4 7 0 Ww Wake Up on RSSI Blocking Level LOW for Channel 4 Reset FF RSSI Wake Up Blocking Level High Channel 4 Register User Manual 139 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview A WURSSIBHA Offset Reset Value RSSI Wake Up Blocking Level High Channel 026 00 4 Register 7 0 WURSSIBHA li I I I w Field Bits Type Description WURSSIBH4 7 0 Ww Wake Up on RSSI Blocking Level HIGH for Channel 4 when RSSI is selected as WU criterion or FFB criterion Reset 00 Signal Recognition Threshold Register
214. nce the digital FSK demodulator determines the exact frequency offset between the received input frequency and the programmed input center frequency of the receiver this offset can be corrected through the sigma delta control of the PLL As shown in Figure 52 for AFC purposes a parallel demodulation path is implemented This path does not contain the digital low pass filter PDF Pre Demodulation Filter The entire IF bandwidth filtered by the analog bandpass filter only is processed by the AFC demodulator There are two options for the active time of the AFC loop always on active for a programmable time relative to a signal identification event several options can be programmed in SFR Start Conditions AFCSTART in AFC Start Freeze Configuration Register OFF AFC Deactivated Direct ON AFC always on Start on RSSI event AFC will start if RSSI level is above threshold which can be selected in RSSI Wake Up Threshold for Channel 1 Register Start on Signal recognition event AFC will start if the Signal recognition condition is fulfilled see Data Filter and Signal Detection on Page 82programmed User Manual 71 Revision 1 0 17 02 2012 TDA5340 In fineon SmartLEWIS TRX Block Description Freeze Conditions AFCFREEZE in AFC Start Freeze Configuration Register Stay ON AFC is always searching Freeze on RSSI event Delay If the RSSI level is above the configured RSSI threshold in RSSI Wake Up Thr
215. nd PP1 Configuration Register PPCFGO PPO and PP1 Configuration Register Offset 0A1 Reset Value 50 PP1CFG PPOCFG Ww Ww Field Bits Type Description PP1CFG T 4 w Port Pin 1 Output Signal Selection 0000 CLK_OUT 0001 RX_RUN 0010 NINT 0011 ANT_EXTSW1 0100 ANT_EXTSW2 0101 DATA 0110 DATA_MATCHFIL 0111 LOW 1000 CH_DATA 1001 CH_STR 1010 RXD 1011 RXSTR 1100 TXSTR 1101 HIGH 1110 n u 1111 TRISTATE Reset 5 User Manual 193 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description PPOCFG 0000 CLK OUT 0001 RX RUN 0010g NINT 0011 ANT EXTSW1 0100 ANT EXTSW2 0101 DATA 01105 DATA MATCHFIL 0111 LOW 1000 CH DATA 1001 CH STR 1010 RXD 1011 RXSTR 1100 TXSTR 1101 HIGH 1110 n u 1111 TRISTATE Reset 0 3 0 Ww Port Pin 0 Output Signal Selection PP2 and PPRF Configuration Register PPCFG1 Offset Reset Value PP2 and PPRF Configuration Register 0A2 F2 7 4 3 0 T T T T PPRFCFG PP2CFG Ww Ww User Manual 194 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description PPRFCFG 7 4 Port Pin RF Output Signal Selection 0000 n u 0001 RX_RUN 0010 NINT 0011 ANT_EXTSW1 0100 ANT_EXTSW2 0101 DATA 0110 DA
216. ndependent registers User Manual 42 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX System Interface 1 8 ju 8 u 8 u B 1 B SCK AJA A A AA A 144 A 1 1 141A A A A A A A A A A AAA A A AE Data Byte i Data Byte i 1 Yers IBS high impedance Z Data Byte i x Instruction Register Start Address 73 gt SDO Figure 26 Burst Write Registers Read Command To read from the device the SPI master has to select the SPI slave unit first Therefore the master must set the NCS line to low After this the instruction byte and the address byte are shifted in on SDI and stored in the internal instruction and address register The data byte at this address is then shifted out on SDO After completing the read operation either the master sets the NCS line to high or continues with another SPI command ncs Fi Fi lt rame gt a rame jl 1 m ay 4 s 1 s t a 4 8 s fA EUR THULE LAR Jeyrreoeeoeres
217. nerated by the AFC can be limited by means of the AFC Limit Configuration Register This limit can be used to avoid the AFC from drifting in the presence of interferers The bandwidth and thus settling time of the loop is programmed by means of the integrator gain coefficients K1 and K2 AFC Integrators Gain Coefficients Register 0 and AFC Integrators Gain Coefficients Register 1 K1 mainly determines the bandwidth K2 influences the dynamics damping overshoot smaller K2 means smaller overshoot but slower dynamics The bandwidth of the AFC loop is approximately 1 8 K1 when K1 K2 To avoid residual FM limiting the AFC BW to 1 20 1 40 of the bit rate is suggested therefore K1 must be set to approximately 1 40 1 70 of the bit rate For most applications K2 can be set equal to K1 overshoot is then lt 15 When very fast settling is necessary K1 and K2 can be increased up to bit rate 10 however in this case approximately 1dB sensitivity loss has to be expected due to the AFC counteracting the input FSK signal User Manual 73 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description 6 13 5 Digital Automatic Gain Control AGC Automatic Gain Control AGC is necessary mainly because of the limited dynamic range of the on chip bandpass filter BPF The dynamic range reduces to less than 60dB in case of minimum BPF bandwidth AGC is used to cover the following cases ASK demodulation at large in
218. nfiguration in Self Polling Mode after EOM detected in Run Mode Self Polling Og Continue with Configuration A in Self Polling Mode 1g Continue with next Configuration in Self Polling Mode Reset 0 User Manual 219 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description TOTIM2NCH 4 Ww Continue with next RF channel in Self Polling Mode after TOTIM detected in Run Mode Self Polling In case of single RF channel application this means continue with next Configuration instead of continue with next RF channel Og Continue with Configuration A in Self Polling Mode 1g Continue with next RF channel in Self Polling Mode Reset 0 INITRXFIFO 3 w Initialization of the RX FIFO at Cycle Start This Initialization of the RX FIFO can be configured in both Run Mode Slave and Self Polling Mode In Run Mode Slave this happens at the beginning In Self Polling Mode the initialization is done after Wake up found switching from Self Polling Mode to Run Mode Self Polling Og Initialization disabled 1g Initialization enabled Reset 0 FSINITRXFIF 2 Ww Initialization of the RX FIFO at Frame Start O Og Initialization disabled 1g Initialization enabled Reset 1 RXFIFOLK 1 Ww Lock Data in RX FIFO at EOM Og RX FIFO lock is disabled 1g RX FIFO lock is enabled at EOM Reset Op HOLD 0 Ww Holds the chip in the
219. nlinear function which can be seen in Figure 53 The limited resolution of the DELOG output causes input signals to be mapped to the minimum possible output level Therefore signal normalization is needed to shift the signal up into a region of the RSSI curve where a proper input output mapping in the DELOG block is possible This signal normalization is achieved by using a Peak Memory Filter PMF before de logarithmic see Figure 52 Delog output linear domain Signal range after delog x a proper input output mapping possible 25 1 PP I aaa mapping problem due to limited resolution L dynamic range 80dB j Input power 110dBm 30dBm Figure 53 DELOG Function Basically the task of the PMF is to follow the peaks of the input RSSI signal To achieve fast settling and to reduce distortion introduced by the signal normalization the PMF should be setup with a fast attack PMFUP coefficient and a slow decay coefficient PMFDN see Peak Memory Filter Up Down Factor Register The output from the PMF is used to normalize the digital RSSI signal and is finally shifted and delogarithmized In general it can be stated that the faster the Up coefficient and the slower the decay coefficient the better sensitivity performance values can be achieved But it has also to be stated that the slower the decay coefficient the receiver will have more memory to interferes and the interframe time with high power differences w
220. nsitive applications the integrated IF filter and the internal RX TX switch may be used but the transceiver enables also the flexibility to build a very robust system against interferer using external frontend and IF filters The device is qualified according to automotive quality standards and operates between 40 and 110 C at supply voltage ranges of 3 0 3 6 Volts or 4 5 5 5 Volts A fully integrated Sigma Delta Fractional N PLL Synthesizer with high frequency resolution and a crystal oscillator as reference generates the necessary frequencies for the power amplifier or down conversion mixers The on chip temperature sensor may be utilized for temperature drift compensation of the crystal oscillator The receiver portion is realized as a double down conversion super heterodyne low IF architecture each with image rejection supplemented by digital signal processing in the baseband This architecture enables outstanding sensitivity performance in combination with very good blocking performance values The transmitter section comprises a class C E power amplifier with a high efficiency and an output power level of 14 dBm A tuning feature for the output power is possible via several switchable parallel output stages of course matching to lower power levels is always possible For higher power applications an external power amplifier can be used and the internal PA serves as a power driver For ASK modulation a programmable data shaping is provid
221. nt The AFC will be unfrozen if the Signal recognition condition is not fulfilled anymore An unfreeze will be generated only if the Signal recognition condition is fulfilled and changes to loss of Signal recognition negative edge detection Unfreeze on NOT Symbol Synchronization SYNC After loss of SYNC the AFC will be started again The unfreeze happens only if a SYNC was generated and a transition to loss of SYNC has occurred negative edge detection The TDA5340 provides also the functionality that the host controller can unfreeze the AFC by the AFCMANUF bit in the External Processing Command Register The programming of the active time is especially necessary in case the expected frame structure contains a gap noise between wake up and payload in order to avoid the AFC from drifting AFC works both for FSK and ASK In the latter case the AFC loop can be forced to regulates only during ASK data high see AFCBLASK bit in AFC Start Freeze Configuration Register For safety reasons it is recommended to use for the same condition for freeze and unfreeze If the unfreeze condition is on a later stage in the signal processing chain the possibility definitely exists that this event does not occur For example if the freeze condition is set to RSSI and the unfreeze condition is set to SYNC it may happen that an interferer is freezing the AFC on a wrong frequency and the unfreeze condition of SYNC is never reached The maximum frequency offset ge
222. o configuration sets for the sake of clarity Related registers are User Manual 60 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description On Time for each configuration Self Polling Mode On Time Config A Register 0 Self Polling Mode On Time Config A Register 1 Self Polling Mode On Time Config B Register 0 Self Polling Mode On Time Config B Register 1 Self Polling Mode On Time Config C Register 0 Self Polling Mode On Time Config C Register 1 Self Polling Mode On Time Config D Register 0 and Self Polling Mode On Time Config D Register 1 Off Time Self Polling Mode Off Time Register 0 and Self Polling Mode Off Time Register 1 Idle periods Self Polling Mode Idle Periods Register Active periods Self Polling Mode Control Register i fsys 164 SPM far SPM for SPM Reference Timer On Off Timer gt Active Idle Period Timer 8 Bit 14 Bit 7 Bit SPMRT SPMOFFT1 SPMONTx1 SPMOFFTO o x E z Q a G Timer Control Timer Control Timer Status Timer Control Timer Status Self Polling Mode SPM No WU FSM Polling Mode Receiver Enable o Master Control Unit Figure 47 Polling Timer Unit Calculation of On time The On time must be long enough to ensure proper detection of a specified wake up criterion Therefore the On time depends on the wake up pattern and the wake up criterion It has to include
223. oller to the TDA5340 the transceiver provides status information e g the status of a data reception as response to a request it has received from the Application Controller and the e TDA5340 autonomously alerts the Application Controller that a certain configurable event has occurred e g that a packet has been received successfully the FIFO buffer needs a reload Configuration and status information are sent via the 4 wire SPI interface as described in Digital Control 4 wire SPI Bus on Page 41 The configuration data determines the behavior of the transceiver which comprises Scheduling the inactive power saving modes as well as the active receive transmit modes User Manual 34 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX System Interface Selecting the properties of the RF IF interface configuration e g carrier frequency selection filter settings configuring the properties of the frames configuring the properties of the frames e g wake up patterns Telegram Start Identifier TSI and optionally specifying the position format and content of patterns within packets that stimulate a certain configurable alerting behavior Message ID Note that the TDA5340 transceiver IC supports reception of multiple configuration sets on multiple channels in a time based manner without reconfiguration Thus the RF IF interface as well as the frame format properties support alternative settings wh
224. on 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX 4 Byte Organized Message ID Block Description In this mode four bytes are merged to define an ID Pattern This does not mean that the ID must be exact four bytes long The number of bytes used is defined in the MIDNTS bits in the Message ID Control Register 1 Up to 5 ID Patterns are available x MIDO x MID1 x MID2 x_MID3 x_MID4 x_MID5 x_MID6 x_MID7 x_MID8 x_MID9 x_MID10 x_MID14 x_MID12 x_MID13 x_MID14 x_MID15 x_MID16 x_MID17 x_MID18 x_MID19 Combiner Organization MID0 MID3 3 MID4 MID7 3 MID8 MID11 32 MID16 MID19 32 2 2 Line Selector Bit Counter Reached Scan Start Position Reached Scan End Position Number of Startbi Enable Scanner MID match Control FSM MID found MID Scanning finished Interface to Master FSM Init MID Scanner Enable MID Scanning t x MIDC1 Figure 76 4 Byte Message ID Scanning User Manual Data Clock Data from Digital Receiver 101 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description 2 Byte Organized Message ID In this mode two bytes are merged to define an ID Pattern Up to 10 patterns are possible x_MIDO MIDO MID1 16 16 16 16 6 Line Selector Scanner Combiner x_MID10 x MID 11 MID match x_MID12 x_MID13
225. oscillator signal To accelerate the start up time of the crystal oscillator two modes are selectable a Low Power Mode with lower precision and a High Precision Mode Features Power Amplifier with up to 14 dBm output power Sigma Delta PLL with a resolution down to 10 5 Hz Receiver with integrated configurable IF Filter and outstanding sensitivity performance e On chip transmit receive switch Two receiver inputs supporting antenna diversity and multiband operation 4pre programmable configuration sets with self polling and channel scan capabilities e Autonomous scanning of up to 16 receive channels e Power ramping and Gaussian filtering of transmit data User Manual 22 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX 2 1 Functional Block Diagram CER opt IF OUT Z IF IN LNA INP Operating Modes RSSI XTAL1 LNA_INN RF_OUT 1 21 948 MHz XTAL2 Kisys fsys Y Y Envelope Shaping Gauss Filter Encoding Baud Rate Generator TX FIFO Interrupt Control Port Pin Control Finite State Machine A PDF D FM Demodulator AFC AGC BINOS Diversity RSSI Data Filter avg peak Polling Timer Slicer CDR Decoding RX FIFO SPI Interface VDDRF VDDA Power Supply P ON VDD5V VDDD VDDD1V5 PPO PP2 PPRF Figure4 TDA5340 Block Diagra
226. power Noise Power Readout Register is below the configurable threshold register FSK Noise Detector Threshold Register a data signal has been detected The Signal Recognition mode must be configured based on whether ASK or FSK modulation is used Signal Recognition can be a combination of Signal Detector and Noise Detector Signal Detector Squelch only related registers Signal Detector Threshold Level Register Wakeup and Signal Detector Threshold Level Register Run Mode and Signal Power Readout Register This mode is generally used for ASK Noise Detector only related registers FSK Noise Detector Threshold Register and Noise Power Readout Register Signal and Noise Detector simultaneously Signal and Noise Detector simultaneously but the FSK noise detect signal is valid only if the Signal Detector Threshold Low Level Register threshold is exceeded This is the recommended FSK mode if minimum FSK deviation is not sufficient to use Signal Detector only Signal Recognition can also be used as Wake up on Level criterion see Wake Up Generator on Page 90 Figure 59 shows the system characteristics to consider in choosing the best Signal Detector level On the one hand a higher SIGDET threshold level must be set for achieving good FAR False Alarm Rate performance but then the MER BER Message Error Rate Bit Error Rate performance will decrease On the other hand the MER BER performance can be increased by setting smal
227. ption AFCK1 7 0 Ww AFC Filter coefficient K1 bits 7 0 K1 AFCK1 Reset 004 AFC Integrators Gain Coefficients Register 1 User Manual 146 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview A_AFCKCFG1 Offset Reset Value AFC Integrators Gain Coefficients Register 1 034 00 7 5 4 0 AFCK2SEL AFCK1 w w Field Bits Type Description AFCK2SEL 7 5 W AFC Filter coefficient K2 division factor selection K2 K1 y AFCK2SEL 000 y 1 001 y 1 2 010 y 1 3 011 y 1 4 100 y 1 5 6 101 y 1 7 1 110 y 1 9 111 y 1 11 Reset 0 AFCK1 4 0 WwW AFC Filter coefficient K1 bits 12 8 K1 AFCK1 Reset 00 Peak Memory Filter Up Down Factor Register A PMFUDSF Offset Reset Value Peak Memory Filter Up Down Factor Register 035 424 7 6 4 3 2 0 Res PMFUP Res PMFDN r w r s Field Bits Type Description Res for future use Reset 0 User Manual 147 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description PMFUP 6 4 Ww Peak Memory Filter Attack Up Factor 000 2 1 001 2 2 010 2 3 011 24 4 100 24 5 101 24 6 110 24 7 111 24 8 Reset 4 Res 3 r for future use Reset 0 PMFDN 2 0 Ww Peak Memory Filter Decay Down Factor additional to Attack Factor 000 24 2 001 24 3 010 24 4 011 24 5 100
228. put signals e RSSI reading at large input signals Improve IIP3 performance in either FSK or ASK mode The IF buffer PPFBUF see Block Diagram RF Receiver Section on Page 56 can be fine tuned manually by means of 4 bits thus optimizing the overall gain to the application attenuation of OdB to 12dB by means of IFATTO to IFATT 15 This buffer allows the production spread of external components to be trimmed or reducing the gain in case of external LNA The gain of the 2 IF path is set to three different values by means of an AGC algorithm Depending on whether the receiver is used in single down conversion or in double down conversion mode the gain control in the 2 IF path is either after the 2 poly phase network or in front of the 2 mixer The AGC action is illustrated in the RSSI curve below Analog blue amp digital black RSSI output Mixer2 saturation AGC OFF BPF saturation Analog AGC attack point Analog AGC decay point e CIE Frontend FATTO q TTO noise xgain 8 z Limiter ee noise floor B Input power 4e Q gt 3 8 a o Figure 54 Analog RSSI output curve with AGC action ON blue vs OFF black Digital RSSI AGC and Delog In order to match the analog RSSI signal to the digital RSSI output a correction is necessary It adds an offset RSSI Offset Register and modifies the slope RSSI Slope Register such that standardized AGC levels and an appropriate DELOG table
229. r Periods Reset 014 User Manual 210 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Self Polling Mode Control Register RegistersGenerated Registers Overview SPMC Offset Reset Value Self Polling Mode Control Register OBB 08 7 3 2 1 0 SPMAP SPMAIEN SPMSEL w w w Field Bits Type Description SPMAP 7 3 W Self Polling Mode Active Periods value Min 01h 1 Master Period Max 1Fh 31 Master Periods Reg value 00h 32 Master Periods Reset 014 SPMAIEN 2 W Self Polling Mode Active Idle Enable Og Disabled 1g Enabled Reset 0 SPMSEL 1 0 w Self Polling Mode Selection 00 Constant On Off COO 01 Fast Fall Back to Sleep FFB 10 Mixed Mode MM Combination of Const On Off and Fast Fall Back to Sleep for different Configurations COO FFB FFB FFB 11 Permanent Wake Up Search PWUS Reset Op Self Polling Mode Reference Timer Register SPMRT Offset Reset Value Self Polling Mode Reference Timer Register OBC 01 7 0 SPMRT w User Manual 211 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description SPMRT 7 0 WwW Self Polling Mode Reference Timer value The output of this timer is used as input for the On Off Timer Incoming Periodic Time 64 fsys Output Periodic Time TRT 64 SPMRT fsys Min 01h 64 1 fsys Max 0
230. r further data processing SelfPolling Mode SelfPolling scenario ConfigA ConfigB OFF time Sleep Mode RSSI level too low gt T Interrupt signal i i i S pt sig 4 Chip stays in Self Polling Mode for RSSI and sends no interrupt 0 5 RunMode SelfPolling 2 SelfPolling Sleep C E 5 Interrupt signal o for RSSI E E RunMode SeifPolling 4 uC detects invalid data and sends e EXTTOTIM gt goto SPM SelfPolling Sleep z T S Interrupt signal p for RSSI 2 amp C finished data reception RunMode SelfPolling sends EXTEOM found 8 SelfPolling Sleep Figure 22 External Data Processing The SFR bit group EXTPROC in the Channel Configuration Register can be activated for each configuration set for an easier handling of external data processing by the Application Controller Depending on the intended transparent receive mode an activation of this function means Data path in front of Framer Unit is no longer closed so that no data is going into Framer Unit accidentally Interrupts for FSync MID and EOM are deactivated internally Some all TOTIM counters are deactivated Some all Wake up on Data Criteria are disabled e Wake up on Signal Recognition is is not disabled 4 3 3 TX FIFO Modes The transmit FIFO can be used to reduce the real time requirements of the host Micro controller The transmit FIFO can be loaded with a SPI command which is described in Figure 30 We distinguis
231. r software in the application controller data interface TDA5340 es scheduler Figure 21 Data interface for the Transparent Modes TMMF TMRDS RF Interface Application Controller Transparent Mode Raw Data Slicer TMRDS This mode supports processing of data even without bi phase encoding by providing the received data via the One Chip Matched Filter on the DATA signal PPx pin See more details in the block diagram in Figure 58 Sensitivity in this transparent mode significantly depends on the implemented clock and data recovery algorithm of the user software in the application controller The data interface can be seen from Figure 20 Self Polling mode is possible as well but only Constant On Off Mode and Wakeup on RSSI makes sense Assume one of the TDA5340 configurations e g Configuration B is set for external data processing mode See also example in Figure 22 The needed On time latency through TDA5340 is configured in the corresponding On time registers of the chip The interrupt for Wake Up Config B WUB is enabled and suitable RSSI thresholds are set If the RSSI signal is in a valid threshold area the TDA5340 changes to Run Mode Self Polling and an interrupt can be signaled to the Application Controller In case the RSSI signal is outside the valid threshold area the chip stays in Self Polling Mode and the external controller gets no interrupt as the desired RSSI level is not reached It should be mentioned t
232. rValue to the ASLDIV 2 6 12 2 FSK and GFSK Modulation The FSK modulation is done with the Sigma Delta PLL by changing the division factor of the divider This technique allows a very precise adjustment of the frequency deviation The wanted frequency deviation can be selected by using a scaling FDEVSCALE and a division factor FDEV in TX Frequency Deviation Register The calculation of the different register can be found in the equation below f SYS FDEVSCALE 6 E ud FDEF gr oM 2 10 As shown in the equation the FDEFSCALE defines the resolution and the maximum achievable frequency deviation This means the higher the wanted frequency deviation the lower the provided resolution Gaussian Filter With the Gaussian Filter the baseband data can be shaped to reduce the occupied bandwidth of the RF signal The functionality can be enabled with the GFSKEN bit in the TX Configuration Regsiter register The resulting gaussian filter division factor GFDIV TX Data Shaping Configuration Register 1 and TX Data Shaping User Manual 68 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description Configuration Register 2 out of the required BT can be seen in the equation below where the division factor is equation is different for bi phase encoded data and NRZ coded data GFDIV yp ise m a g DataRate 2 16 BT 11 GFDIV gz J d DataRate 16 BT 12 6 13 Receiver Baseband The IC comprises two
233. readings of Signal Power Readout Register with no RF input signal applied noise only Calculate average and Standard Deviation Signal Detector Threshold is average plus 2 times the Standard Deviation Of course this value has to be rounded and converted to hexadecimal For a final application the Signal Detector Threshold should be varied to optimize the false alarm rate and the sensitivity Verification if Squelch only is possible Apply a bit pattern e g PRBS9Q with correct data rate at about 80 dBm input signal power and minimum FSK deviation to the RF input Do 500 50 readings of Signal Power Readout Register calculate average minus three times the Standard Deviation This value should be higher than the calculated Signal Detector Threshold calculated above If this is not the case Signal Detector AND Noise Detector must be used Noise Detector Threshold Do 500 readings of Noise Power Readout Register with no RF input signal applied noise only Calculate average and Standard Deviation Noise Detector Threshold is average minus the Standard Deviation Round this value and convert it to hexadecimal For a final application the Noise Detector Threshold should be varied to optimize false alarm rate and sensitivity Signal Detector Low Threshold The Signal Detector Low Threshold is always required in combination with the Noise Detector Set register bit SDLORE to 1 in register Signal Detector Configuration Register Apply a bit pattern e
234. rent TX mode if baudrate synchronization enabled Og Not detected 1g Detected Reset 14 TXAF 4 rc Interrupt Request by TX FIFO Almost Full Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 1 TXAE 3 rc Interrupt Request by TX FIFO Almost Empty Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 14 TXEMPTY 2 rc Interrupt Request by TX FIFO Empty Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 1 SYSRDY 1 rc Interrupt Request by System Ready Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 1 RXAF 0 rc Interrupt Request by RX FIFO Almost Full Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 14 Interrupt Status Register 0 ISO Offset Reset Value Interrupt Status Register 0 0D4 FF 7 6 5 4 3 2 1 0 EOMB MIDFB FSYNCB WUB EOMA MIDFA FSYNCA WUA rc rc rc rc rc rc rc rc User Manual 226 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description EOMB 7 rc Interrupt Request by End of Message from Configuration B Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 1 MIDFB 6 rc Interrupt Request by Message ID Found from Configuration B Reset event sets all Bits to 1 Og Not detected 1g Detected Reset 14 FSYNCB 5 rc Int
235. rite Address Pointer outruns the Read Address Pointer an overflow is indicated in the FIFO Overflow Status bit in the FIFO Read Status Word at position S7 All 32 FIFO bits and the bits S5 to SO of the Status Word are undefined while the Overflow Status bit is set If a TSI is detected after an overflow the FIFO Overflow Status bit is cleared and the entire receive FIFO is initialized Initialization Additionally there are two possibilities to initialize the receive FIFO If the INITFIFO bit is set in the RX Control Register Init FIFO at Cycle Start the entire receive FIFO is always initialized after switching to Run Mode Slave or switching from Self Polling Mode to Run Mode Self Polling Ifthe FSINITFIFO bit in RX Control Register is set the entire receive FIFO is initialized when a TSI is detected and the receive FIFO is not locked Init FIFO at Frame Start Last received message length For application protocols with several payload frames and only a short pause in between the micro controller would have to read out the FIFO very fast after detection of an EOM Thus even slow or overloaded Application Controllers have the possibility now to determine the end of the last message when reading out the FIFO while the next payload frame gets already received and payload data is further stored in the FIFO Therefore the last received message length e g after an EOM event is stored in Payload Data Length Register and the
236. rnal antenna switch 1 configuration in TX mode Og Level Low on PPx pin 1g Level High on PPx pin Reset 0 TX EXSW2 0 w External antenna switch 2 configuration in TX mode Og Level Low on PPx pin 1g Level High on PPx pin Reset 1 User Manual 201 Revision 1 0 17 02 2012 Infineon RF Control Register RFC RF Control Register TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Offset Reset Value 0AB E7 Res Field Bits Type Description IFATT 3 0 WwW Adjust IF attenuation from LNA_IN to IF_OUT Double Down Conversion Single Down Conversion 0000 0 dB n u 0001 0 8 dB n u 0010 1 6 dB n u 0011 2 4 dB n u 0100g 3 2 dB 0 dB 0101 4 0 dB 0 8 dB 0110 4 8 dB 1 6 dB 0111 5 6 dB 2 4 dB 1000 6 4 dB 3 2 dB 1001 7 2 dB 4 0 dB 1010g 8 0 dB 4 8 dB 1011 8 8 dB n u 1100 9 6 dB n u 1101 10 4 dB n u 1110g 11 2 dB n u 1111 12 0 dB n u Reset 74 XTAL Coarse Calibration Register XTALCALO Offset Reset Value XTAL Coarse Calibration Register OAE 90 5 4 0 XTALLPC XTALHPC w w User Manual 202 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description XTALLPC 7 5 WwW XTAL Low Precision Mode Capacitor Value Min Oh OpF Max 7h 7pF Reset 4 XTALHPC
237. rrupt on Message ID Found for Configuration D Og Interrupt enabled 1g Interrupt disabled Reset 0 IMFSYNCD Mask Interrupt on Frame Sync for Configuration D Op Interrupt enabled 1g Interrupt disabled Reset 0 User Manual 208 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description IMWUD 4 w Mask Interrupt on Wake up for Configuration D Og Interrupt enabled 1g Interrupt disabled Reset 0 IMEOMC 3 w Mask Interrupt on End of Message for Configuration C Og Interrupt enabled 1g Interrupt disabled Reset Op IMMIDFC 2 w Mask Interrupt on Message ID Found for Configuration C Og Interrupt enabled 1g Interrupt disabled Reset 0 IMFSYNCC 1 w Mask Interrupt on Frame Sync for Configuration C Og Interrupt enabled 1g Interrupt disabled Reset 0 IMWUC 0 w Mask Interrupt on Wake up for Configuration C Og Interrupt enabled 1g Interrupt disabled Reset Op Interrupt Mask Register 2 IM2 Interrupt Mask Register 2 Offset 0B9 5 4 2 1 Reset Value 00 IMTXE IMTXR IMTXDS IMTXAF IMTXAE IMTXEMP TY IMSYSRD Y IMRXAF Ww Ww Ww Field Bits Type Description IMTXE Mask Interrupt on TX Error PLL out of lock or VAC error 0g Interrupt enabled 1g Interrupt disabled R
238. rting two independent TSI pattern of up to 8 bits length each Different payload length is possible for these two TSI pattern e 8 Bit Extended TSI Mode identical to 8 Bit Parallel TSI Mode but identifies which pattern matches by adding a single bit at the beginning of the data frame 8 Bit TSI Gap Mode supporting two independent TSI pattern separated by a discontinuity All SFRs configuring the Frame Synchronization Unit support the Multi Configuration capability Config A B C and D The Framer starts working in Run Mode Slave after Symbol Sync found and in Self Polling Mode after wake up found and searches for a frame until TSI is found or synchronization is lost The input of the Framer is a sequence of Bi phase encoded data chips or NRZ data Basically the Framer consists of two identical correlators of 16 chips in length It allows a Telegram Start Identifier TSI to be composed of Bi phase encoded Zeros and Ones The active length of each of the 16 chips correlators is defined independently in the TSI Length Register A and TSI Length Register B The pattern to match is defined as a sequence of chips bits in the TSI Pattern Data Reference A Register 0 TSI Pattern Data Reference A Register 1 TSI Pattern Data Reference B Register 0 and TSI Pattern Data Reference B Register 1 Note that the RUNIN length shown in the figures below is the maximum needed RUNIN with the length of 8 chips Further details on the needed RUNIN time of the recei
239. s section the Synchronization Search Time Out Synchronization Search Time Out Register and the Inter Frame Time The processing sequence of a payload frame is shown in Figure 80 User Manual 103 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description pit data RUNIN TSI RUNIN 2 CDR input i uid RUNIN TSI RUNIN I l a ec chip data availablb I l PLL re synchronization I l II data available l TSI 5 RUNIN I II u l T4 T l l I rei T Im l T2 4 T21 PEU lt 2 lt gt I Ts I f symbol sync found 1 Figure 80 Data Latency The overall system latency time is calculated in two steps T1 is the delay between ADC input ASK limiter output FSK and the CDR input and T2 is the time between Symbol Sync Found and the Framer output decoded data available T4 is the time between Symbol Sync Found and Chip Data output RX mode TMCDS T4 1 T T is the nominal duration of one data bit T1 latency time include T1 12 5us 2 T digital frontend processing delaymatched filter computation timesignal detector delay T2 latency time include T2 1 5 T 0 5 T Data Slicer computation time Framer computation time The synchronization search time T3 is the time the receiver requires to search for a pattern in an incoming data stream and needs to be considered in the receivers start up phase The minimum value of the search time out length is the consequence o
240. s set to small values then the I part is less accurate residual error and can lead to a longer needed PLL settling time and worse performance in the first following bits Therefore the selected default value is a good compromise between fast symbol synchronization and accuracy performance Duty cycle and data rate acceptance limits are adjustable via registers After locking the clock must be stable and must follow the reference input Therefore a rapid settling procedure Timing Extrapolation Unit and a slow PLL are implemented If the PLL is locked the reference signal from the Clock Recovery Slicer is used in the phase detector block to compute the actual error The error is used in the PI loop filter to set the digital controlled oscillator running frequency For the P and Timing Extrapolation Unit settings the default values for the Clock and Data Recovery P Configuration Register and Clock and Data Recovery Configuration Register are recommended User Manual 88 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description The PLL will be unlocked if a code violation of more than the defined length is detected which is set in the A_TVWIN control register Another criterion for PLL re synchronization is an End Of Message EOM signalled by the Framer block The CDR PLL oscillator generates the chip clock frequency which is equal to 2 time the data rate Settling Time RUNIN length The ideal RUNIN patt
241. set 34 Wake Up Control Register A_WUC Wake Up Control Register Offset 0174 Reset Value 04 7 6 5 4 3 Res PWUEN WUPMSEL WULCUFF UFFBLCO B Oo Ww Bits Field Type Description Res 7 r for future use Reset 0 PWUEN Parallel Wake Up Mode Enable This feature can only be used when modulation type is the same for SPM and RMSP Og Disabled 1g Enabled Reset 0 WUPMSEL 5 w Wake Up Pattern Mode Selection Og Chip mode 1g Bit mode Reset 0 User Manual 132 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description WULCUFFB 4 w Select a Wake Up on Level Criterion when UFFBLCOO is enabled 0g RSSI automatically selected when A CHCFG EXTPROC 10 1g Signal Recognition Reset 0 UFFBLCOO 3 Ww Ultrafast Fall Back to SLEEP or additional Level criterion in Constant On Off Enables additional parallel processing of Level Criterion when a Data Criterion is selected in WUCRT In case of Fast Fall Back to SLEEP or Permanent Wake Up Search this mode is called UFFB Ultrafast Fall Back The same mode can be used in Constant On Off Og Disabled 1g Enabled Reset 0 WUCRT 2 0 W Select a Wake Up Criterion 000 Pattern Detection Data Criterion When A_CHCFG EXTROC 01 this setting is mapped to 34 001 Random Bits Data Criterion
242. set Value Synchronization Search Time Out Register 02A 87 7 0 SYSRCTO L ll ll ll w User Manual 141 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description SYSRCTO 7 0 Ww Synchronization search time out FFh 15 15 16 bit OOh O bit Reset 87 Timeout Timer Register 0 A_TOTIMO Offset Reset Value Timeout Timer Register 0 02B FF 7 0 TOTIM w Field Bits Type Description TOTIM 7 0 Ww Set value of Time Out Timer Timer is used to get back from Run Mode Self Polling to the Self Polling Timer is set back at new cycle start of Run Mode Self Polling TimeOut TOTIM 64 512 fsys Min 001h 1 64 512 fsys Max FFFh 4095 64 512 fsys 00h disabled Reset FF Timeout Timer Register 1 A TOTIM1 Offset Reset Value Timeout Timer Register 1 02C OF 7 4 3 0 Res TOTIM r w Field Bits Type Description Res 7 4 r for future use Reset 0 User Manual 142 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description TOTIM 3 0 w Set value of Time Out Timer Timer is used to get back from Run Mode Self Polling to the Self Polling Timer is set back at new cycle start of Run Mode Self Polling TimeOut TOTIM 64 512 fsys Min 001h 1 64 512
243. shold negative edge detection Unfreeze on NOT Signal Recognition event The ADR will be unfrozen if the Signal recognition condition is not fulfilled anymore An unfreeze will be generated only if the Signal recognition condition is fulfilled and changes to loss of Signal recognition negative edge detection Unfreeze on NOT Symbol Synchronization SYNC Afterloss of SYNC the ADR will be started again The unfreeze happens only if a SYNC was generated and a transition to loss of SYNC has occurred negative edge detection The TDA5340 provides also the functionality that the host controller can unfreeze the ADR by the ADRMANUF bit in the External Processing Command Register User Manual 81 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description The programming of the active time is especially necessary in case the expected frame structure contains a gap noise between wake up and payload in order to avoid the ADR from switching For safety reasons it is recommended to use the same condition for freeze and unfreeze If the unfreeze condition is on a later stage in the signal processing chain the possibility that this event does not occur definitely exists For example if the freeze condition is set to RSSI and the unfreeze condition is set SYNC it may happen that an interferer is freezing the ADR on a wrong frequency and the unfreeze condition of SYNC is never reached 6 13 8 Digital Baseband DBB R
244. ssage ID Register 5 005 00 7 0 MID5 w Field Bits Type Description MID5 7 0 Ww Message ID Register 5 Reset 00 Message ID Register 6 A_MID6 Offset Reset Value Message ID Register 6 0064 00 7 0 MID6 w Field Bits Type Description MID6 7 0 Ww Message ID Register 6 Reset 00 Message ID Register 7 A_MID7 Offset Reset Value Message ID Register 7 007 00 7 0 T T MID w Field Bits Type Description MID7 7 0 w Message ID Register 7 Reset 004 User Manual 125 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Message ID Register 8 RegistersGenerated Registers Overview A_MID8 Offset Reset Value Message ID Register 8 008 00 7 0 MID8 w Field Bits Type Description MID8 7 0 w Message ID Register 8 Reset 00 Message ID Register 9 A_MID9 Offset Reset Value Message ID Register 9 0094 004 7 0 MID9 w Field Bits Type Description MID9 7 0 w Message ID Register 9 Reset 00 Message ID Register 10 A MID10 Offset Reset Value Message ID Register 10 00A 00 7 0 T T MID10 w User Manual 126 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description MID10 7 0 Ww Message ID Register 10 Reset 00 Message ID Register 11 A_MID11 O
245. ster 02D FF A TOTIM TSI TSI Timeout Timer Register 02E 00 A TOTIM EOM EOM Timeout Timer Register 02F 00 A AFCLIMIT AFC Limit Configuration Register 0304 024 A_AFCAGCADRD AFC AGC ADR Freeze Delay Register 0314 00 A_AFCSFCFG AFC Start Freeze Configuration Register 032 00 A AFCKCFGO AFC Integrators Gain Coefficients Register 0 033 00 A AFCKCFG1 AFC Integrators Gain Coefficients Register 1 034 00 A PMFUDSF Peak Memory Filter Up Down Factor Register 035 424 A_AGCSFCFG AGC Start Freeze Configuration Register 036 00 A AGCCFGO AGC Configuration Register 0 037 OB A AGCCFG1 AGC Configuration Register 1 038 2Fy A_AGCTHR AGC Threshold Register 039 08 A DIGRXC Digital Receiver Configuration Register 03A 40 A PKBITPOS RSSI Peak Detector Bit Position Register 03B 00 A PDFMFC PD Filter and Matched Filter Configuration 03C 174 Register A_PDECF Pre Decimation Factor Register 03D 00 A PDECSCFSK Pre Decimation Scaling Register FSK Mode 03E 00 A_PDECSCASK Pre Decimation Scaling Register ASK Mode 03F 20 A_SRC Sample Rate Converter 040 00 A EXTSLCO External Data Slicer Configuration Register O 041 02 A EXTSLC1 External Data Slicer Configuration Register 1 042 02 A EXTSLC2 External Data Slicer Configuration Register 2 043 00 A EXTSLTHRO Externel Data Slicer BW Switching Threshold 044 00 Register 0 A EXTSLTHR1 Externel Data Slicer BW Switching Threshold 045 00 Register 1 A SIGDETO Signal Detector Threshold Le
246. supply input GNDD User Manual 16 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Table 1 Pin Definition and Function Introduction PinNr Pad Name Equivalent I O Schematic Function 8 VDDD1V5 GNDD VDD1V5 Analog output 1 5V regulator 9 GNDD Digital ground 10 PPO PPO0 PP2 Digital output CLK OUT RX RUN NINT ANT EXTSW1 ANT EXTSWA1 DATA DATA MATCHFIL CH DATA CH STR RXD RXSTR TXSTR and TRISTATE are programmable via SFR default CLK OUT 11 PP1 same as PPO Digital output CLK OUT RX RUN NINT ANT EXTSW1 ANT EXTSWA1 DATA DATA MATCHFIL CH DATA CH STR RXD RXSTR TXSTR and TRISTATE are programmable via SFR default DATA User Manual 17 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Introduction Table 1 Pin Definition and Function PinNr Pad Name Equivalent I O Schematic Function 12 PP2 same as PPO Digital output CLK_OUT RX_RUN NINT ANT_EXTSW1 ANT_EXTSW1 DATA DATA_MATCHFIL CH_DATA CH_STR RXD RXSTR TXSTR and TRISTATE are programmable via SFR default NINT 13 P_ON Digital input power on reset P ON 14 XTAL1 Analog input VDDD VDDD crystal oscillator input ia b cae XTAL1 EP T T LL 4 1 nace GNDD GNDD GNDD 15 XTAL2 Analog output NEBD VDDD crystal oscillator output 4
247. t 00 Pre Decimation Scaling Register FSK Mode A_PDECSCFSK Offset Reset Value Pre Decimation Scaling Register FSK Mode 03E 00 7 6 5 4 0 Res ai PDSCALEF w w User Manual 153 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description INTPOLENF 5 w FSK Data Interpolation Enable Og Disabled 1g Enabled Reset 04 PDSCALEF 4 0 Ww Predecimation Block Scaling Factor for FSK Min OOh 2 10 Max 17h 2 13 Reset 00 Pre Decimation Scaling Register ASK Mode A PDECSCASK Offset Reset Value Pre Decimation Scaling Register ASK Mode 03F 20 7 6 5 4 0 Res Res b dm PDSCALEA I i I r w w Field Bits Type Description Res 7 f for future use Reset 0 INTPOLENA 5 w ASK Data Interpolation Enable Og Disabled 13 Enabled Reset 14 PDSCALEA 4 0 W Predecimation Block Scaling Factor for ASK Min 00h 2 10 Max 17h 2 13 Reset 00 Sample Rate Converter A SRC Offset Reset Value Sample Rate Converter 040 00 7 0 SRCNCO w User Manual 154 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview Field Bits Type Description SRCNCO 7 0 Ww Sampling Rate Conversion Factor Min OOh Fout Fin Max FFh Fout Fin 2 Reset 00 External Data Slicer Configuration Register 0 A EX
248. t 2 IMMIDFA and bit 6 IMMIDFB in Interrupt Mask Register 0 and bit 2 IMMIDFC and bit 6 IMMIDFD in Interrupt Mask Register 1 Interrupt Status bit 2 MIDFA and bit 6 MIDFB in Interrupt Status Register 0 and bit 2 MIDFC and bit 6 MIDFD in Interrupt Status Register 1 End of Message Interrupt The configured End of Message criteria is fulfilled data length loss of SYNC or Code Violation Status register and Mask registers for each configuration A B C and D separately Interrupt Mask bit 3 IMEOMA and bit 7 IMEOMB in Interrupt Mask Register 0 and bit 3 IMEOMC and bit 7 IMEOMD in Interrupt Mask Register 1 Interrupt Status bit 3 EOMA and bit 7 EOMB in Interrupt Status Register 0 and bit 3 EOMC and bit 7 EOMD in Interrupt Status Register 1 Transmitter Interrupts TX Error Interrupt The transmitter portion supports a fail save mechanism which can be signaled to the host controller by this interrupt Trigger effects for this interrupt are PLL out of lock and PLL calibration failed Interrupt Mask bit 7 IMTXE in Interrupt Mask Register 2 Interrupt Status bit 7 TXE in Interrupt Status Register 2 TX Ready Interrupt The PLL calibration is finalized and the transmitter is now ready start the transmission Interrupt Mask bit 6 IMTXR in Interrupt Mask Register 2 Interrupt Status bit 6 TXR in Interrupt Status Register 2 TX Strobe Interrupt In transparent transmit mo
249. t Parallel TSI Mode and 8 Bit Extended TSI Mode the payload length for the two independent TSI pattern may be different Therefore the payload length for TSI B pattern can be preset in the EOM Data Length Limit Parallel Mode Register while payload length for TSI A pattern can be preset in the EOM Data Length Limit Register The second criterion is the detection of a Code Violation This EOM criterion is not applicable for Data Slicer Bit mode The third criterion is the loss of symbol synchronization Depending on the Timing Violation Window Register the Sync signal persists for a certain amount of time after the end of the pattern has been reached Therefore more bits could be written into the FIFO than sent The three EOM criteria can be combined with each other If one of the selected EOM criteria is fulfilled an EOM signal will be generated TSI Gap Mode The TSI Gap Mode is only used if TSI patterns contain a gap that is not integer multiple of the data rate e g if a gap is 7 7 data bits or if a gap is longer than 10 data bits In all other cases gaps should be included in the TSI pattern as code violations Because of its complexity in configuration TSI Gap Mode should be only used in applications as noted above For these special protocols it is possible to lock the actual data frequency during a long Code Violation period inside a TSI TSI Gap Length Register must have a minimum of 8 chips TSIGAP is used to lock the PLL after TSI
250. t the interrupt signal NINT to 41 even if this interrupt is masked The Interrupt Status register is always cleared after read out via SPI clear by read After Reset the duration of the NINT pulse is fixed to 12us 4 8 1 Interrupt Sources An Interrupt can either signal an internal state reached within the TDA5340 or request data which needs to be transmitted or shows the host controller that a data packed is completely received and ready to fetch in the RX FIFO System related Interrupts Reset Interrupt The Reset Interrupt occurs either by controlling the P_ON line from the host controller or the internal Brownout detector forces a power up reset event see Chip Reset on Page 54 Not maskable All Interrupt Status registers are set to OxFFh Interrupt Status Register 0 Interrupt Status Register 1 and Interrupt Status Register 2 e System Ready Interrupt The System Ready Interrupt can be used to signal the host controller the successful mode change from Deep Sleep Mode to Sleep Mode see Power Saving Modes on Page 24 Interrupt Mask bit 1 IMSYSRDY in Interrupt Mask Register 2 Interrupt Status bit 1 SYSRDY in Interrupt Status Register 2 Receiver Interrupts RX FIFO almost full This interrupt can be used if the expected length of the received data exceeds the FIFO size 288 Bit Interrupt Mask bit 0 IMRXAF in Interrupt Mask Register 2 Interrupt Status bit 0 RXAF in
251. t value for the clock recovery PLL so that a shorter settling time is achieved This preset value is also proportional to the data rate and is therefore used in the data rate acceptance limitation block If the preset value is outside a certain range positive and negative threshold configurable via CDR Data Rate Acceptance Positive Threshold Register and CDR Data Rate Acceptance Negative Threshold Register the CDR does not go into lock and no symbol synchronization is generated For each configuration there exists one bit DRLIMEN bit of CDR Configuration Register 1 to switch the data rate acceptance limitation functionality on or off Data rate acceptance limitation is disabled by default All configurations share the same threshold registers the default thresholds are set so that almost all packets with a data rate error of 10 and larger are rejected The following statements summarize some important aspects that need to be kept in mind when using the described functionality The output of the estimator must be described on statistical terms this means that it can not be guaranteed that all packets with a certain data rate outside the allowed range will be rejected The quality of the estimated data rate value is mainly influenced by the setting of the signal and noise detectors Reducing the RUNIN length in CDR Configuration Register 0 reduces the quality of the data rate estimation resulting in a degradation of the performance of the
252. ta Reference A Register 1 058 00 7 0 TSIPTA1 w Field Bits Type Description TSIPTA1 7 0 w Data Pattern for TSI comparison Bit 15 MSB Bit 8 in Chips Reset 00 TSI Pattern Data Reference B Register 0 A_TSIPTBO Offset Reset Value TSI Pattern Data Reference B Register 0 059 00 7 0 TSIPTBO w Field Bits Type Description TSIPTBO 7 0 Ww Data Pattern for TSI comparison Bit 7 Bit 0 LSB in Chips Reset 00 TSI Pattern Data Reference B Register 1 User Manual 169 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview A_TSIPTB1 Offset Reset Value TSI Pattern Data Reference B Register 1 05A 00 7 0 TSIPTB1 w Field Bits Type Description TSIPTB1 7 0 w Data Pattern for TSI comparison Bit 15 MSB Bit 8 in Chips Reset 00 End Of Message Control Register A_EOMC Offset Reset Value End Of Message Control Register 05B 05 7 4 3 2 1 0 Res Res EOMSYLO EOMCV aati ae r w w w Field Bits Type Description Res 7 4 r for future use Reset 0 EOMSYLO 2 Ww EOM by Sync Loss Og Disabled 1g Enabled Reset 1 EOMCV 1 w EOM by Code Violation Og Disabled 1g Enabled Reset 04 EOMDATLEN 0 Ww EOM by Data Length Og Disabled 1g Enabled Reset 14 EOM Data Length Limit Register User Manual 170 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWI
253. te 274kHz In 2 PMFDN 2 round In DecTime BitRate 274kHz In 2 PMFUP where AttTime DecTime attack decay time in number of bits Example BitRate 2kbps AttTime 0 1 bits gt PMFUP 2 round In 0 1bit 2kbps 274kHz In 2 2 round 3 8 24 4 DecTime 2 bits gt PMFDN 2 round In 2bit 2kbps 274kHz In 2 PMFUP 24 round 8 1 24 4 24 4 Note In case of ASK with large modulation index the attack time PMFUP can be up to a factor 2 slower due to the fact that the ASK signal has a duty cycle of 50 during the ASK low duration the integrator is actually slightly discharged due to the decay set by PMFDN The AGC start and freeze times are programmable The same conditions can be used as in the corresponding AFC section above They will however be programmed in separate SFR registers User Manual 76 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description 6 13 6 RSSI Peak Detector The IC possesses several digital RSSI peak level detectors The RSSI level is averaged over 4 samples before it is fed to any of the peak detectors This prevents the evaluated peak values to be dominated by single noise peaks To be able to measure the RSSI it is very important to select the RSSI signal as input signal for the A D converter in the ADC Input Selection Register Tys EOM Compare Update Update r Peak Detector Peak Peak Value Payload Value Register
254. ter 2 043 156 A EXTSLTHRO Externel Data Slicer BW Switching Threshold 044 157 Register 0 A EXTSLTHR1 Externel Data Slicer BW Switching Threshold 045 157 Register 1 A SIGDETO Signal Detector Threshold Level Register Run 046 158 Mode A SIGDET1 Signal Detector Threshold Level Register 047 158 Wakeup A SIGDETLO Signal Detector Threshold Low Level Register 048 158 A SIGDETSEL Signal Detector Range Selection Register 0494 159 A_SIGDETCFG Signal Detector Configuration Register 04A 160 A_NDTHRES FSK Noise Detector Threshold Register 04B 160 A_NDCONFIG FSK Noise Detector Configuration Register 04C 161 A_CDRP Clock and Data Recovery P Configuration 04D 161 Register A CDRI Clock and Data Recovery Configuration Register 04E 163 A CDRCFGO CDR Configuration Register 0 04F 163 A CDRCFG1 CDR Configuration Register 1 050 164 A TVWIN Timing Violation Window Register 051 165 A SLCCFG Slicer Configuration Register 052 165 A TSIMODE TSI Detection Mode Register 053 166 A TSILENA TSI Length Register A 054 167 A TSILENB TSI Length Register B 055 167 A TSIGAP TSI Gap Length Register 0564 168 A_TSIPTAO TSI Pattern Data Reference A Register 0 057 168 A TSIPTA1 TSI Pattern Data Reference A Register 1 058 169 A TSIPTBO TSI Pattern Data Reference B Register 0 059 169 A TSIPTB1 TSI Pattern Data Reference B Register 1 05A 169 A EOMC End Of Message Control Register 05B 170 A_EOMDLEN EOM Data Length Limit Register 05C 170 A_EOMDLENP EOM Data Leng
255. ter Coded TSI Pattern Match FSYNC Data into FIFO Figure 68 16 Bit TSI Mode 1514131211109 8 1 0 0 1 0 1 0 1 8 Bit Parallel Mode As two correlators of up to 16 chips length each working simultaneously in parallel In the following example TSI Pattern B matches first and generates an FSYNC The lengths of both TSI Patterns are now independent from each other The payload length for these two TSI Pattern may be different User Manual 96 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX Block Description X TSILENA 16d x TSILENB 6d t Runin Incoming Pattern 0l0lOolOo 0111011101110 Manchester Coded 543210 TSI Pattern B Match OO 1 CNN FSYNC mi i Data into FIFO 1 o 1 0 0 1 0 Figure 69 8 Bit Parallel TSI Mode 8 Bit Extended Mode As two correlators of up to 16 chips length each working simultaneously in parallel with matching information insertion This bit is inserted at the beginning of the payload 0 is inserted when correlator A has matched and 1 when correlator B has matched The payload length for these two TSI Pattern may be different x TSILENA 16d x TSILENB
256. th Limit Parallel Mode Register 05D 171 A_CHCFG Channel Configuration Register 05E 172 A_TXRF TX RF Configuration Register O5F 173 A_TXCFG TX Configuration Regsiter 060 173 A TXCHOFFSO TX Channel Offset Register 0 061 174 A TXCHOFFS1 TX Channel Offset Register 1 062 175 A TXBDRDIVO TX Baudrate Divider Register 0 0634 175 User Manual 113 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX Generated Registers Overview Table 10 Registers Overview cont d Register Short Name ___ Register Long Name Offset Address Page Number A TXBDRDIV1 TX Baudrate Divider Register 1 064 175 A TXDSHCFGO TX Data Shaping Configuration Register 0 0654 176 A_TXDSHCFG1 TX Data Shaping Configuration Register 1 066 176 A_TXDSHCFG2 TX Data Shaping Configuration Register 2 0674 176 A_TXPOWERO TX Power Configuration Register 0 0684 177 A_TXPOWER1 TX Power Configuration Register 1 0694 177 A_TXFDEV TX Frequency Deviation Register 06A 178 A_PLLINTC1 PLL MMD Integer Value Register Channel 1 06B 178 A PLLFRACOC1 PLL Fractional Division Ratio Register 0 Channel 1 06C 179 A PLLFRAC1C1 PLL Fractional Division Ratio Register 1 Channel 1 06D 179 A PLLFRAC2C1 PLL Fractional Division Ratio Register 2 Channel 1 O6E 180 A PLLINTC2 PLL MMD Integer Value Register Channel 2 O6F 180 A PLLFRACOC2 PLL Fr
257. 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 ore TDA5340 In fi neon SmartLEWIS TRX Revision History Page or Item Subjects major changes since previous revision Revision 1 0 17 02 2012 Chapter 1 1 Frequency extension of 434MHz Band Figure 1 Figure changed Figure 2 Figure changed Chapter 6 9 Block Diagram changed RF frequency calculation for TX Chapter 6 12 1 ASK sloping calculation of register values changed Chapter 6 12 2 GFSK calculation for NRZ inserted Signal Detector Range Reset value changed Selection Register FSK Noise Detector Reset value changed Configuration Register TX RF Configuration Register Reset value changed Antenna Switch Configuration Reset value changed Register RF Control Register Reset value changed RX Control Register Reset value changed Trademarks of Infineon Technologies AG AURIX C166 CanPAK CIPOS CIPURSE EconoPACK CoolIMOS CoolSET CORECONTROL CROSSAVE DAVE EasyPIM EconoBRIDGE EconoDUAL EconoPIM EiceDRIVER eupec FCOS HITFET HybridPACK I7RF ISOFACE IsoPACK MIPAQ ModSTACK my d NovalithICT OptiIMOS ORIGA
258. the DSM pin NCS must be pulled to high potential In the DSM the Crystal Oscillator is switched off but all SFR content is retained Waking up from DSM is initiated by pulling the NCS pin to low potential again After the end of the Crystal Oscillator start up time a system ready interrupt is generated see Interrupt Generation Unit on Page 50 and the DSLEEPEN bit in the Chip Mode Control Register must be cleared to finally leave the DSM The DSM can be only entered if the Sleep Mode is enabled In Sleep Mode the Crystal Oscillator is running and the digital domain is active but all analog parts are switched off The Sleep Mode is fully controlled by the MSEL bit group in the Chip Mode Control Register The SM offers the fastest switching time to active modes but with the expense of higher current consumption 3 2 Transmit Modes The Transmit TX Mode of the TDA5340 can be entered out of the Sleep and Receive Mode by changing the MSEL bit group in the Chip Mode Control Register In this Mode the transmitter will be enabled and the data will be sent depending on the pre configured settings Transmit TX Modes TX Ready Mode TRM TX Idle Mode TIM TX Active Mode TAM TX FIFO Mode TFM TX Transparent Mode TTM The state diagram in Figure 6 shows all possible start and stop combinations of the different transmit modes User Manual 25 Revision 1 0 17 02 2012 TDA5340 In fineon SmartLEWIS TRX Operating Modes Re
259. ther use RSSI Peak Memory Filter Readout Register for RMS operation or during SPM and WU Wake Up on RSSI use Wakeup Peak Detector Readout Register to statistically evaluate the interferer band Finally the thresholds RSSI Wake Up Blocking Level Low Channel 1 Register and RSSI Wake Up Blocking Level High Channel 1 Register can be set Wake Up on RSSI can also be applied as additional criterion when already using a Wake Up on Data criterion in Constant On Off COO Mode NOTE If e g an interferer ends starts too close after to the beginning end of the observation time then a decision level error can arise This is due to the filter dynamics settling time Further for interferer thresholds evaluation in SPM this changes interferer statistics Several interferer measurements are recommended to suppress this what makes sense anyway for a better distribution 6 13 14 3 Wake Up on Signal Recognition Instead of the previously mentioned RSSI criterion the Signal Recognition criterion see Data Filter and Signal Detection on Page 82 can be applied for Wake Up search So the Signal Detector Threshold Level Register Wakeup Signal Detector Threshold Low Level Register and FSK Noise Detector Threshold Register threshold registers can be used The observation time has to be specified in the register Wake up on Level Observation Time Register This observation time has to contain the delay in the signal path 12 5 us 2 25 Tbit User Manual 92 Revision
260. tor is 1 16 bit 00 saturation to 1 16 bit 01 saturation to 2 16 bit 10 saturation to 4 16 bit 11 saturation to 8 16 bit Reset 14 CDR Configuration Register 0 User Manual 163 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview A CDRCFGO Offset Reset Value CDR Configuration Register 0 04F 4C 7 6 5 0 RUNLEN TOLCHIPH TOLCHIPL w w w Field Bits Type Description RUNLEN 7 6 w RUNIN Length The RUNIN length is equal to PLL start value calculation time This means that the shorter RUNIN length decreases the data rate offset calculation accuracy and symbol synchronization found signal generation stability Note that the RUNLEN have to be changed together with the TSI configuration registers 00 8 chips 01 7 chips 10 6 chips 11g 5 chips Reset 14 TOLCHIPH 5 3 Ww Duty Cycle Tolerance for Chip Border High Level Represents the number of 1 16 bit sample deviation from the ideal chip border where an edge can occur in direction to the following chip border Reset 14 TOLCHIPL 2 0 Ww Duty Cycle Tolerance for Chip Border Low Level Represents the number of 1 16 bit sample deviation from the ideal chip border where an edge can occur in direction to the previous chip border Reset 4 CDR Configuration Register 1 A_CDRCFG1 Offset Reset Value CDR Configuration Register 1 050 1E 7 6 5 3 2
261. tor is used to measure RSSI independent of a data transfer and to digitally trim RSSI It is read via RSSI Peak Detector Readout Register Observation of the RSSI signal is active whenever the RX_RUN signal is high The RSSI Peak Detector Readout Register is refreshed and the Peak Detector is reset after every read access to RSSI Peak Detector Readout Register It may be required to read RSSI Peak Detector Readout Register twice to obtain the required result This is because for example during a trim procedure in which the input signal power is reduced after reading RSSI Peak Detector Readout Register the peak detector will still hold the higher RSSI level After reading RSSI Peak Detector Readout Register the lower RSSI level is loaded into the Peak Detector and can be read by reading RSSI Peak Detector Readout Register again When the RX RUN signal is inactive a read access has no influence to the peak detector value The register RSSIPRX is reset to 0 at power up reset Peak Detector Wake Up Wakeup Peak Detector Readout Register is used to measure the input signal power during Wake Up search The internal signal RSSIPWU gets initialized to O at start of the first observation time window at the beginning of each configuration channel The peak value of this signal is tracked during Wake Up search In case of a Wake Up the actual peak value is written in the Wakeup Peak Detector Readout Register User Manual TT Revision 1 0 17 02 2012 ore TDA5340
262. ulation of the saturation value in the Slicing Level Saturation Register is described in the Register value calculation application note 6 13 11 Raw Data Slicer DATA Output The Raw Data Slicer is used to provide data for external processing with the host controller on one of the port pins The input of the Raw Data Slicer can be selected from two different sources as can be seen in Figure 58 The proper input to the Slicer should be selected by following conditions One Chip Matched Filter output NRZ Data external CDR with correlation over a long preamble sequence 32Bit Low Pass DataFilter NRZ Data User Manual 85 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description Data detection is done by evaluation of bit boundaries and edge detection 6 13 11 1 DC Offset Cancellation Settling time The input signal provided by the Low Pass Filter or the One Chip Matched Filter is not DC free A DC Offset is introduced by a frequency offset in case of FSK and due to the Delog function in ASK case The DC offset must be compensated to slice the data correctly The DC cancellation is realized as a bandwidth adjustable low pass filter in front of the Raw Data Slicer The corner frequency of the DC offset cancellation low pass filter can be calculated as follows _ SampleRate BW BW DR Bit s 8 Je 20 Where the Sampling Rate is in between 8 and 16 which is defined from the s
263. unit to synchronize the incoming data stream The baud rate generator can be programmed via a 16 Bit word which is a dividing factor of the Crystal frequency The baseband data has to be synchronized with the baud rate strobe and provided on the SDI line Pin 18 during the transmission the NCS line must be low The TDA5340 can either executes a coding of the input data coded synchronous transparent mode or shifts the data provided on the SDI line directly to the modulator synchronous NRZ mode The transmission is terminated by releasing the NCS line to high but the power amplifier is disabled after transmitting of the complete last Bit Chip The Picture below shows the produced baseband data by using the Synchronous Transparent Mode User Manual 40 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX System Interface NCS JJ SCK static to reduce noise SCK running incr noise JJ a PLFLALALALALALS dataitem 1 data item 2 data item 3 data item 4 j detaitemn s ELAN t M ae Instruction wrt0 1 0 when wrt0 else 1 high impedance Z PPx k f n i n JJ f Baud rate generator Manchester coded m p baseband data i 71 PA enable Figure 23 Synchronous Transparent Mode Asynchronous Transparent Mode In some applications a change of data rate within one transmission is necessary In this case the
264. ut source to Temperature or VDDD does not open the connection to the subsequent Peak Memory filter in the signal chain in these modes So during a temperature measurement the PMF gets loaded and the unloading is performed with the selected PMF Decay time which is several bits usually After 2 tau 2 Decay time the signal went down by 87 this seems to be OK as first proposal This additional wait time needs to be kept in mind before being able to receive data again in Run Mode Slave or Self Polling Mode 6 12 Transmitter Baseband The provided transmit modulation schemes of the TDA5340 are OOK or 100 ASK shaped OOK ASK shaped ASK FSK GFSK The transmit modulation schema can be selected in the TX Configuration Regsiter by the ASKFSK ASKSLOPEN and GFSKEN bits The used modulation schema highly influences the occupied bandwidth of the transmit spectrum and the robustness of the communication link ASK has advantages in current consumption of the transmitter but is also more susceptible to interfere signals FSK has higher robustness against interferer and also higher sensitivity on the receiver side but this has to be treated with a higher supply current consumption in transmit mode In the following description of the modulations we do not differentiate between ASK and OOK because the baseband functionality for both modulation schemes is the same 6 12 1 ASK OOK Sloping shaped ASK OOK The ASK sloping fe
265. vel Register Run 0464 00 Mode User Manual 118 Revision 1 0 17 02 2012 TDA5340 SmartLEWIS TRX Infineon Generated Registers Overview Table 11 Registers Reset Values cont d Register Short Name Register Long Name Offset Address Reset Value A SIGDET1 Signal Detector Threshold Level Register 047 00 Wakeup A SIGDETLO Signal Detector Threshold Low Level Register 0484 00 A SIGDETSEL Signal Detector Range Selection Register 049 TF A SIGDETCFG Signal Detector Configuration Register 04A 00 A_NDTHRES FSK Noise Detector Threshold Register 04B 00 A_NDCONFIG FSK Noise Detector Configuration Register 04C 07 A CDRP Clock and Data Recovery P Configuration 04D E6 Register A_CDRI Clock and Data Recovery Configuration Register 04E 45 A CDRCFGO CDR Configuration Register 0 04F 4C A CDRCFG1 CDR Configuration Register 1 050 1E A TVWIN Timing Violation Window Register 051 28 A SLCCFG Slicer Configuration Register 052 90 A TSIMODE TSI Detection Mode Register 053 804 A_TSILENA TSI Length Register A 054 00 A TSILENB TSI Length Register B 055 00 A TSIGAP TSI Gap Length Register 056 00 A TSIPTAO TSI Pattern Data Reference A Register 0 057 00 A TSIPTA1 TSI Pattern Data Reference A Register 1 058 00 A TSIPTBO TSI Pattern Data Reference B Register 0 059 00 A TSIPTB1
266. ver can be seen in RUNIN Synchronization Search Time and Inter Frame Time on Page 103 User Manual 95 Revision 1 0 17 02 2012 Infineon Sync from CR from Data Slicer TDA5340 SmartLEWIS TRX Bi phase Manchester Data Block Description gt Data Decoder Data Clock Data Clock Code Violation Detector EOM Detector Chip Data Clock TSI wild card x TSIMODE 6 3 Delay Line 16 bit Correlator A 16 bit i TSI Data Pattern TSI Data Pattern LSB MSB LSB MSB Correlator A Controller Select Poa gt Delay Line 16 bit gt MRB nnn nnn nn nnn nnn nn Correlator B 16 bit f TSI Data Pattern TSI Data Pattern LSB MSB LSB MSB Correlator B Controller Frame Synchron ization Controller ld FSync F 5 CorrAMatch x TSIPTBO Figure 67 Frame Synchronization Unit The two independent correlators can be configured in the TSI Detection Mode Register to work in one of the following four TSI modes 16 Bit Mode As a single correlator of up to 32 chips The length of the TSI Length Register A must be set to 16d whenever TSI Length Register B is higher than 0 x TSILENA 16d x TSILENB 6d Incoming Pattern Manches
267. vider Integer Offset value for Channel 3 PLLINT 5 0 dec2hex INT f_LO f_XTAL Reset 134 PLL Fractional Division Ratio Register 0 Channel 3 A_PLLFRACOC3 Offset Reset Value PLL Fractional Division Ratio Register 0 074 F3 Channel 3 7 0 PLLFRACOC3 w Field Bits Type Description PLLFRACOC3 7 0 W Synthesizer channel frequency value 21 bits bits 7 0 fractional division ratio for Channel 3 PLLFRAC 20 0 dec2hex f LO f XTAL PLLINT 2421 Reset F3 PLL Fractional Division Ratio Register 1 Channel 3 A PLLFRAC1C3 Offset Reset Value PLL Fractional Division Ratio Register 1 075 07 Channel 3 7 0 PLLFRAC1C3 li j I I w Field Bits Type Description PLLFRAC1C3 7 0 w Synthesizer channel frequency value 21 bits bits 15 8 fractional division ratio for Channel 3 PLLFRAC 20 0 dec2hex f_LO f_XTAL PLLINT 2421 Reset 07 User Manual 183 Revision 1 0 17 02 2012 Infineon TDA5340 SmartLEWIS TRX RegistersGenerated Registers Overview PLL Fractional Division Ratio Register 2 Channel 3 A_PLLFRAC2C3 Offset Reset Value PLL Fractional Division Ratio Register 2 076 09 Channel 3 7 6 5 4 0 Res pos PLLFRAC2C3 li I I I r w w Field Bits Type Description Res 7 6 r for future use Reset 0 PLLFCOMPC3 5 w Fractional Spurii Compensation enable for Channel 3 Og Disabled 1g Enabled Reset 0 PLLFRAC2C3 4 0
268. w Synthesizer channel frequency value 21 bits bits 20 16 fractional division ratio for Channel 3 PLLFRAC 20 0 dec2hex f LO f XTAL PLLINT 2421 Reset 094 PLL MMD Integer Value Register Channel 4 A_PLLINTC4 Offset Reset Value PLL MMD Integer Value Register Channel 4 077 134 7 6 5 0 T T T T Res PLLINTC4 r w Field Bits Type Description Res 7 6 r for future use Reset 0 PLLINTCA 5 0 w SDPLL Multi Modulus Divider Integer Offset value for Channel 4 PLLINT 5 0 dec2hex INT f_LO f XTAL Reset 13 PLL Fractional Division Ratio Register 0 Channel 4 User Manual 184 Revision 1 0 17 02 2012 um TDA5340 In fi neon SmartLEWIS TRX RegistersGenerated Registers Overview A PLLFRACOCA Offset Reset Value PLL Fractional Division Ratio Register 0 078 F3 Channel 4 7 0 PLLFRACOCA li I I I w Field Bits Type Description PLLFRACOC4 7 0 W Synthesizer channel frequency value 21 bits bits 7 0 fractional division ratio for Channel 4 PLLFRAC 20 0 dec2hex f LO f XTAL PLLINT 2421 Reset F3 PLL Fractional Division Ratio Register 1 Channel 4 A PLLFRAC1CA Offset Reset Value PLL Fractional Division Ratio Register 1 0794 07 Channel 4 7 0 PLLFRAC1C4 w Field Bits Type Description PLLFRAC1C4 7 0 W Synthesizer channel frequency value 21 bits bits 15 8 fractional division ratio for Channel 4 PLLFRAC 20 0 de
269. ystem clock f to Data rate DR ratio The figure below shows the output data of the One Chip Matched Data Filter and the DATA Output in comparison to the input data by changing the low pass filter corner frequency As can be seen that the accuracy of the output edges are influenced by the low pass filter corner frequency Input Data One Chip matched Filter output fast DC Cancellation slow DC Cancellation Ideal slicer output Data output with fast DC cancellation Data output with slow DC Cancellation Figure 60 DATA Output DC Offset Cancellation For ASK and FSK modulation different approaches needs to be applied for the DC offset cancellation unit DC Offset Cancelation for FSK The actual bandwidth of the DC offset cancellation can be selected within two areas The two areas are necessary to achieve a fast settling in combination with a stable slicing value during the received data frame The areas are separated by a programmable threshold in the Externel Data Slicer BW Switching Threshold Register 0 and Externel Data Slicer BW Switching Threshold Register 1 User Manual 86 Revision 1 0 17 02 2012 ore TDA5340 In fi neon SmartLEWIS TRX Block Description If the actual calculated DC offset is far away from the data signal a fast adjustment of the DC value can be achieved by using first a high filter bandwidth in order to achieve a fast settling After reaching the desired DC offset the bandwidth can be re
Download Pdf Manuals
Related Search
Related Contents
Axis M7010 User`s Manual of ISaGRAF Embedded Controllers Dyna-Lock Self-Retracting Lanyard User Instructions Copyright © All rights reserved.
Failed to retrieve file