8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508...

20
Fujitsu Semiconductor (Shanghai) Co., Ltd. Application Note MCU-AN-500047-E-10 F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95200 SERIES TOUCH SENSOR IC ATA2508 DEMONSTRATION SET APPLICATION NOTE

Transcript of 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508...

Page 1: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

Fujitsu Semiconductor (Shanghai) Co., Ltd. Application Note

MCU-AN-500047-E-10

F²MC-8FX FAMILY 8-BIT MICROCONTROLLER

MB95200 SERIES

TOUCH SENSOR IC ATA2508 DEMONSTRATION SET

APPLICATION NOTE

Page 2: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 0BRevision History

Revision History Version Date Updated by Modifications

1.0. 8/24/2009 Jacob, Li First draft

This manual contains 20 pages.

1. The products described in this manual and the specifications thereof may be changed without prior notice. To obtain up-to-date information and/or specifications, contact your Fujitsu sales representative or Fujitsu authorized dealer.

2. Fujitsu will not be liable for infringement of copyright, industrial property right, or other rights of a third party caused by the use of information or drawings described in this manual.

3. The contents of this manual may not be transferred or copied without the express permission of Fujitsu.

4. The products contained in this document are not intended for use with equipment which require extremely high reliability such as aerospace equipment, undersea repeaters, nuclear control systems or medical equipment for life support.

5. Some of the products described in this manual may be strategic materials (or special technology) as defined by the Foreign Exchange and Foreign Trade Control Law. In such cases, the products or portions theory must not be exported without permission as defined under the law.

© 2009 Fujitsu Semiconductor (Shanghai) Co., Ltd.

MCU-AN-500047-E-10 – Page 2

Page 3: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 1BContents

CONTENTS

REVISION HISTORY .............................................................................................................. 2 

CONTENTS ............................................................................................................................ 2 

1  INTRODUCTION ................................................................................................................ 4 

2  APPLICATION ENVIRONMENT ....................................................................................... 5 2.1  TSC Demo Platform .................................................................................................. 5 

2.2  TSC Tuning Platform ................................................................................................. 6 

3  TSC DEMO FUNCTIONS .................................................................................................. 7 3.1  Demo System Build-up ............................................................................................. 7 

3.2  IDC 10 Pin Assignment ............................................................................................. 7 

3.3  Demo System Power-on ........................................................................................... 8 

3.4  APIS (Adjacent Pattern Interference Suppression) Modes ....................................... 9 

3.5  Demo Functions ...................................................................................................... 13 

3.6  Waterproof Key Pad ................................................................................................ 14 

4  TSC TUNING ................................................................................................................... 15 4.1  Tuning Interface ...................................................................................................... 15 

4.2  Tuning System Build-up .......................................................................................... 17 

5  DEMO FIRMWARE .......................................................................................................... 18 

6  ADDITIONAL INFORMATION ......................................................................................... 19 

7  APPENDIX ....................................................................................................................... 20 

MCU-AN-500047-E-10 – Page 3

Page 4: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 1 2BIntroduction

1 Introduction Fujitsu ATA2508 digital touch sensor demo set allows the easy evaluation of touch sensor IC ATA2508 and using Fujitsu MB95200 serial MCU to control this IC.

It consists of the below components

1 x MB95200 starter kit MB2146-410-01-E: MB95F204K application and debug platform

1 x ATA2508 touch pad demo set: ATA 2508 and touch pad platform

1 x DCC DPI7 tuning kit: tune ATA2508

1 x Special tuning cable

Demo MCU Firmware

SOFTUNE

This demo set supports the below features

Simple interface for MCU to initialize and control TSC ATA2508

Simple interface for TSC ATA2508 tuning

12 digital touch key pads and 12 linkage-LEDs

3 kinds of key detection modes

MB95F204K MCU controls buzzer according to key value

MCU-AN-500047-E-10 – Page 4

Page 5: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 2 3BApplication Environment

2 Application Environment

This chapter introduces demo and tuning environments.

2.1 TSC Demo Platform TSC demo system consists of MB95200 evaluation board, TSC demo board and normal IDC10 cable. This demo system shows MB95F204K MCU controlling TSC ATA2508 and 3 kinds of touch sensor modes.

Figure 2-1: TSC Demo Platform

MCU-AN-500047-E-10 – Page 5

Page 6: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 2 3BApplication Environment

2.2 TSC Tuning Platform TSC tuning platform consists of AtLab tuning tools, TSC demo board and the special IDC10 cable. AtLab tuning tools and PC S/W support tuning TSC parameter.

Refer to “ATA2508 Users Manual V1.4 (EN) v01” for the detailed tuning method.

Figure 2-2: TSC Tuning Platform

MCU-AN-500047-E-10 – Page 6

Page 7: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 3 4BTSC Demo Functions

3 TSC Demo Functions

This chapter introduces TSC demo system usage and functions.

3.1 Demo System Build-up Program TSC demo code “TSC_LPC_1V0” on MB95200 EV-board and set this EV-board into “normal run” mode. Then connect EV-board and TSC demo through IDC10 cable.

Figure 3-1: Demo System Build-up

3.2 IDC 10 Pin Assignment

Figure 3-2: IDC10 Pin Assignment

MCU-AN-500047-E-10 – Page 7

Page 8: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 3 4BTSC Demo Functions

3.3 Demo System Power-on Provide power to EV-board will power on the whole TSC demo system. MB95200 EV-board supports the below 3 power provided method

4-pcs batteries

9V DC power supplier

USB cable

After power on, LED5 on EV-board is light to indicate power-on status and LED2 on EV-board winks to indicate TSC demo code running.

