XC83x AP08130. Application Note. Microcontrollers. intouch Application Kit - LED Matrix Display V1.0, 2012-02



Similar documents
RGB Wall Washer Using ILD4035

Guide to using the DALI LightNet tool

Application Note, V 2.2, Nov AP32091 TC1766. Design Guideline for TC1766 Microcontroller Board Layout. Microcontrollers. Never stop thinking.

DAP miniwiggler V3. Application Note. Microcontrollers AP56004 V

Application Note, Rev.1.0, September 2008 TLE8366. Application Information. Automotive Power

DALI Control Gear Software Stack

6 0 0 V h i g h c u r r e n t H i g h S p e e d 3 I G B T o p t i m i z e d f o r h i g h - s w i t c h i n g s p e e d

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Security & Chip Card ICs SLE 44R35S / Mifare

DAVE Software Development Kit overview. Preparing the workbench. Creating a simple APP. Step 1: Create a new APP project

Application Note, V1.0, Nov AN Using the NTC inside a power electronic module IMM INP LP

8-bit AP Application Note. Microcontrollers. Hardware and Software Description DriveMonitor V

TLI4946. Datasheet TLI4946K, TLI4946-2K, TLI4946-2L. Sense and Control. May 2009

O p t i m u m M O S F E T S e l e c t i o n f o r S y n c h r o n o u s R e c t i f i c a t i o n

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

AT89C5131A Starter Kit... Software User Guide

Application Note, V1.0, 2008 AN Thermal equivalent circuit models. replaces AN Industrial Power

How to design SMPS to Pass Common Mode Lightning Surge Test

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

Controlling a Dot Matrix LED Display with a Microcontroller

Programming the On-Chip Flash on a phycore-xc161 phycore-xc167

Lab Experiment 1: The LPC 2148 Education Board

Embedded Component Based Programming with DAVE 3

Microcontroller Code Example Explanation and Words of Wisdom For Senior Design

SPROG DCC Decoder Programmer

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

Keystation Pro 88 Advanced Guide. Contents: 1 Getting Started. 2 Terminology. 3 Performance Operations of the Keystation Pro 88

Power Management & Supply. Design Note. Version 1.0, Nov DN-EVALMF2ICE2A CoolSET 35W DVD Power Supply with ICE2A265.

DVB-T 730. User s Manual

Designing an Induction Cooker Using the S08PT Family

Programmer s Reference

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

Creating a Project with PSoC Designer

Arduino Wifi shield And reciever. 5V adapter. Connecting wifi module on shield: Make sure the wifi unit is connected the following way on the shield:

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

Advanced LED Controller (LED Chaser)

BIT COMMANDER. Serial RS232 / RS485 to Ethernet Converter

Tutorial for MPLAB Starter Kit for PIC18F

Dash 18X / Dash 18 Data Acquisition Recorder

Keep it Simple Timing

I n t r o d u c t i o n t o I n f i n e o n s S i m u l a t i o n M o d e l s P o w e r M O S F E T s

Information Board User s Guide

Lab 1: Introduction to Xilinx ISE Tutorial

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

8-bit Microcontroller. Application Note. AVR415: RC5 IR Remote Control Transmitter. Features. Introduction. Figure 1.

Chip Card & Security ICs Mifare NRG SLE 66R35

The 104 Duke_ACC Machine

Multi-Touch Ring Encoder Software Development Kit User s Guide

Bluetooth HID Profile

RPLIDAR. Low Cost 360 degree 2D Laser Scanner (LIDAR) System Development Kit User Manual Rev.1

User Manual. AS-Interface Programmer

0832 Dot Matrix Green Display Information Board User s Guide

Getting to Know Xsight Home Screen and Everyday Use Settings PC Setup

Summary Table Voluntary Product Accessibility Template

OptiMOS 3 Power-Transistor

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

Advanced Data Capture and Control Systems

ChipScope Pro Tutorial

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

PMAfob Home Automation Demo

IR Communication a learn.sparkfun.com tutorial

ROCK BAND 3 WIRELESS KEYBOARD:

AVR Butterfly Training. Atmel Norway, AVR Applications Group

Secure egovernment Where convenience meets security.

VADC Versatile Analog to Digital Converter. XMC Microcontrollers August 2014

BE635 User Manual. Rev. V Bolymin, Inc. All Rights Reserved.

Nuvoton Nu-Link Debug Adapter User Manual

