Home

XC83x AP08127 Microcontrollers Application Note

image

Contents

1. Figure 4 Program Overview CR Method Application Note 7 V1 0 2012 02 a AP08127 In fi neon inTouch Application Kit Touch Buttons Hardware and Program Flow medium 4 medium 4 LED settings ADC pads Communication with PC send amp receive data Touch Sense signal Retrieve conversion capacitance time measurement processing Figure 5 Program Overview CTM Method The tasks performed in each interrupt service routines are further illustrated in the flowcharts which follow UART Interrupt Figure 6 The UART module which is part of the XC800 core is used for full duplex UART communication with the PC e Time Slice Interrupt Figure 7 The LEDTS module generates this interrupt after every LED column activation where the pattern for the next LED column is loaded into shadow registers Time Frame Interrupt Figure 8 The LEDTS module generates this interrupt after every measurement where signal processing and touch detection take place ADC Interrupt Figure 9 The ADC generates this interrupt after the pad has been charged to the defined level so that the charge time can be measured Application Note 8 V1 0 2012 02 e AP08127 In fi neon inTouch Application Kit Touch Buttons Hardware and Program Flow Retrieve data from buffer Check button selected Shift data out to buffer Figure6 UART Interrupt Service Routine
2. COL3 LINEO COL4 LINE1 COLS LINE2 2 4 et 8 Zd sr ANNOH avd EX gt jl L Figure 12 inTouch Buttons Board Schematics Application Note 14 V1 0 2012 02 Cinfineon AP08127 inTouch Application Kit Touch Buttons Appendix Schematics and Layout A o u a ge GE Ee E GE ue ue amp je z om n s au au A u m m al m L L E L E ln ln Os Os ER o o aN o 09 amp Im pu a 09 Figure 13 inTouch Buttons Board Component Bottom Layout inTouch Application Kit Buttons Figure 14 inTouch Buttons Board Top Layout Application Note 15 V1 0 2012 02 infii AP08127 In fi neon inTouch Application Kit Touch Buttons Appendix Schematics and Layout Figure 15 inTouch Buttons Board Bottom Layout Application Note 16 V1 0 2012 02 e AP08127 in fi neon inTouch Application Kit Touch Buttons References References The list below provides resources that may be useful to the user ONOaARWN gt 9 User s Manual XC83x 8 Bit Single Chip Microcontroller Application Note AP08100 Configuration for Capacitive Touch Sense Application Application Note AP08110 Design Guidelines for XC82x and XC83x Board Layout Application Note AP08113 Capacitive Touch Color Wheel Implementation Applic
3. Set LED LINE and COMPARE values Measure ADC pad capacitance Figure 7 Time Slice Interrupt Service Routine Application Note 9 V1 0 2012 02 Infineon AP08127 inTouch Application Kit Touch Buttons Hardware and Program Flow LEDTS pads signal processing ADC pads signal processing Reverse bits of ADC pad flags Do adaptive Toggle LED Blink LEDs Self calibration Blink LED Send pad Total _TSCTR 8 pad Average to USpy Off all LEDs Send LED status to calibration USpy Figure 8 Time Frame Interrupt Service Routine Stop Timer 2 Figure9 ADC Interrupt Service Routine CTM Method Application Note 10 V1 0 2012 02 e AP08127 In fi neon inTouch Application Kit Touch Buttons Behavior 3 Behavior The inTouch Buttons board has 4 software versions 1 The LEDs light up when respective pads are touched using the CR method for the ADC touch pads this is the default software 2 LEDs toggle when respective pads are tapped using the CR method for the ADC touch pads 3 The LEDs light up when respective pads are touched using the CTM method for the ADC touch pads 4 LEDs toggle when respective pads are tapped using the CTM method for the ADC touch pads Software versions 1 and 3 use the PADFLAG output of the LEDTS ROM Library and the PADTOUCHED o
4. software 2 2 Program Flow Infineon offers 3 solutions for capacitive touch sensing The bottom 7 buttons which are connected to LEDTS input pins and hence controlled by the LEDTS module of the XC836 use the Relaxation Oscillator Topology for touch sensing The top 7 buttons which are connected to ADC input pins can use either the Charge Redistribution CR or the Charge Time Measurement CTM methods for touch sensing Because two options are available the program name in the program flow description is taken from the name of the method CR or CTM used for the top 7 buttons For more information on the 3 touch solutions refer to the application note AP08126 inTouch Application Kit USB Stick In terms of interrupts UART interrupt has a medium priority because of the high data rate Touch sense related tasks are also performed with medium priority These occur in the Time Frame interrupt after pad capacitances have been measured LED updates have the lowest priority These are performed in the Time Slice interrupt together with pad capacitance measurement These apply to both CR Figure 4 and CTM Figure 5 methods In the CTM method the ADC interrupt is enabled and this has the highest priority to facilitate accurate charge time measurement low 4 medium 4 LED settings ADC pads capacitance measurement medium 4 Communication with PC send data amp receive commands Touch Sense signal processing
5. Cinfineon 3 4 XxX XC83x AP08127 inTouch Application Kit Touch Buttons Application Note V1 0 2012 02 Microcontrollers Edition 2012 02 Published by Infineon Technologies AG 81726 Munich Germany 2012 Infineon Technologies AG All Rights Reserved LEGAL DISCLAIMER THE INFORMATION GIVEN IN THIS APPLICATION NOTE IS GIVEN AS A HINT FOR THE IMPLEMENTATION OF THE INFINEON TECHNOLOGIES COMPONENT ONLY AND SHALL NOT BE REGARDED AS ANY DESCRIPTION OR WARRANTY OF A CERTAIN FUNCTIONALITY CONDITION OR QUALITY OF THE INFINEON TECHNOLOGIES COMPONENT THE RECIPIENT OF THIS APPLICATION NOTE MUST VERIFY ANY FUNCTION DESCRIBED HEREIN IN THE REAL APPLICATION 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 WITH RESPECT TO ANY AND ALL INFORMATION GIVEN IN THIS APPLICATION NOTE 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 i
6. ation Note AP08115 Design Guidelines for Capacitive Touch Sensing Application Application Note AP08121 Infrared Remote Controller with Capacitive Touch Interface Application Note AP08122 16 Button Capacitive Touch Interface with XC836T Application Note AP08124 XC82 83x Design Guidelines for Electrical Fast Transient EFT Protection in Touch Sense Applications Application Note AP08126 Infineon Touch Solutions inTouch Application Kit 10 Application Note AP08128 inTouch Application Kit Touch Wheel 11 Application Note AP08129 inTouch Application Kit Touch Sliders 12 Application Note AP08130 inTouch Application Kit LED Matrix 13 Link to XC83x Series www infineon com xc83x 14 Link to Solutions for advanced touch control www infineon com intouch Application Note 17 V1 0 2012 02
7. data format for the buttons is the same as in the previous settings file Data is transmitted in the following format Table 1 Table 1 Transmit Data Format for Buttons DO D1 Value hex 08 XX Description I D number Button number The data received by the microcontroller will be used to determine the signals that will be transmitted to U SPY for display either as Status Flags if LED Status button is selected or on the Oscilloscope if TSPADx or ADCPADx is selected If OFFLINE is selected the microcontroller will stop sending data to U SPY and all touches will be indicated by the LEDs on the board Status Flags The format of the transmitted data for the status flags is as follows Table 2 Table 2 Transmit Data Format for Status Flags DO D1 D2 Value hex A3 30 31 XX Description I D number TSLED 30 Mask ADCLED 31 The statuses of the LEDs received by USpy are masked before they are displayed as status flags It is important that the bits of a mask do not overlap with the bits of another mask This is to ensure that status flags are not falsely turned on The masks used are as follows Table 3 Table 3 LED masks for Status Flags LED 1 2 3 4 5 6 7 Number Mask hex 01 02 04 08 10 20 40 Oscilloscope The oscilloscope function allows the user to monitor up to 3 signals per oscilloscope at a time Figure 11 A total of 3 oscilloscopes are available Howev
8. ee Pek ee ad Brei 11 inTouch_Buttons ini ooo 11 Appendix Schematics and Layout 0 00 e cee eee 14 Refere ceS scree A an A a REAR VEER ARS CAV rel 17 Application Note 4 V1 0 2012 02 a AP08127 Infi neon inTouch Application Kit Touch Buttons Introduction 1 Introduction In today s Human Machine Interface HMI designs capacitive touch technology is now often more widely used than traditional mechanical buttons Capacitive touch technology is the more popular choice because it brings flexibility a high level of customization and a significant reduction in overall system cost The inTouch Application Kitis available to help learn about working with the advanced touch solutions provided by Infineon Step by step tutorials covers the basics of Infineon s touch solutions while example application code can be used to start developing new touch related projects The inTouch Application Kit comprises of a mother board supplied as a USB stick and a number of daughter boards Figure 1 shows the buttons daughter board Among the many different touch input elements that can be designed with capacitive touch technology the single pad button is probably the simplest and most popular This application note describing the buttons daughter board aims to highlight the ease of implementing a design with Infineon s touch solutions Topics covered include program flow and touch behavior Figure 1 inT
9. er we will display only 2 signals on 1 oscilloscope in this application The format of the transmitted data for the oscilloscope is as follows Table 4 Application Note 12 V1 0 2012 02 e fi AP08127 In ineon inTouch Application Kit Touch Buttons U SPY a 4 gt 4 tlela EM oo OO 0 x 4 gt Beam Hex Jaggies R Menu Connect Figure 11 U SPY Oscilloscope Table 4 Transmit Data Format for Oscilloscope DO D1 D2 D3 D4 D5 D6 D7 Value hex A4 01 XX XX XX XX XX XX Description I D Scope Signal 1 Signal 1 Signal 2 Signal 2 number number high byte low byte high byte low byte The signals displayed are as follows Table 5 Table 5 Signals Displayed on Oscilloscope Signal 1 Signal 2 Description Pad Average Pad Total TSCTR 2P MSORN Colour Green Pink Application Note 13 V1 0 2012 02 or AP08127 In fi neon inTouch Application Kit Touch Buttons Appendix Schematics and Layout Appendix Schematics and Layout 0 S ANNOY avd inTouch_BUTTONS 5 5 2011 3 06 19 PM Sheet 1 1 Fla l0 S ANNOY avd Touch Sense Application Kit Touch Buttons l0 S ANNOY avd gt f ObdL sr ANNOH avd 6d f sr ANNOH avd Ldl f sr ANNOH avd 1 3 5
10. f a failure of such components can reasonably be expected to cause the failure of that life support device or system or to affect the safety or effectiveness of that device or system Life support devices or systems are intended to be implanted in the human body or to support and or maintain and sustain and or protect human life If they fail it is reasonable to assume that the health of the user or other persons may be endangered e AP08127 In fi neon inTouch Application Kit Touch Buttons XC83x Revision History V1 0 2012 02 Previous Version s Page Subjects major changes since last revision We Listen to Your Comments Is there any information in this document that you feel is wrong unclear or missing Your feedback will help us to continuously improve the quality of this document Please send your proposal including a reference to this document to mcdocu comments infineon com gt lt Application Note 3 V1 0 2012 02 AP08127 e In fi neon inTouch Application Kit Touch Buttons Table of Contents 1 2 2 1 2 2 3 4 4 1 Introduction u s Sado apie el Be nenn Re E 5 Hardware and Program Flow oocccoccccc ae 6 Hardware 444220 A de Ree Nee ash eed Mena age eae ee dea 6 Program FI W aan dza pce ie Wal ke Meee SOA a a Se ees ak aca ae Wot 7 Behavior acs jcc eis staa aan Ra PRA eR a Adee REE AA Oe aa oe hee deg a KER AI 11 U SPY enti syta w ZO POSAGU ae Ra tO od e
11. ouch Application Kit USB Stick and Buttons board Application Note 5 V1 0 2012 02 nn AP08127 Infi neon inTouch Application Kit Touch Buttons Hardware and Program Flow 2 Hardware and Program Flow This section describes the hardware used and the connections involved 2 1 Hardware Infineon s XC836MT 2FRI Figure 2 is used in this application The XC836MT is embedded in the inTouch Application Kifs USB stick For more details regarding the USB stick please refer to AP08126 Infineon Touch Solutions inTouch Application Kit Figure 2 Infineon s XC836MT 2FRI The inTouch Buttons board Figure 3 is available as a plug in daughter board which is part of the inTouch Application Kit Figure 3 Buttons daughter board Application Note 6 V1 0 2012 02 a AP08127 In fi neon inTouch Application Kit Touch Buttons Hardware and Program Flow The inTouch Buttons board is a standard PCB with a piece of 2mm thick plexiglas glued on top of the board The buttons on the top row are each connected to an ADC input channel of the XC836 The buttons in the bottom row are each connected to an LEDTS input pin of the XC836 14 indicator LEDs are connected to 2 LED column pins 1 for each row and 7 LED line pins of the XC836 The schematics are available in the Appendix Schematics and Layout Users can touch and hold default or tap the 14 buttons to toggle the indicator LEDs depending on the downloaded
12. utput of the ADC Touch Library to implement the touch behavior as described above Software versions 2 and 4 use the PADRESULT outputs of the LEDTS ROM Library and the ADC Touch Library to implement the touch behavior described above All software versions use the PADERROR output of the LEDTS ROM Library and the ADC Touch Library to blink the LEDs when there is a long touch on the buttons 4 U SPY For the inTouch Buttons board one settings file inTouch_Buttons ini has been configured 4 1 inTouch_Buttons ini This settings file Figure 10 is customized to allow the user to monitor the parameters ofthe LEDTS ROM Library and the ADC Touch Library U SPY Control Bo File Edit View Config Tools Window Help COMI5 J WB BEDRE Reset Osc 1 Close Ost 1 Buttons LED Status TSPAD3 L2 TSPAD7 L6 ADCPD4 AN3 OFFLINE TSPAD4 L3 ADCPD7 ANG ADCPD3 AN2 TSPAD1 LO TSPAD5 L4 ADCPD6 ANS ADCPDZ AN1 TSPAD2 L1 TSPAD6 L5 ADCPDS AN4 ADCPD1 ANO TSLED1 TSLEDS ADCLED1 ADCLED5 TSLED2 TSLED6 ADCLED2 ADCLED6 TSLED3 TSLED7 ADCLED3 ADCLED7 TSLED4 ADCLED4 Status Flags Connected Figure 10 inTouch_Buttons ini User Interface Application Note 11 V1 0 2012 02 e AP08127 In fi neon inTouch Application Kit Touch Buttons U SPY Buttons In this settings file the buttons allow the user to choose the signal which the user would like to monitor The description of the

Download Pdf Manuals

image

Related Search

Related Contents

PIEGHEVOLI PER SITO INTERNET:Layout 1.qxd  FANシャシ〔RD46〕取扱説明書  Unico GUI - STMicroelectronics  HomePNAシステム カタログPDF(136kB)  GE H9 Luminaire Installation Guide  American Standard 2461002.011 Installation Guide  

Copyright © All rights reserved.
Failed to retrieve file