LEDTS LED and Touch-Sense. XMC microcontrollers September 2016

Similar documents
VADC Versatile Analog to Digital Converter. XMC Microcontrollers August 2014

XC83x AP Application Note. Microcontrollers. intouch Application Kit - LED Matrix Display V1.0,

Capacitive Sensing Solutions from Silicon Labs. In this section, we are going to cover the Silicon Labs Capacitive Sensing solutions.

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

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

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

CAPACITIVE SENSING MADE EASY, Part 2 Design Guidelines

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

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

Designing an Induction Cooker Using the S08PT Family

Embedded Component Based Programming with DAVE 3

Interfacing Intel 8255x Fast Ethernet Controllers without Magnetics. Application Note (AP-438)

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

DAP miniwiggler V3. Application Note. Microcontrollers AP56004 V

AN111: Using 8-Bit MCUs in 5 Volt Systems

AN2680 Application note

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

Product Datasheet P MHz RF Powerharvester Receiver

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

Serial Communications

Simplifying System Design Using the CS4350 PLL DAC

XMC in Motor Control Applications. XMC Microcontrollers January 2015

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

Application Note 58 Crystal Considerations with Dallas Real Time Clocks

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

XPort Universal Demo Board User Guide

USER GUIDE EDBG. Description

AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

Adding Heart to Your Technology

DS1621 Digital Thermometer and Thermostat

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Application Note: PCB Design By: Wei-Lung Ho

Using FPGAs to Design Gigabit Serial Backplanes. April 17, 2002

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

Wireless Security Camera

Supply voltage Supervisor TL77xx Series. Author: Eilhard Haseloff

Flexible Active Shutter Control Interface using the MC1323x

Push-Pull FET Driver with Integrated Oscillator and Clock Output

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

DS1307ZN. 64 x 8 Serial Real-Time Clock

Output Ripple and Noise Measurement Methods for Ericsson Power Modules

CHAPTER 11: Flip Flops

Welcome to the Introduction to Controller Area Network web seminar My name is William Stuart, and I am a Applications Engineer for the Automotive

Application Note 58 Crystal Considerations for Dallas Real-Time Clocks

System theremino MasterDIL-V3

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

AN4646 Application note

A Digital Timer Implementation using 7 Segment Displays

DS1621 Digital Thermometer and Thermostat

In-System Programming Design TM. Guidelines for ispjtag Devices. Introduction. Device-specific Connections. isplsi 1000EA Family.

Eliminate Risk of Contention and Data Corruption in RS-485 Communications

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

AVR32788: AVR 32 How to use the SSC in I2S mode. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

NC-12 Modbus Application

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

Guide to using the DALI LightNet tool

Measuring Resistance Using Digital I/O

1+1 PROTECTION WITHOUT RELAYS USING IDT82V2044/48/48L & IDT82V2054/58/58L HITLESS PROTECTION SWITCHING

Figure 1. 8-Bit USB Debug Adapter

AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

STEPPER MOTOR SPEED AND POSITION CONTROL

Proximity Design Guide. Proximity Design Guide. Application Note QTAN Introduction

User Manual. AS-Interface Programmer

IR-210/712A + TouchPAD

Web Site: Forums: forums.parallax.com Sales: Technical:

AN3265 Application note

Communication Unit 560CMU05 Data sheet

IR Communication a learn.sparkfun.com tutorial

Multi-Touch Ring Encoder Software Development Kit User s Guide

Designing a Schematic and Layout in PCB Artist

DS1821 Programmable Digital Thermostat and Thermometer

User and installation manual

MANUAL FOR RX700 LR and NR

This application note is written for a reader that is familiar with Ethernet hardware design.

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

Information Board User s Guide

Capacitive Touch Lab. Renesas Capacitive Touch Lab R8C/36T-A Family

GPS/GLONASS SiRFstarV Evaluation Kit EVA5100-A

Technical Note TN_158. What is the Camera Parallel Interface?

Low-Voltage/Low-Power MCU Solutions from Silicon Labs

Hello, and welcome to this presentation of the STM32 SDMMC controller module. It covers the main features of the controller which is used to connect

RGB Wall Washer Using ILD4035

Software Manual RS232 Laser Merge Module. Document # SU Rev A

PL-277x Series SuperSpeed USB 3.0 SATA Bridge Controllers PCB Layout Guide

Fujitsu Microelectronics Europe Application Note MCU-AN E-V11 FR FAMILY 32-BIT MICROCONTROLLER MB91460 CLOCK MONITOR APPLICATION NOTE

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

Designing the NEWCARD Connector Interface to Extend PCI Express Serial Architecture to the PC Card Modular Form Factor

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

Micro-Step Driving for Stepper Motors: A Case Study

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

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