8 by 8 dot matrix LED displays with Cascadable Serial driver B32CDM8 B48CDM8 B64CDM8 General Description

AT11805: Capacitive Touch Long Slider Design with PTC. Introduction. Features. Touch Solutions APPLICATION NOTE

IDDERO HOME SERVER. Quick start guide

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module

RC2200DK Demonstration Kit User Manual

STEPPER MOTOR SPEED AND POSITION CONTROL

8051 MICROCONTROLLER COURSE

Measuring Resistance Using Digital I/O

Intel Unite Solution. Standalone User Guide

OVERVIEW Playbacks: Shortcuts: Memories: Data Entry Wheels: Touchpad: Master and Blackout:

Animated Lighting Software Overview

Hands On ECG. Sean Hubber and Crystal Lu

ViewPower. User s Manual. Management Software for Uninterruptible Power Supply Systems

udrive-usd-g1 Embedded DOS micro-drive Module Data Sheet

OptiMOS 3 Power-Transistor

BAV70... BAV70 BAV70W BAV70S BAV70U. Type Package Configuration Marking BAV70 BAV70S BAV70U BAV70W

DK40 Datasheet & Hardware manual Version 2

BLOCK OCCUPANCY DETECTOR WITH SEMAPHORE OPERATION BOD1/DAP4-BR

SIPMOS Small-Signal-Transistor

Set Top Box User Guide. Global Reach with a Local Touch

4 Character 5x7 LED Matrix Display

How To Use An Atmel Atmel Avr32848 Demo For Android (32Bit) With A Microcontroller (32B) And An Android Accessory (32D) On A Microcontroller (32Gb) On An Android Phone Or

Dash 8Xe / Dash 8X Data Acquisition Recorder

13-1. This chapter explains how to use different objects.

USER GUIDE EDBG. Description

GPS/GLONASS SiRFstarV Evaluation Kit EVA5100-A

Application Note. 8-bit Microcontrollers. AVR270: USB Mouse Demonstration

CipherLab 5100 Time Attendance Utility Manual

Transcription:

XC83x AP08130 Application te 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, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may be endangered.

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 Application te 3 V1.0, 2012-02

Table of Contents 1 Introduction..................................................................... 5 2 Hardware and Program Flow....................................................... 6 2.1 Hardware....................................................................... 6 2.2 Program Flow.................................................................... 7 3 LED Matrix Controller and ROM Library............................................. 16 4 Behavior...................................................................... 17 4.1 Switching ON/OFF............................................................... 17 4.2 Controlling Brightness (Column Level)................................................ 17 4.3 Controlling Brightness (Individual LEDs).............................................. 18 5 U-SPY......................................................................... 19 5.1 intouch_ledmatrix_column_control.ini.............................................. 19 5.2 intouch_ledmatrix_individual_control.ini............................................. 20 Appendix - Schematics and Layout................................................ 22 References.................................................................... 25 Application te 4 V1.0, 2012-02

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. HMI designs often make user of indicator LEDs as a form of feedback for touch. Infineon's XC83x microcontrollers are capable of driving up to 8 LED columns, with up to 8 LEDs per column. By using shared touch input pins and LED output pins, further cost reductions are possible. The intouch Application Kit aims to showcase the LED driving capability through a 5 by 7 LED Matrix. Application example code is provided, which can serve as a platform for developing new 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 USB stick with the LED Matrix daughter board. This application note describing the LED Matrix daughter board, aims to highlight the ease of implementing a design with Infineon's XC82x and XC83x microcontrollers. Topics covered include column and individual LED dimming behavior. Figure 1 intouch Application Kit (USB Stick and LED Matrix board) Application te 5 V1.0, 2012-02

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 Kit s 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 LED Matrix board (Figure 3) is available as a plug-in daughter board which is part of the intouch Application Kit. Figure 3 LED Matrix daughter board Application te 6 V1.0, 2012-02

