The following document contains information on Cypress products. AN702-00013-1v0-E 8-BIT MICROCONTROLLER New 8FX Family MB95870K/860K/850K series Migration to TSCMCU AN702-00013-1v0-E All Rights Reserved. The contents of this document are subject to change without notice. Customers are advised to consult with FUJITSU sales representatives before ordering. The information, such as descriptions of function and application circuit examples, in this document are presented solely for the purpose of reference to show examples of operations and uses of Fujitsu semiconductor device; Fujitsu does not warrant proper operation of the device with respect to use based on such information. When you develop equipment incorporating the device based on such information, you must assume any responsibility arising out of such use of the information. Fujitsu assumes no liability for any damages whatsoever arising out of the use of the information. Any information in this document, including descriptions of function and schematic diagrams, shall not be construed as license of the use or exercise of any intellectual property right, such as patent right or copyright, or any other right of Fujitsu or any third party or does Fujitsu warrant non-infringement of any third-party’s intellectual property right or other right by using such information. Fujitsu assumes no liability for any infringement of the intellectual property rights or other rights of third parties which would result from the use of information contained herein. The products described in this document are designed, developed and manufactured as contemplated for general use, including without limitation, ordinary industrial use, general office use, personal use, and household use, but are not designed, developed and manufactured as contemplated (1) for use accompanying fatal risks or dangers that, unless extremely high safety is secured, could have a serious effect to the public, and could lead directly to death, personal injury, severe physical damage or other loss (i.e., nuclear reaction control in nuclear facility, aircraft flight control, air traffic control, mass transport control, medical life support system, missile launch control in weapon system), or (2) for use requiring extremely high reliability (i.e., submersible repeater and artificial satellite). Please note that Fujitsu will not be liable against you and/or any third party for any claims or damages arising in connection with above-mentioned uses of the products. Any semiconductor devices have an inherent chance of failure. You must protect against injury, damage or loss from such failures by incorporating safety design measures into your facility and equipment such as redundancy, fire protection, and prevention of over-current levels and other abnormal operating conditions. If any products described in this document represent goods or technologies subject to certain restrictions on export under the Foreign Exchange and Foreign Trade Law of Japan, the prior authorization by Japanese government will be required for export of those products from Japan. The company names and brand names herein are the trademarks or registered trademarks of their respective owners. Copyright© 2012 FUJITSU SEMICONDUCTOR LIMITED all rights reserved 1 AN702-00013-1v0-E Revision History Rev Date Remark 1.0.0 2012-08-15 Initial Version 2 AN702-00013-1v0-E Contents REVISION HISTORY ............................................................................................................ 2 CONTENTS .......................................................................................................................... 3 TARGET PRODUCTS .......................................................................................................... 4 1 INTRODUCTION .............................................................................................................. 5 1.1 Purpose................................................................................................................... 5 1.2 Definitions, Acronyms and Abbreviations ................................................................ 5 1.3 Document Overview ................................................................................................ 5 2 OVERVIEW ...................................................................................................................... 6 2.1 ATLab DCC ............................................................................................................. 6 2.2 TSCMCU ................................................................................................................. 7 3 TUNING SYSTEM ............................................................................................................ 8 3.1 3.2 Tuning Hardware ..................................................................................................... 8 3.1.1 DCC Tuning Hardware............................................................................... 8 3.1.2 TSCMCU Tuning Hardware ....................................................................... 9 Touch Software ..................................................................................................... 10 3.2.1 Tuning Viewer .......................................................................................... 10 3.2.2 F-Touch ................................................................................................... 11 4 REGISTER OPERATION ............................................................................................... 12 4.1 Register Definitions ............................................................................................... 12 4.2 Register Accessing................................................................................................ 13 4.2.1 DCC Register Accessing ......................................................................... 13 4.2.2 TSCMCU Register Accessing .................................................................. 13 5 ADVANTAGE OF TSCMCU ........................................................................................... 14 5.1 Extremely Fast ...................................................................................................... 14 5.2 Extremely Low Power ............................................................................................ 14 5.3 Extremely Robust .................................................................................................. 14 5.4 Extremely EASY to implement............................................................................... 14 6 ADDITIONAL INFORMATION ....................................................................................... 15 7 APPENDIX ..................................................................................................................... 16 7.1 List of Figures and Tables ..................................................................................... 16 3 AN702-00013-1v0-E Target products This application note is described about below products; Series Product Number (not included Package suffix) MB95870K MB95F876K MB95860K MB95F866K MB95850K MB95F856K 4 AN702-00013-1v0-E 1 Introduction 1.1 Purpose This application note describes how to migrate from ATLab’s Digital Contact Controller (DCC) to Fujitsu’s TSCMCU. Firstly, this document provides the relationship of ATLab’s DCC and Fujitsu’s TSCMCU. Then, it covers the principal differences between the two series IC. At last, this document introduces the feature of TSCMCU. It assumes that the users have some basic knowledge of ATLab’s DCC and TSCMCU. 1.2 Definitions, Acronyms and Abbreviations TSC Capacitance Touch Sensor TSCMCU MCU with TSC inside ATLab’s DCC ATLab’s Digital Contact Controller AICTM Automatic Impedance Calibration TM APIS Adjacent Pattern Interference Suppression F-Touch F-Touch for SOFTUNE 1.3 Document Overview The rest of document is organized as follows: Chapter 2 explains.Overview Chapter 3 explains Tuning System Chapter 4 explains Register Operation Chapter 5 explains Advantage of TSCMCU 5 AN702-00013-1v0-E 2 Overview This chapter provides the overview of ATLab’s DCC and Fujitsu’s TSCMCU 2.1 ATLab DCC ATLab’s Digital Contact Controller contains kinds of low-power, compact, flexible touch sensor controller that convert capacitance generated between human body and conductive touch pad to digital data without any analog signal processing. A host MCU is necessary to support register configuration and touch digital data read. Below is topological graph of DCC application: Parameters are loaded to from MCU to DCC DCC Touch Pads MCU I2C bus Touch information as interrupt, wake up etc. Figure 2-1: Topological Graph of DCC Application Its programmability increases design flexibility and gives better performance and stability for a broader range of applications. DCC provides configurable Automatic Impedance Calibration (AICTM) and three different modes for Adjacent Pattern Interference Suppression (APISTM). 6 AN702-00013-1v0-E 2.2 TSCMCU Fujitsu’s TSCMCU is an outstanding One-Chip solution which integrates the F2MC-8FX MCU and ATLab’s DCC IP. Below shows the topological graph of TSCMCU application: F2MC-8FX CPU TS (DCC) TSCMCU Touch Pads Internal Bus Figure 2-2: Topological Graph of TSCMCU It maintains all excellence performance of DCC such as AICTM and APISTM. The integration, make the register configuration and touch digital data read easier. 7 AN702-00013-1v0-E 3 Tuning System This chapter introduces the difference in tuning software interface The tuning system helps developers to tune the target board with various parameters that determine the performance of the target touch board. The tuning system is positioned between the PC and the target touch board. It allows the developers to view all necessary parameters for tuning and transfers the desired parameters to the touch IC attached on the target touch board. Tuning System PC Target Board Tuning Software Tuning Hardware Figure 3-1: Conceptual Diagram for Tuning System 3.1 Tuning Hardware 3.1.1 DCC Tuning Hardware Tuning Kit Target Touch Boards Figure 3-2: DCC Tuning Hardware Users can transmit commands to the MCU or receive touch data from the MCU through the USB interface. The MCU in the tuning kit controls the DCC on the target touch board via the I2C interface by reading/writing data to access internal registers in the DCC. 8 AN702-00013-1v0-E 3.1.2 TSCMCU Tuning Hardware BGMA Target Touch Board Figure 3-3: TSCMCU Tuning Hardware As touch sensor become parts of TSCMCU, extra tools are not required for tuning. Through cooperation with tuning F-Touch, the BGMA implement register value get and set, touch data read and so on. The usage of BGMA in this mode is similar with emulation and debug mode. General information of F-Touch introduced in エラー! 参照元が見つかりません。, and user may refer to F-Touch user manual MCU-UM-500016: MB2146_540_E-EVB_SW for more information. 9 AN702-00013-1v0-E 3.2 Touch Software The Touch Software installed in the PC will displays various registers to control and read to show current impedance values of all input channels in real time. It powerfully support parameter acquisition and setup, touch status monitor, touch data save, and operation time calculation. 3.2.1 Tuning Viewer ATLab provides Tuning Viewer as tuning software of DCC. This software provides MCU configuration control window additionally. It’s used to configure parameters of MCU which build up in Tuning kit, and tuning out one set of parameters of host MCU. A typical tuning window of Tuning Viewer is shown in Figure 3-4. It contains: Main Window Control Register Module AIC Tuning Window Manual Register Control Window MCU Configuration Window Data Save Window Time Chart Window Figure 3-4: Main Window of Tuning Viewer 10 AN702-00013-1v0-E 3.2.2 F-Touch Fujitsu provides F-Touch of TSCMCU. This software provides outstanding vision and functions: Implement graphic display of Impedance value. Close up touch status monitor display in one area Additional Touch Area Calculation window Data save dialog provide touch action information (channel number, touch time) Configuration file import and export function Support both Chinese and English A typical tuning window of Tuning Viewer is shown in Figure 3-5. It contains: Main Window Time Chart Window Data Save and Test Window Touch Area Calculation Figure 3-5: Main Window of F-Touch 11 AN702-00013-1v0-E 4 Register Operation This chapter introduces the difference in register accessing 4.1 Register Definitions Most of registers have same name and function definition in Fujitsu’s TSCMCU and ATLab’s DCC, as TSCMCU integrated the DCC IP. The register definitions details have been listed in below table (take ATA2538 and MB95F876 as examples of DCC and TSCMCU): Table 4-1: Register Map in DCC and TSCMCU Register in DCC Register in TSCMCU Description ALPHA n ALPHn Strength Threshold n STRTHn Strength n STRn Calibrated Impedance n CALIPn TS calibrated impedance register ch. n Impedance n IMPEn TS impedance register ch. n PAn_R_SEL RSELn TS resistance select register ch. n Beep Frequency BPDUR TS beep duration setting register TS alpha value setting register ch. n TS touch strength threshold setting register ch. n TS touch strength register ch. n TER0 TS touch channel enable register 0 TER1 TS touch channel enable register 1 N/A PSC TS prescaler control register Warm Reset WRESET Beep Period BPDUR TS beep duration setting register DIOR1 TS direct output control register 1 DIOR2 TS direct output control register 2 DIOR3 TS direct output control register 3 Feature FTSEL TS feature select register AIC Wait Time AICWAT TS AIC wait time setting register Calibration Interval CALITV TS calibration interval setting register Integration Time ITGTM TS integration time setting register IDLE Time IDLETM TS idle time setting register Control1 CONTROL Interrupt Mask INTMR TS interrupt mask register Interrupt Clear INTCR TS interrupt clear register FILTER Period FLTP FILTER Threshold FLTTH Reference Delay REFDLY BETA BETA TS beta value setting register Touch Byte L TOUCHL TS touch data register (lower) Touch Byte H TOUCHH TS touch data register (upper) Interrupt Pending INTPR PA Configuration GPIO Configuration TS warm reset register TS control register TS filter period setting register TS filter threshold setting register TS reference delay setting register TS interrupt pending register 12 AN702-00013-1v0-E 4.2 Register Accessing 4.2.1 DCC Register Accessing DCC register access needs I2C bus protocol support for configuration and data read operation. 4.2.2 TSCMCU Register Accessing Since TS module is part of the MCU, users can access directly just like accessing other registers. 13 AN702-00013-1v0-E 5 Advantage of TSCMCU This chapter introduces the advantages of TSCMCU 5.1 Extremely Fast Extremely FAST Response Time No complex signal processing needed Register programmable, 10 times/sec (100msec) ~ 5,000 times/sec (0.2msec) Allow data management, filtering, etc. 5.2 Extremely Low Power Extremely LOW Power Consumption Supply current typical 120µA Active mode, 37 µA Idle mode 5.3 Perfectly fit to portable products Extremely Robust Consistent sensitivity through AIC™ Resistant to outer signal disturbances through differential signal format Water resistant designs possible ESD protected up to 8KV (HBM) / 15KV (set / air) 5.4 Extremely EASY to implement One single electrode is sufficient for touch channel Advanced hardware functionality AIC™ impedance calibration APIS™ touch filtering High design flexibility Individual channel sensitivity Touch strength output TSC can be either located close to touch pads or on the main PCB Touch pad can be as small as 1mm x 1mm Evaluation Board with F-Touch Program available 14 AN702-00013-1v0-E 6 Additional Information For more Information on FUJITSU semiconductor products, visit the following websites: http://www.fujitsu.com/global/services/microelectronics/documents/ 15 AN702-00013-1v0-E 7 Appendix 7.1 List of Figures and Tables Table 4-1: Register Map in DCC and TSCMCU ................................................................... 12 Figure 2-1: Topological Graph of DCC Application ................................................................. 6 Figure 2-2: Topological Graph of TSCMCU ............................................................................ 7 Figure 3-1: Conceptual Diagram for Tuning System ............................................................... 8 Figure 3-2: DCC Tuning Hardware ......................................................................................... 8 Figure 3-3: TSCMCU Tuning Hardware ................................................................................. 9 Figure 3-4: Main Window of Tuning Viewer .......................................................................... 10 Figure 3-5: Main Window of F-Touch ................................................................................... 11 16