RETRIEVING DATA FROM THE DDC112

Serial Communications

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

nanoetxexpress Specification Revision 1.0 Figure 1 nanoetxexpress board nanoetxexpress Specification Rev 1.

Section 28. In-Circuit Serial Programming (ICSP )

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

LOCAL INTERCONNECT NETWORK (LIN)

Transcription:

LEDTS LED and Touch-Sense XMC microcontrollers September 2016

Agenda 1 Functions enabling via hardware 2 Configurable LED brightness 3 Pad scheme 4 Flexible measurement time on touch pads 5 Extended frames 6 Multiple kernels synchronization 2

Agenda 1 Functions enabling via hardware 2 Configurable LED brightness 3 Pad scheme 4 Flexible measurement time on touch pads 5 Extended frames 6 Multiple kernels synchronization 3

LEDTS LED and Touch-Sense LEDTS Highlights MCLK DAVE App ISR Interrupt control Column control Line control Touch- Sense control LEDs and/or touch pads The LEDTS is especially designed to enable driving of LEDs (up to 64 LEDs in a LED matrix) and control capacitive touch pads (up to 8 pads per kernel) at the same time. The LEDTS controls the LEDs and touch pads in a timemultiplexed manner, thus allowing them to share pins. Key feature LEDs are driven in a LED matrix Capacitive touch sensing via relaxation oscillator topology LEDs and touch pads can share pins Customer benefits Drive more LEDs with limited pins No additional hardware needed to generate oscillations The number of pins needed for such applications is minimized 4

LEDTS LEDs are driven in a LED matrix (1/2) A LED matrix consists of many LEDs arranged in lines and columns The columns are activated one after another The line signals are automatically synchronized to the column activation Saves cost: Maximizes the number of LEDs that can be driven with limited number of pins Up to 64 LEDs without touch pads, 56 LEDs with touch pads Interrupt control DAVE App ISR Column control Line control COL A COL 0 COL 1 COL 2 COL 3 COL 4 COL 5 COL 6 LINE 0 LINE 1 LINE 2 LINE 3 LINE 4 LINE 5 LINE 6 LINE 7 Flexible: the LEDs can be arranged in various layouts 5

LEDTS LEDs are driven in an LED matrix (2/2) Time slice Smallest time period used in LEDTS Only one LED column can be active in a time slice COMPARE value (CMP_LDx bit field) LINE0 LINE1 LINE2 frame slice 2 1 0 A Column active time within a time slice Determines brightness level 0xFF brightest, 0x00 - off Time frame Time taken for all columns to have been activated in a round = Time slice * no. of LED columns (with no touch pads) COL 2 COL 1 COL 0 COL A CMP_LDx Time slice LEDTS timer LEDs on LEDs off 6

LEDTS Capacitive touch via relaxation oscillator (1/2) What is capacitive touch sensing? Touch pad controller regularly measures the capacitance of touch pads C r When the pads are touched, their capacitance increases Overlay r Touch by a finger forms a parallel capacitance (increase in overall capacitance) GND Touch button PCB Parallel-plate capacitor model of the extra capacitance: C = ε 0 ε r * (A/d) Benefits: Flexible design Cp Capacitor plates A Dielectric d LED Can have protective overlay No wear and tear e 0 = permittivity of free space e r = relative permittivity of dielectric material A = area of the plates (~ finger touch area) d = distance between plates (~ cover thickness) 7

LEDTS Capacitive touch via relaxation oscillator (2/2) input threshold V dd pad turn enable sensor pad threshold S fsys f out pulse count 1 2 3 4 5 What is the relaxation oscillator topology? A simple circuit generates oscillations on the sensor pad The number of oscillations is monitored in an adjustable time window (called the oscillation window) The output frequency depends on the pad capacitance The higher the capacitance the lower the frequency and the lower the number of pulses - > if the pad is touched, the number of pulses becomes lower Benefits: HW needed for charging and discharging is already available in the pad No need for extra HW to be designed 8

LEDTS LEDs and touch pads can share pins (1/2) Column control Line control 2 line pins shared between LEDs and touch pads Touch pads Touch sense control Only 7 pins for 12 LEDs and 2 touch pads LEDs and touch pads can co-exist and share pins The LEDTS drives LEDs and controls touch pads in a time-multiplexed manner Benefit: The number of pins needed to drive multiple LEDs and touch pads can be minimized = cost saved 9

LEDTS LEDs and touch pads can share pins (2/2) slice frame Auto scan time period LINE0 LINE1 LINE2 3 2 1 0 A 3 2 1 0 A COL 3 COL 2 COL 1 COL 0 pad osc enable Time-multiplexing At any one time, only 1 LED column or the touch-sense function is active Touch pads are active during a touch-sense time block Only 1 touch pad is active in any touch-sense time block Touch pads are activated and serviced in a round-robin manner Auto scan time period When all touch pads have been serviced = time frame * no. of touch pads 10