Hardware and Program Flow The intouch LED Matrix board is a standard PCB incorporating Kingbright s 18mm single color dot matrix display. The column and row pins of the dot matrix display are connected to 5 LEDTS column pins and 7 LEDTS line pins of the XC836 respectively. The schematics are available in the Appendix - Schematics and Layout. 2.2 Program Flow The intouch LED Matrix board comes with 4 program versions for demonstration and tutorial purposes: Demonstration intouch_ledmatrix_pcdemo: provides an intensive demonstration of the capabilities of the LED driving functionality in the XC836 microcontroller with an option to control the display via UART interface intouch_ledmatrix_standalonedemo: provides a demonstration which runs at power-on without the need for a PC interface Tutorial intouch_ledmatrix_columncontrol: familiarizes the user with LED column brightness control intouch_ledmatrix_individualcontrol: familiarizes the user with LED individual brightness control For intouch_ledmatrix_columncontrol and intouch_ledmatrix_individualcontrol, the demonstration mode is the default mode, and can also be activated by clicking on the Demo Mode button in the attached U-SPY settings files. intouch_ledmatrix_pcdemo This demonstration code aims to show some display patterns or animations that can be accomplished by controlling the LED column brightness. Using a simple RS232 monitoring software such as Hyperterminal, the user is also able to key in keyboard characters which will then be reflected on the LED Matrix display. Figure 4 gives an overview of the interrupts that make up the program. Three important components of the demonstration code are: 1. Timer 2 overflow interrupt (Figure 5) a) Timer 2 will run each time a new user input is received and an overflow interrupt will be invoked every 0.1s. The interrupt is mainly used to perform the display patterns or animations for the entrance and exit of characters displayed on the LEDs. 2. LEDTS Time slice interrupt (Figure 6) a) The setting up of the LED display values and the actual writing of LDLINE_VALUE[x] registers occur here. 3. UART interrupt (Figure 7) a) The UART interrupt is invoked each time the user keys in a new input. The input is then stored and Timer 2 is switched on. Application te 7 V1.0, 2012-02

Hardware and Program Flow low TIMER 2 OVEFLOW every 100ms low TIME SLICE INTERRUPT every 202.667μs high UART INTERRUPT Execute Display Patterns Prepare values for LED Display Display out Capture user input Figure 4 Overview of interrupts in intouch_ledmatrix_pcdemo Start Check Pattern Number 1: Shift left 2: Shift right 3: Glow right 4: Glow left 5: Glow out Execute exit animation for previous character display_status = 1 Check display_status Flag to display smiley display_status = 2 Execute entrance animation for new input character New character on display? 10 sec idle? Figure 5 Timer 2 Overflow Interrupt Service Routine in intouch_ledmatrix_pcdemo Application te 8 V1.0, 2012-02

Hardware and Program Flow Start Startup done? display_status = 1? Convert input to LED output values Display hourglass Previous display cleared (display_now = 1)? Display on LED Matrix Display Idle (display_status = 0)? Display smiley face Figure 6 LEDTS Time Slice Interrupt Service Routine in intouch_ledmatrix_pcdemo Start Get user keyboard input Start Timer 2 Generate random number for display pattern Reset Variables Figure 7 UART Interrupt Service Routine in intouch_ledmatrix_pcdemo intouch_ledmatrix_standalonedemo This demonstration code aims to show some display patterns or animations that can be accomplished by controlling the LED column brightness. Figure 8 gives an overview of the interrupts that make up the program. Two important components of the demonstration code are: 1. Timer 2 overflow interrupt (Figure 9) Application te 9 V1.0, 2012-02

Hardware and Program Flow a) Timer 2 will run each time a new user input is received and an overflow interrupt will be invoked every 0.1s. This interrupt is mainly used to perform the display patterns or animations for the entrance and exit of characters displayed on the LEDs. 2. LEDTS Time slice interrupt (Figure 10) a) Used for setting up the LED display values and for the actual writing on the LDLINE_VALUE[x] registers. low TIME SLICE INTERRUPT every 202.667μs high TIMER 2 OVEFLOW every 100ms Prepare values for LED Display Display out Execute Display Patterns Get next character Figure 8 Overview of interrupts in intouch_ledmatrix_standalonedemo Application te 10 V1.0, 2012-02

Hardware and Program Flow Start Check Pattern Number 1: Shift left 2: Shift right 3: Glow right 4: Glow left 5: Glow out Execute exit animation for previous character display_status = 1 Check display_status Flag to get next character display_status = 2 Execute entrance animation for new input character New character on display? 10 sec idle? Figure 9 Timer 2 Overflow Interrupt Service Routine in intouch_ledmatrix_standalonedemo Application te 11 V1.0, 2012-02