Figure 3-3: Demo System Power-on

MCU-AN-500047-E-10 – Page 8

Page 9: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 3 4BTSC Demo Functions

3.4 APIS (Adjacent Pattern Interference Suppression) Modes This demo system can support the three kinds of APIS mode.

APIS mode I: reports the strongest output only.

APIS mode II: reports all outputs to overcome the value of Strength Threshold Register

APIS mode III: reports two strongest outputs for multi-touch application

Figure 3-4: APIS Mode I

MCU-AN-500047-E-10 – Page 9

Page 10: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 3 4BTSC Demo Functions

Figure 3-5: APIS Mode II

MCU-AN-500047-E-10 – Page 10

Page 11: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 3 4BTSC Demo Functions

Figure 3-6: APIS mode III

MCU-AN-500047-E-10 – Page 11

Page 12: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 3 4BTSC Demo Functions

Press S1 to change these 3 modes in turn.

Figure 3-7: APIS Modes Change

MCU-AN-500047-E-10 – Page 12

Page 13: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 3 4BTSC Demo Functions

3.5 Demo Functions The system supports the demo functions using the buzzer on MB95200 EV-board.

The functions is shown briefly on the below figure.

Figure 3-8: Demo Functions

MCU-AN-500047-E-10 – Page 13

Page 14: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 3 4BTSC Demo Functions

3.6 Waterproof Key Pad The system demonstrates waterproof capability of key pad of ATA2508. The below picture is the reference. If water is dropped on the key pad, ATA 2508 still can work normally and do the correct key-value detection.

Refer to “ATA2508 Users Manual V1.4 (EN) v01” for the detailed characteristic.

Figure 3-9: Waterproof Key Pad

MCU-AN-500047-E-10 – Page 14

Page 15: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 4 5BTSC Tuning

4 TSC Tuning

This chapter introduces TSC pad and IC tuning interface and method.

4.1 Tuning Interface For support tuning function using AtLab DCC DP17 tuning kit, the special IDC10 cable is provided.

The table below shows the pin assignment of cable.

PC sides EV-board sides

Pin1 <——> NC Pin2 <——> NC Pin3 <——> Pin1 Pin4 <——> Pin9 Pin5 <——> Pin10 Pin6 <——> Pin5 Pin7 <——> Pin6 Pin8 <——> Pin3 Pin9 <——> Pin2 Pin10 <——> Pin4 NC <——> Pin7

NC <——> Pin8

MCU-AN-500047-E-10 – Page 15

Page 16: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 4 5BTSC Tuning

The picture below shows the 2 terminals of this cable.

Figure 4-1: Special IDC10 Cable

MCU-AN-500047-E-10 – Page 16

Page 17: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 4 5BTSC Tuning

4.2 Tuning System Build-up Connect DCC DP17 tuning kit and TSC demo board through the special IDC10 cable. Then connect the kit into PC though USB cable.

In the way, TSC ATA2508 parameter can be tuned and tied on PC software GUI.

Refer to “ATA2508 Users Manual V1.4 (EN) v01” for the detailed tuning method.

Figure 4-2: Tuning System

MCU-AN-500047-E-10 – Page 17

Page 18: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 5 6BDemo Firmware

5 Demo Firmware

This chapter introduces TSC pad and IC tuning interface and method.

In this solution, TSC ATA2508 is controlled by MCU through I2C. If MCU hasn’t I2C peripheral just like MB95F204K, I2C communication can be simulated by general IO port. In this case, Config.h on demo F/W “TSC_LPC_1V0” will be re-defined to realize the S/W I2C.

At the same time, MCU only controls buzzer simply according to four key values. If the different solution is requested, user can modify MCU application code in Main.c file of demo F/W project.

Figure 5-1: Demo Firmware Project

MCU-AN-500047-E-10 – Page 18

Page 19: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 6 7BAdditional Information

6 Additional Information For more Information on FUJITSU MB95200 products, visit the following websites:

English version address:

http://www.fujitsu.com/cn/fsp/services/mcu/mb95/application_notes.html

Chinese version address:

http://www.fujitsu.com/cn/fss/services/mcu/mb95/application_notes.html

MCU-AN-500047-E-10 – Page 19

Page 20: 8-BIT MICROCONTROLLER MB95200 SERIES … MICROCONTROLLER . MB95200 SERIES . TOUCH SENSOR IC ATA2508 . ... (Adjacent Pattern Interference ... reports two strongest outputs for multi

TSC Demo V1.0 Chapter 7 8BAppendix

MCU-AN-500047-E-10 – Page 20

7 Appendix Figure 2-1: TSC Demo Platform .............................................................................................. 5 

Figure 2-2: TSC Tuning Platform ............................................................................................. 6 

Figure 3-1: Demo System Build-up .......................................................................................... 7 

Figure 3-2: IDC10 Pin Assignment .......................................................................................... 7 

Figure 3-3: Demo System Power-on ........................................................................................ 8 

Figure 3-4: APIS Mode I .......................................................................................................... 9 

Figure 3-5: APIS Mode II ....................................................................................................... 10 

Figure 3-6: APIS mode III ...................................................................................................... 11 

Figure 3-7: APIS Modes Change ........................................................................................... 12 

Figure 3-8: Demo Functions .................................................................................................. 13 

Figure 3-9: Waterproof Key Pad ............................................................................................ 14 

Figure 4-1: Special IDC10 Cable ........................................................................................... 16 

Figure 4-2: Tuning System ..................................................................................................... 17 

Figure 5-1: Demo Firmware Project ....................................................................................... 18