LEDTS System integration LEDTS SR FN TSIN EXTENDED COL LINE Target applications CCU4 IN3L NVIC VADC BGREQGTJ GxREQGTJ PORTS XMC 4100 XMC 1100 XMC 4200 XMC 4400 XMC 4500 XMC 4700 XMC 1200 XMC 1300 LEDTS is interconnected with several modules in the MCU system. CCU4 Input signal to CCU4 module (Not on XMC 4x00). NVIC To generate interrupt. Human machine interface Touch sense VADC Input signal to VADC module. PORTS - Pin oscillation control unit is integrated with the standard PORTS pad. Eliminates the need for additional hardware circuitry to generate oscillations. 11

Application example IR remote control USB USB UART In brief XMC 1x00 TX connect IR Rx IR receiver with USB docking station IR LED XMC 1x00 IR transceiver with touch control The IR remote control features a combination of capacitive touch control and IR communication. It comprises of two parts the IR receiver and transceiver. User input is captured and processed by the LEDTS. Infrared transmission and reception is realized via the standard RC-5 protocol. Overview In Human-Machine Interface (HMI) applications such as the IR remote control, the LEDTS gives flexibility and a high-level of customization to the design. The LEDTS too, with the use of capacitive touch technology, enables the detection of user input through enclosure materials. The behavior of the touch inputs can be simply adjusted through software parameters, independent of mechanical constraints. On the IR transceiver, the LEDTS controls and processes the touch signals for two buttons and a touch wheel, using only 5 pins of the XMC xx00. These touch inputs are designed on a flexible PCB which is glued directly onto the underside of the upper part of the remote control housing. On the IR receiver, the LEDTS drives the LEDs that serve as indicators for the corresponding touches on the IR transceiver. 12

LEDTS Functions enabling via hardware The LEDTS drives LEDs and controls touch pads in a timemultiplexed manner Taken care by hardware: Column enabling which column is to be active now? Function enabling LED or touch-sensing is to be active now? Touch pad enabling which pad to service now? Minimizes the amount of work to be handled by software, such as: LED line pattern LED brightness level MCLK Touch-sense signal processing Even all these software work will be taken care by the DAVE TM App LEDTS Column control Line control Interrupt control DAVE App ISR Touch- Sense control LEDs Touch pads 13

Agenda 1 Functions enabling via hardware 2 Configurable LED brightness 3 Pad scheme 4 Flexible measurement time on touch pads 5 Extended frames 6 Multiple kernels synchronization 14

LEDTS Configurable LED brightness (1/3) Application may require different brightness level for LEDs connected to same microcontroller LEDTS allows customized brightness level On a column level LEDs on same column have same brightness On an individual LED level Using some software tricks 15

LEDTS Configurable LED brightness (2/3) column The brightness level of the LEDs in a particular column 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 the respective CMP_LDx register bit fields 16

LEDTS Configurable LED brightness (3/3) - individual LEDs connected to the same column pin can have different brightness levels as well How? In every time slice, only 1 LED is switched on with its desired brightness level 17

Agenda 1 Functions enabling via hardware 2 Configurable LED brightness 3 Pad scheme 4 Flexible measurement time on touch pads 5 Extended frames 6 Multiple kernels synchronization 18

LEDTS Pad scheme (1/4) Pad scheme: Pad configuration during charging and discharging of pad oscillators 2 schemes: Scheme A: Slow charge fast discharge (more in later slide) on XMC 4x00, XMC 1200 Scheme B: Slow charge slow discharge (more in later slide) only on XMC 1200 Offer a variation for pad oscillation behavior Coupled with pad hysteresis configuration More options to find better match for user application 19

LEDTS: Pad Scheme A (2/4) (available on XMC 4x00, XMC 1200) Scheme A Pn_HWSEL = 01 B Standard hysteresis: Pn_PHx=0XX B Output low, opendrain enabled during discharging Sensor pad TSIN[x] Standard PORTS pad Hysteresis control Options available: Large hysteresis: Pn_PHx=1XX B Pin oscillation Input high threshold Input low threshold Large hysteresis External pull-up (see next slide) Pin-low-level active extension (see next slide) Pin oscillation Input high threshold Input low threshold 20