Hardware and Program Flow Start Startup done? display_status = 1? Convert input to LED output values Display hourglass Previous display cleared (display_now = 1)? Display on LED Matrix Display Idle (display_status = 0)? Generate random display pattern no. Get next character Figure 10 LEDTS Time Slice Interrupt Service Routine in intouch_ledmatrix_standalonedemo intouch_ledmatrix_columncontrol With an objective to demonstrate the ability to control the brightness of the LEDs via column, the demonstration code showcases the toggling of brightness level for 2 colums of LEDs. At any one point of time, all 7 LEDs in each column will have different brightness levels. For simplicity, the description of the program flow will focus on one column of LEDs. There are two parts to the demonstration code, namely: 1. Setting CMP_BRIGHTNESS[x] with the individual LED brightness, which will be described in Figure 19. 2. Adjusting the brightness of each LEDs. Both these routines are carried out in the Time Slice Interrupt service routine. Figure 11 gives an overview of how the two routines are scheduled in the interrupt. Application te 12 V1.0, 2012-02

Hardware and Program Flow low TIME SLICE INTERRUPT every 202.667μs high UART INTERRUPT Execute display pattern Process U-Spy button pressed Display out Capture user input Figure 11 Overview of interrupts in intouch_ledmatrix_columncontrol Start Demo_mode? Display smiley 5 sec has passed? Perform eye wink Tutorial Mode 15 sec has passed? Fade and glow Display values and brightness as entered by user Figure 12 LEDTS Time Slice Interrupt Service Routine in intouch_ledmatrix_columncontrol Application te 13 V1.0, 2012-02

Hardware and Program Flow Start Change Mode? New user input? Reset settings for changing mode Store new input Figure 13 UART Interrupt Service Routine in intouch_ledmatrix_columncontrol intouch_ledmatrix_individualcontrol With an objective to demonstrate the ability to control the brightness of the LEDs individually, the demonstration code showcases the toggling of brightness level for 2 colums of LEDs. At any one point of time, all 7 LEDs in each column will have different brightness levels. For simplicity, the description of the program flow will focus on one column of LEDs. There are two parts to the demonstration code, namely: 1. Setting CMP_BRIGHTNESS[x] with the individual LED brightness, which will be described in Figure 20. 2. Adjusting the brightness of each LEDs. Both these routines are carried out in the Time Slice Interrupt service routine. Figure 14 gives an overview of how the two routines are scheduled in the interrupt. low TIME SLICE INTERRUPT every 128μs high UART INTERRUPT Adjust individual LED brightness Process USpy button pressed Capture user input Figure 14 Overview of interrupts in intouch_ledmatrix_individualcontrol Application te 14 V1.0, 2012-02

Hardware and Program Flow Start Check subslice Demo_mode? Turn on individual LEDs with their individual brightness levels 7.68ms has passed? Tutorial Mode Adjust individual LED brightness levels according to user input Adjust individual brightness levels of all LEDs Figure 15 LEDTS Time Slice Interrupt Service Routine in intouch_ledmatrix_individualcontrol Start Change Mode? New user input? Reset settings for changing mode Store new input (individual LED brightness levels) Figure 16 UART Interrupt Service Routine in intouch_ledmatrix_individualcontrol Application te 15 V1.0, 2012-02

LED Matrix Controller and ROM Library 3 LED Matrix Controller and ROM Library The XC836 microcontroller drives LEDs via an LED Matrix controller (Figure 17). The LED Matrix consists of many LEDs arranged in lines and columns. The line pins are shared with touch pads. If the touch-sensing function is also enabled, one of the column pins (COLA) will be used for touch control, so reducing the number of LEDs that can be driven to 56. If the touch-sensing function is not enabled then up to a maximum of 64 LEDs can be driven, as shown in Figure 17. A resistor lies in each line path to limit the current. The LED Matrix controller activates the columns one after another in a round-robin fashion. Each time period, in which one column is enabled, is called a time slice. A compare register for LEDTS-counter is provided so that the duty cycle for column enabling per time slice can be adjusted. This duty cycle essentially corresponds to the LED column s brightness level. The LED column is enabled from the beginning of the time slice until a compare match event is achieved. For 100% duty cycle, the compare value should be set to FF H. Setting this value to 00 H will cause the LED column to stay at passive level throughout the time slice. The compare register is updated at the beginning of each time slice by automatic shadow transfer. During each time slice, LEDs connected to the active column can be enabled via the line signals which are automatically synchronized to the column activation. A line register is provided to hold the LED line pattern value. This register is also updated at the beginning of each time slice by automatic shadow transfer. Figure 17 LED Matrix Controller The ROM Library has a function which takes care of updating the compare and line registers with the correct values. The function, SET_LDLINE_CMP, synchronizes the user s input data for each column and line with the time slice and updates the registers accordingly. This function can be called at every Time Slice or Time Frame Interrupt. Application te 16 V1.0, 2012-02

