The following document contains information on Cypress products.
8-BIT MICROCONTROLLER New 8FX Family MB95870K/860K/850K series Setup development platform
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
Revision History Rev Date Remark 1.0.0 2012-08-23 Initial Version 2
Contents REVISION HISTORY... 2 CONTENTS... 3 TARGET PRODUCTS... 5 1 INTRODUCTION... 6 1.1 Purpose... 6 1.2 Definitions, Acronyms and Abbreviations... 6 1.3 Document Overview... 6 2 TOUCH PROJECT DEVELOPMENT... 7 2.1 Touch Project Development Flow... 7 2.2 Touch Project Development Platform... 8 2.2.1 Hardware... 8 2.2.2 Firmware... 8 2.2.3 Software... 8 2.3 Setup Development Platform... 8 3 TUNING BACKGROUND... 9 3.1 Touch Registers... 9 3.2 Types of Registers... 10 3.3 How to Tune... 10 3.3.1 Tuning in SOFTUNE... 10 3.3.2 Tuning in F-Touch... 11 4 HARDWARE PLATFORM... 12 4.1 Introduction... 12 4.2 Connect PC with BGMA... 13 4.3 Connect BGMA with EVB... 13 4.4 Power on EVB... 14 4.5 System is Connected... 15 5 FIRMWARE PLATFORM... 16 5.1 Install SOFTUNE... 16 6 SOFTWARE PLATFORM... 18 6.1 Tuning Software... 18 6.1.1 Install Microsoft.Net Framework... 18 6.1.2 Open Tuning Software... 21 3
6.2 Install USB Driver... 22 6.2.1 Install... 22 6.2.2 Check... 22 7 RUN ON THE PLATFORM... 23 7.1 Run Hardware... 23 7.2 Run Firmware... 24 7.3 Run Software... 24 8 TUNING BASED ON TOUCH DEVELOPMENT PLATFORM... 26 9 ADDITIONAL INFORMATION... 27 10 APPENDIX... 28 10.1 List of Figures and Tables... 28 4
Target products This application note is described about below products; Series MB95870K MB95860K MB95850K Product Number (not included Package suffix) MB95F876K MB95F866K MB95F856K 5
1 Introduction 1.1 Purpose This application note describes how to setup TSCMCU development platform, including hardware platform, firmware platform and software platform. 1.2 Definitions, Acronyms and Abbreviations TSC Capacitance Touch Sensor TSCMCU MCU with TSC inside F-Touch F-Touch for SOFTUNE 1.3 Document Overview The rest of document is organized as follows: Chapter 2 explains Touch Project Development. Chapter 3 explains Tuning Background. Chapter 4 explains Hardware Platform. Chapter 5 explains Firmware Platform. Chapter 6 explains Software Platform. Chapter 7 explains Run on the Platform. 6
2 Touch Project Development This chapter describes the touch project development. 2.1 Touch Project Development Flow Typical touch project development flow is shown in Figure 2-1. Figure 2-1: Touch Project Development Flow 7
2.2 Touch Project Development Platform PCB can be EVB or users PCB, the touch project development platform is shown in Figure 2-2. Figure 2-2: Touch Project Development Platform 2.2.1 Hardware EVB: MB2146-540-EVB-V1.2.0 BGMA: MB2146-07-E Power Supply: USB-B Cable PC 2.2.2 Firmware Sample project: (FWSC)TSCMCU-EVB 2.2.3 Software MCU Debug Tool: Softune Touch Debug Tool: F-Touch for SOFTUNE Other program: Driver of BGMA Driver of Software: Microsoft.NET Framework 2.3 Setup Development Platform Development platform can be setup quickly, the details are shown in below chapters. 8
3 Tuning Background This chapter describes the tuning background. 3.1 Touch Registers TSCMCU has many registers about touch, which shown as below. Table 3-1: Register Map of TSCMCU Register Abbreviation Register Name TER0 TS touch channel enable register 0 TER1 TS touch channel enable register 1 PSC TS prescaler control register WRESET TS warm reset register RSELn TS resistance select register ch. n 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 FTSEL TS feature select register AICWAT TS AIC wait time setting register CALITV TS calibration interval setting register ITGTM TS integration time setting register IDLETM TS idle time setting register CONTROL TS control register INTMR TS interrupt mask register INTCR TS interrupt clear register FLTP TS filter period setting register FLTTH TS filter threshold setting register REFDLY TS reference delay setting register ALPHn TS alpha value setting register ch. n BETA TS beta value setting register STRTHn TS touch strength threshold setting register ch. n STRn TS touch strength register ch. n CALIPn TS calibrated impedance register ch. n IMPEn TS impedance register ch. n TOUCHL TS touch data register (lower) TOUCHH TS touch data register (upper) INTPR TS interrupt pending register 9
3.2 Types of Registers These registers can be divided into four types, sensitivity type, algorithm type, work type, and others. Sensitivity type, such as ALPHA, RSEL etc. Algorithm type, such as Filter, Str_th etc. TSC module Work type, such as PSC, TER etc. Other type, such as DIO, Beep etc. 3.3 How to Tune Figure 3-1: Types of Registers 3.3.1 Tuning in SOFTUNE As registers about touch are part of MCU registers, hence they can be tuned in SOFTUNE. Check registers: read, write Run code in SOFTUNE However it is difficult to tune for suitable parameters due to many registers, and it is also difficult to understand the effect of each register. Figure 3-2: Touch Registers in SOFTUNE 10
3.3.2 Tuning in F-Touch It is strongly recommended to tune in F-Touch. It is easy to observe the status of touch pads by four registers: Impedance, Cal_impedance, Touch byte, and Strength. 1. Impedance: this value is the original value of the touch pad. 2. Cal_impedance: this value is the impedance value + ALPHA value. 3. Touch byte: this value is the status of touch pads, when touch occurs. 4. Strength: this value is period of touching. This is the status of Touch byte. The color is gray when the touch pad is nontouched This value is impedance, it is less than Cal_impedance when the touch pad is non-touched This value is Cal_impedance, it is less than impedance when the touch pad is touched When the touch pad is touched, the color is turned to green This value is the time of touching. When the touch pad is touched, the color is turned to blue. Figure 3-3: Registers Used to Observe 11
4 Hardware Platform This chapter describes how to setup the hardware platform. 4.1 Introduction As touch sensor is becoming part of TSCMCU, it needs not to use extra tool as tuning equipment. Through Tuning Software, BGMA can acquire the implement register value and read the touch data etc. The usage of BGMA is similar to MCU emulation and debug. USB BGMA Adapter TSCMCU board Figure 4-1: Hardware Platform 1 BGMA Target Touch Board Figure 4-2: Hardware Platform 2 Note: F-Touch supports MB2146-07-E BGMA Adapter only. For more details about MB2146-07-E BGMA Adapter, please refer to SS702-00001-1v0-E. 12
4.2 Connect PC with BGMA Connect PC with BGMA. Figure 4-3: Connect PC with BGMA 4.3 Connect BGMA with EVB Connect BGMA with EVB. Figure 4-4: Connect BGMA with EVB 13
4.4 Power on EVB EVB is turned on. Figure 4-5: Power Supply 1 Figure 4-6: Power Supply 2 14
4.5 System is Connected Figure 4-7: System Connected 15
5 Firmware Platform This chapter describes how to setup the firmware platform. 5.1 Install SOFTUNE 1. Open setup folder, double-click and select setup.exe file, click Next when the following window appears. Figure 5-1: Set up of SOFTUNE-1 2. Click Browse to select folder where Setup would install files, and click Next. Figure 5-2: Set up of SOFTUNE-2 16
3. Check SOFTUNE Workbench, select SOFTUNE C Compiler and SOFTUNE Assembler Pack, and then click Next. Figure 5-3: Setup of SOFTUNE-3 4. Click Finish, and the installation is finished. Figure 5-4: Setup of SOFTUNE-4 17
6 Software Platform This chapter describes how to setup the software platform. 6.1 Tuning Software 6.1.1 Install Microsoft.Net Framework The tuning Software is F-touch, which is shown as below: Figure 6-1: F-Touch 1. If Framework is not installed in PC, F-Touch cannot work, and error window is popup, as below. Figure 6-2: Framework Error 18
2. Download Microsoft.Net Framework from Microsoft website, as below: http://www.microsoft.com/en-us/download/details.aspx?id=25150 3. Click dotnetfx.exe to install Framework Figure 6-3: Install dotnetfx.exe 4. Accept terms of the License Agreement. 5. Download Progress Figure 6-4: Install Framework step 1 Figure 6-5: Install Framework step 2 19
6. Install Progress. 7. Setup is completed. Figure 6-6: Install Framework step 3 Figure 6-7: Install Framework step 4 20
6.1.2 Open Tuning Software After Microsoft.Net Framework is installed, Tuning Software can be opened. Figure 6-8: F-Touch Interface 21
6.2 Install USB Driver 6.2.1 Install Users can find driver folder in this route, and run drv_install.bat as Administrator, open installation interface as below. Note: Please do not connect BGMA to PC. Figure 6-9: Install USB Driver 6.2.2 Check Connect BGMA MB2146-07 with PC, turn the power on, and then check the device manager list as below: Figure 6-10: Device Manager List If FUJITSU USB Driver for BGMA device is uninstalled, it needs to install the driver manually. 22
7 Run on the Platform This chapter describes how to run on the platform. 7.1 Run Hardware Figure 7-1 shows the System Connection. Figure 7-1: System Connection For more information, please refer to the MCU-UM-500014: MB2146_540_E-EVB_HW. 23
7.2 Run Firmware 1. Open sample project in SOFTUNE 2. Check if it can debug sample code in SOFTUNE and EVB Figure 7-2: Downloading 7.3 Run Software 1. Disconnect SOFTUNE with EVB 2. Check if it can debug in Tuning Software and EVB 24
Figure 7-3: Tuning Software Connect 25
8 Tuning Based on Touch Development Platform For more details about tuning, please refer to related documents as below. 1. AN702-00012 : HW_Guideline 2. AN702-00027 : FW_Guideline 3. AN702-00014 : IMPEDANCE_VS_Environment 4. AN702-00015 : Sensitivity_VS_Cover 5. AN702-00013 : Migration_to_TSCMCU 6. AN702-00019 : Waterproof_Guideline 7. AN702-00018 : Quick_Taste_Register 8. AN702-00016 : Test_Method 9. AN702-00017 : Trouble_Shooting 10. AN702-00011 : Quick_Start_by_F-Touch 11. AN702-00009 : Setup_Development_Platform 12. AN702-00010 : Get_First_Touch_Project 13. AN702-00020 : Tuning_Parameters_by_F-Touch 14. AN702-00021 : Tuning_Sensitivity_by_F-Touch 15. AN702-00022 : Tuning_for_Cover_by_F-Touch 16. AN702-00023 : Tuning_for_Water_Robust_by_F-Touch 17. AN702-00024 : Observe_Noise_by_F-Touch 18. AN702-00025 : Check_Touch_by_F-Touch 19. AN702-00026 : Solve_Special_Problem_by_F-Touch 20. AN702-00008 : Design_Guide 21. AN702-00007 : Start_Guide 26
9 Additional Information For more Information on FUJITSU semiconductor products, visit the following websites: http://www.fujitsu.com/global/services/microelectronics/documents/ 27
10 Appendix 10.1 List of Figures and Tables Table 3-1: Register Map of TSCMCU... 9 Figure 2-1: Touch Project Development Flow... 7 Figure 2-2: Touch Project Development Platform... 8 Figure 3-1: Types of Registers... 10 Figure 3-2: Touch Registers in SOFTUNE... 10 Figure 3-3: Registers Used to Observe... 11 Figure 4-1: Hardware Platform 1... 12 Figure 4-2: Hardware Platform 2... 12 Figure 4-3: Connect PC with BGMA... 13 Figure 4-4: Connect BGMA with EVB... 13 Figure 4-5: Power Supply 1... 14 Figure 4-6: Power Supply 2... 14 Figure 4-7: System Connected... 15 Figure 5-1: Set up of SOFTUNE-1... 16 Figure 5-2: Set up of SOFTUNE-2... 16 Figure 5-3: Setup of SOFTUNE-3... 17 Figure 5-4: Setup of SOFTUNE-4... 17 Figure 6-1: F-Touch... 18 Figure 6-2: Framework Error... 18 Figure 6-3: Install dotnetfx.exe... 19 Figure 6-4: Install Framework step 1... 19 Figure 6-5: Install Framework step 2... 19 Figure 6-6: Install Framework step 3... 20 Figure 6-7: Install Framework step 4... 20 Figure 6-8: F-Touch Interface... 21 Figure 6-9: Install USB Driver... 22 Figure 6-10: Device Manager List... 22 Figure 7-1: System Connection... 23 Figure 7-2: Downloading... 24 Figure 7-3: Tuning Software Connect... 25 28