LEDTS: Pad scheme A options (3/4) (available on XMC 4x00, XMC 1200) External pull-up Flexibility to adjust pin oscillation rate External pull-up activated during charging Enable external COLA pull-up TSIN[x] Hysteresis control Pin-low-level active extension Option to delay the start of charging due to slower discharge e.g. series resistor between pin and touch pad TSIN[x] Hysteresis control Pin-low-level active extension enabled during discharging Sensor pad Standard PORTS pad Sensor pad Standard PORTS pad Activeextend Enable pin-low-level extension Pin oscillation Pin oscillation 1 clock (default) Extension enabled Extension disabled Input high threshold Input low threshold Pin oscillation rate depends on resistor value Input high threshold Input low threshold 4, 8 or 16 clocks 21

LEDTS: Pad scheme B (4/4) (available only on XMC 1200) Scheme B Pn_HWSEL = 10 B Large hysteresis: Pn_PHx=1XX B Internal pull- up enabled during discharging TSIN[x] Hysteresis control Options available: Pin oscillation Input high threshold Input low threshold Standard hysteresis: Pn_PHx=0XX B Standard hysteresis Sensor pad Standard PORTS pad Pin oscillation Input high threshold Input low threshold 22

Agenda 1 Functions enabling via hardware 2 Configurable LED brightness 3 Pad scheme 4 Flexible measurement time on touch pads 5 Extended frames 6 Multiple kernels synchronization 23

LEDTS Flexible measurement time on touch pads Touch inputs used in applications may have different sensitivity due to design factors e.g. trace length, parasitic capacitance etc. As such, LEDTS enables measurement time to be customized for individual pads LINE0 LINE1 LINE2 COL3 COL2 COL1 COL0 pad osc enable Frame Slice 3 2 1 0 Autoscan time period A 3 2 1 0 A Oscillation window size touch pad active period and measurement is made 0xFF Time slice LEDTS timer Customization via respective CMP_TSx bit fields CMP_TSx Achieve consistent performance across all touch inputs 0 Touchpad inactive Oscillation window Touchpad active 24

Agenda 1 Functions enabling via hardware 2 Configurable LED brightness 3 Pad scheme 4 Flexible measurement time on touch pads 5 Extended frames 6 Multiple kernels synchronization 25

LEDTS Extended frames Application problem: Low resolution for no. of oscillation counts Hard to distinguish a touch More susceptible to noise Solution: Accumulate the no. of oscillation counts over a few time frames A touch pad is serviced for a no. of consecutive time frames (defined by ACCCNT bit field) Advantage: can be done by hardware, eases software 26

Agenda 1 Functions enabling via hardware 2 Configurable LED brightness 3 Pad scheme 4 Flexible measurement time on touch pads 5 Extended frames 6 Multiple kernels synchronization 27

LEDTS: Multiple kernels synchronization (1/2) (only on XMC 1200) 2 LEDTS kernels in XMC 1200 Drive more LEDs and control more touch inputs Options for HW synchronization: Start of LEDTS counters Clock frequency determined by kernel 0 s clock pre-scaler Kernel 1 will take clock from kernel 0 Auto scan time period synchronization (next slide) LEDTS 0 _ syncstart Kernel0 CMTR ENSYNC LEDTS0_timeperiod_sync MCLK LEDTS0_mclk CLK_PS LEDTScounter Auto scan time period LEDTS0_master_ timeperiod LEDTS0_master_clk LEDTS1_syncstart CMTR ENSYNC Kernel1 LEDTS1_timeperiod_sync LEDTS 1_mclk CLK_PS LEDTScounter Auto scan time period LEDTS1_master_timeperiod LEDTS1_master_clk 28

LEDTS: Multiple kernels synchronization (2/2) Auto scan (only on XMC 1200) Auto scan time period synchronization When kernel 1 reaches its auto scan time period, its LEDTScounter clock will be gated When kernel 0 reaches its auto scan time period, gating on kernel 1 s LEDTS-counter clock is removed Conditions: Touch-sense function is enabled on all kernels HW pad turn control on all kernels Kernel 0 is enabled and has longest auto scan time period Start of LEDTS counters synchronization is enabled 29

General information For latest updates, please refer to: http://www.infineon.com/xmc1000 http://www.infineon.com/xmc4000 For support: http://www.infineonforums.com/forums/8-xmc-forum 30

Support material Collaterals and Brochures Product Briefs Selection Guides Application Brochures Presentations Press Releases, Ads www.infineon.com/xmc Technical Material Application Notes Technical Articles Simulation Models Datasheets, MCDS Files PCB Design Data www.infineon.com/xmc Kits and Boards DAVE TM Software and Tool Ecosystem Videos Technical Videos Product Information Videos Infineon Media Center XMC Mediathek Contact Forums Product Support Infineon Forums Technical Assistance Center (TAC) 31

Disclaimer The information given in this training materials 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. Infineon Technologies hereby disclaims any and all warranties and liabilities of any kind (including without limitation warranties of noninfringement of intellectual property rights of any third party) with respect to any and all information given in this training material.