Behavior 4 Behavior This section will provide some tips on controlling the LEDs such as switching the LEDs on and off, and adjusting the brightness level. The user can select to control the brightness level of the LEDs either at a column level or at each individual LED level. Both methods of control are described. 4.1 Switching ON/OFF The LEDs can be switched on or off by programming the LEDTS ROM Library variable array, LDLINE_VALUE[x]. This is easy once the column and line pins for that particular LED are known. The following diagram (Figure 18), shows the column and line pin connections to each LED in this application. COL0 (P1.0) COL1 (P1.1) COL2 (P1.2) COL3 (P1.3) COL4 (P1.4) LINE0 (P0.0) LINE1 (P0.1) LINE2 (P0.2) LINE3 (P0.3) LINE4 (P0.4) LINE5 (P0.5) LINE6 (P0.6) Figure 18 Column and line pin connections to LEDs The column number will determine the line value array and the line number will determine the bit position for the LED. Here are some examples: To switch on the LED marked with colour yellow in Figure 18, the user will have to set LDLINE_VALUE[2] = 04 H. To switch on the LEDs marked with colour red in Figure 18, the user will have to set LDLINE_VALUE[4] = 18 H. 4.2 Controlling Brightness (Column Level) The brightness level of the LEDs can be controlled on a column-level, meaning all LEDs connected to the same column pin will have the same brightness level. This brightness level depends on the time period within the column time slice, during which the LEDs are turned ON. This LED ON time period can be adjusted via LEDTS ROM Library variables CMP_BRIGHTNESS[x] 1). Again, the column number will determine the CMP_BRIGHTNESS number. In Figure 19, CMP_BRIGHTNESS[5] is set to FF Hex. Hence, the LEDs on COL4 have the maximum brightness level. 1) CMP_BRIGHTNESS will be called TSCOMPARE if the touch-sensing function is enabled. Application te 17 V1.0, 2012-02

Behavior Figure 19 Brightness Control (Column) Example 4.3 Controlling Brightness (Individual LEDs) Besides column-level control for LED brightness, it is also possible for LEDs connected to the same column pin to have different brightness levels. This can be done by switching on only 1 LED with its desired brightness level in every time slice. The example (Figure 20) will make this clearer: Figure 20 Brightness Control (Individual) Example w, lets say that we want to have different brightness levels for all the 7 LEDs on COL0. So, in the COL0 time slice in Time Frame 0, we set LDLINE_VALUE[1] to 1 hex and the CMP_BRIGHTNESS[1] to FF hex. Therefore, we are only switching on the topmost LED with maximum brightness level. In the next COL0 time slice in Time Frame1, we set LDLINE_VALUE[1] to 2 hex and CMP_BRIGHTNESS[1] to CC hex. Therefore, in this time frame, we are only switching on the 2nd LED with 80% brightness level. In the subsequent time frames, the next LED is switched on with its individual brightness level and this cycle is repeated. Application te 18 V1.0, 2012-02

U-SPY This method works due to the high operation frequency. So, it is not evident to our human eyes that we are doing the cycling. However, one point to note here is that the maximum brightness level is lowered due to relative brightness. This can be compensated by choosing line resistors with a lower value. 5 U-SPY For the intouch LED Matrix Board, two settings files have been configured: intouch_ledmatrix_column_control.ini intouch_ledmatrix_individual_control.ini 5.1 intouch_ledmatrix_column_control.ini This settings file (Figure 21) is customized to allow the user to control the brightness of the LEDs at the column level. Figure 21 intouch_ledmatrix_column_control.ini User Interface Grouped Entries The grouped entries are used as the interface for the user to change the value of LEDTS ROM Library parameters, LDLINE_VALUE[x] and CMP_BRIGHTNESS[x], without directly accessing the code. The first two boxes of grouped entries are for turning on and off each individual LEDs via bit position values. The other two boxes of grouped entries are for controlling the brightness of the LEDs at the column level as described in Chapter 4.2. The Set button is used to change the stored values of LDLINE_VALUE[x] and CMP_BRIGHTNESS[x] and the Get button is used to retrieve their stored values. A data group consisting of 3 bytes is transmitted between U-SPY and the XC836 microcontroller, in the following format (Table 1): Application te 19 V1.0, 2012-02

U-SPY Table 1 Grouped Entries Data Format DataByte0(D0) D1 D2 Value (hex) 84 Assigned no. XX Description Data Group I.D. Box Position I.D. Data The data group transmitted/received is then matched before it is processed. Buttons The buttons are used to switch the modes. Data is transmitted from U-SPY to the XC836 microcontroller in the following format (Table 2): Table 2 Buttons Data Format D0 D1 Value (hex) 08 XX Description Data group I.D. Mode no. 5.2 intouch_ledmatrix_individual_control.ini This settings file (Figure 22) is customized to allow the user to control the brightness of each one of the 35 LEDs individually. Figure 22 intouch_ledmatrix_individual_control.ini User Interface Grouped Entries The grouped entries are used as the interface for the user to set the brightness level of each individual LEDs without directly accessing the code. These values are then used to control the brightness of each LED in the manner as described in Chapter 4.3. Application te 20 V1.0, 2012-02

U-SPY The Set button is used to change the stored values for the brightness level of each LED and the Get button is used to retrieve their stored values. A data group consisting of 3 bytes is transmitted between U-SPY and the XC836 microcontroller, in the following format (Table 3): Table 3 intouch_ledmatrix_individual_control.ini Transmitted Data Format DataByte0(D0) D1 D2 Value (hex) 84 Assigned no. XX Description Data Group I.D. Box Position I.D. Data The data group transmitted/received is then matched before it is processed. Buttons The buttons are used to switch between Demo and Tutorial Mode. Data is transmitted from U-SPY to the XC836 microcontroller in the following format (Table 4): Table 4 Buttons Data Format D0 D1 Value (hex) 08 XX Description Data group I.D. Mode no. Application te 21 V1.0, 2012-02

Appendix - Schematics and Layout Appendix - Schematics and Layout C1 C2 C3 C4 C5 A B C D 1 2 3 4 5 6 LED1 2 1 COL3 LINE0 4 3 COL4 LINE1 6 5 COL5 LINE2 8 7 AN6 LINE3 10 9 AN5 LINE4 12 11 AN4 LINE5 14 13 AN3 LINE6 R1 R2 R4 R5 R6 R7 R8 1k5 1k5 1k5 1k5 1k5 1k5 1k5 R1 R2 R3 R4 R5 R6 R7 16 15 TC07-11 AN2 COL0 18 17 AN1 COL1 20 19 AN0 COL2 Touch Sense Application Kit LED Matrix (5x7 dots) 1 2 3 4 5 6 A B C D Figure 23 intouch LED Matrix Board Schematics Application te 22 V1.0, 2012-02

Appendix - Schematics and Layout Figure 24 intouch LED Matrix Board Component Top Layout Figure 25 intouch LED Matrix Board Top Layout Application te 23 V1.0, 2012-02

Appendix - Schematics and Layout Figure 26 intouch LED Matrix Board Bottom Layout Application te 24 V1.0, 2012-02

References References The list below provides resources that may be useful to the user. 1. User s Manual - XC83x; 8-Bit Single-Chip Microcontroller 2. Application te - AP08100 - Configuration for Capacitive Touch-Sense Application 3. Application te - AP08110 - Design Guidelines for XC82x and XC83x Board Layout 4. Application te - AP08113 - Capacitive-Touch Color Wheel Implementation 5. Application te - AP08115 - Design Guidelines for Capacitive Touch-Sensing Application 6. Application te - AP08121 - Infrared Remote Controller with Capacitive Touch Interface 7. Application te - AP08122-16-Button Capacitive Touch Interface with XC836T 8. Application te - AP08124 - XC82/83x Design Guidelines for Electrical Fast Transient (EFT) Protection in Touch-Sense Applications 9. Application te - AP08126 - Infineon Touch Solutions - intouch Application Kit 10. Application te - AP08127 - intouch Application Kit - Buttons 11. Application te - AP08128 - intouch Application Kit - Touch Wheel 12. Application te - AP08129 - intouch Application Kit - Touch Sliders 13. Link to XC83x-Series - www.infineon.com/xc83x 14. Link to Solutions for advanced touch control - www.infineon.com/intouch Application te 25 V1.0, 2012-02

www.infineon.com Published by Infineon Technologies AG