Abov A96T418GDN User manual

Contents A96T418GDN Shield Board quick Guide
2
Contents
1Introduction ....................................................................................................................................5
2User requirements..........................................................................................................................6
2.1 Hardware...............................................................................................................................6
2.1.1 Starter Kit..................................................................................................................6
2.1.2 Shield Board .............................................................................................................6
2.2 Software ................................................................................................................................7
2.3 Reference documents...........................................................................................................7
2.4 System requirements ............................................................................................................8
2.5 ABOV website .......................................................................................................................8
3Building and running project (Shield Board) ..................................................................................9
3.1 Prepare the Starter kit & Shield Board................................................................................10
3.2 Set up the Starter kit & Shield Board ..................................................................................12
3.3 Connect the Starter Kit to your PC......................................................................................14
3.4 STKS Practice.....................................................................................................................16
3.4.1 Compile with Keil uVision5 for C51 ........................................................................16
3.4.2 Download & Run with OCD ....................................................................................17
4Function description (Using Touch library) ...................................................................................20
4.1 Touch Parameter Description..............................................................................................20
4.1.1 touch_config.h ........................................................................................................20
4.1.2 user_function.c .......................................................................................................32
4.2 LED Parameter Description ................................................................................................33
4.2.1 user_function.h .......................................................................................................33
4.3 User Function Feature Description .....................................................................................35
4.3.1 user_function.h .......................................................................................................35
4.3.2 main.c .....................................................................................................................42
Revision history .....................................................................................................................................43

A96T418GDN Shield Board quick Guide List of figures
3
List of figures
Figure 1. A96T418GDN Starter Kit Board (Hardware)............................................................................6
Figure 2. A96T418GDN Shield Board (Hardware)..................................................................................6
Figure 3. Compiler (Software) .................................................................................................................7
Figure 4. Reference Documents .............................................................................................................7
Figure 5. Window PC & Mini-B cable......................................................................................................8
Figure 6. ABOV Semiconductor Website ................................................................................................8
Figure 7. Starter Kit B/D ........................................................................................................................10
Figure 8. A96T418GDN Shield Board Description................................................................................11
Figure 9. Starter Kit Jumper & Switch ...................................................................................................12
Figure 10. Connect to Starter Kit to use Shield Board ..........................................................................13
Figure 11. Starter Kit and USB Connection ..........................................................................................14
Figure 12. ABOV OCD at Device Manager...........................................................................................15
Figure 13. Execute Keil uVision5 for C51 .............................................................................................16
Figure 14. Build the project ...................................................................................................................16
Figure 15. OCD Connection..................................................................................................................17
Figure 16. OCD Connection..................................................................................................................18
Figure 17. Touch & Display ...................................................................................................................19
Figure 18. Touch CH activation (in touch_config.h) ..............................................................................20
Figure 19. Touch clock setting value (in touch_lib.h) ............................................................................21
Figure 20. Low Pass Filter Register and Capacitor setting value (in touch_lib.h) ................................22
Figure 21. Touch sensing mode setting value (in touch_lib.h) ..............................................................23
Figure 22. Sensitivity for each channel in normal mode .......................................................................23
Figure 23. Sensitivity for each channel in normal mode .......................................................................24
Figure 24. Touch sensing channel port setting value (in touch_lib.h) ...................................................25
Figure 25. Debounce Count ..................................................................................................................26
Figure 26. IIR-Filter ...............................................................................................................................26
Figure 27. Reverse situation parameters ..............................................................................................28
Figure 28. Press Threshold & Release threshold (set 50% rate) .........................................................29
Figure 29. Change of touch data according to TOUCH_SUM_CNT_CH07 .........................................30
Figure 30. Baseline Trace Speed (1 vs 5).............................................................................................31
Figure 31. LED COM/SEG port activation ............................................................................................33
Figure 32. LED port current setting value .............................................................................................34
Figure 33. Set LED operating time........................................................................................................34
Figure 34. Touch sensing operation time setting ..................................................................................34
Figure 35. Touch/LED Time-Division Mode...........................................................................................35
Figure 36. Touch/LED Independent Mode ............................................................................................36
Figure 37. UART baud rate setting .......................................................................................................37
Figure 38. Hold Key release Event .......................................................................................................38
Figure 39. Touch First Key Priority define .............................................................................................39
Figure 40. Multi Key Reset Use channel define....................................................................................40

A96T418GDN Shield Board quick Guide 1. Introduction
5
1 Introduction
This document introduces software environment and development recommendations for the ABOV 8-
bit Touch/LED-Driver MCU starter kit. It offers an easy way to develop the Home Appliance Touch.
1. The starter kit board contains a debugger called “OCD”, which eliminates the need for
additional devices for MCU programming and debugging.
2. In this Quick Start Guide, we’ll discuss how to operate A96T418GDN Shield Board, as an
example, step by step

2. User requirements A96T418GDN Shield Board quick Guide
6
2 User requirements
2.1 Hardware
2.1.1 Starter Kit
Figure 1. A96T418GDN Starter Kit Board (Hardware)
2.1.2 Shield Board
Figure 2. A96T418GDN Shield Board (Hardware)

A96T418GDN Shield Board quick Guide 2. User requirements
7
2.2 Software
1. Keil complier (uVision5)
2. EVK (Library) software
Figure 3. Compiler (Software)
2.3 Reference documents
1. A96T418 Starter Kit Quick Guide
2. A96T418 Starter Kit HW Manual
3. A96T418 User’s Manual
4. T-TYPE LED Structure
5. Touch Basic Algorithm
6. Example code
For detailed information, refer to the categories below.
Figure 4. Reference Documents

2. User requirements A96T418GDN Shield Board quick Guide
8
2.4 System requirements
1. Windows PC (7, 8, 10)
2. USB micro-B type cable
Figure 5. Window PC & Mini-B cable
2.5 ABOV website
For detailed information about corresponding software and documents, you can visit our website at
https://www.abovsemi.com.
Figure 6. ABOV Semiconductor Website

STKS A96T418GDN Shield Board quick Guide Building and running project (Shield Board)
9
3 Building and running project (Shield Board)
Running application code makes it easier to start the Shield Board. Following the steps below:
Step1. Prepare the Starter kit & Shield Board
Step2. Set up the Starter kit & Shield Board
Step3. Connect the Starter kit to your PC
Step4. STKS Practice
Step5. Library description

Building and running project (Shield Board) A96T418GDN Shield Board quick Guide
10
3.1 Prepare the Starter kit & Shield Board
Hardware components of the Starter Kit
1. The starter kit board is comprised of a device board and an OCD board. The two boards can
be separated if necessary.
2. Device board configuration
A. ABOV 8-bit MCU
B. Pin Headers connected to MCU
C. LED, switch and jumper to check input/output, reset, and debugger pins
3. OCD board configuration
A. OCD for programming and debugging with ABOV 8-bit MCU(connected to USB port of
PC)
B. Supports OCD Disconnection Mode (In this mode, OCD DSCL and DSDA port can be
used as UART TX and UART RX, respectively)
Figure 7. Starter Kit B/D

STKS A96T418GDN Shield Board quick Guide Building and running project (Shield Board)
11
Hardware components of the Shield Board
Table 1. Shield Board Description
Function
Description
Remark
CS6,7,8,9,10
User SW
Touch Only Pin
CS0,1,2,3,4,17,18,19
User SW
Touch & SEG Pin
LED T-Type Segment
User SW
COM0/SEG0~COM7/SEG7
LED M-Type Matrix
User SW
COM0~COM7, SEG8~SEG15
BUZZER
PWM
P11/PWM1O
Figure 8. A96T418GDN Shield Board Description

Building and running project (Shield Board) A96T418GDN Shield Board quick Guide
12
3.2 Set up the Starter kit & Shield Board
Set jumpers to control the Starter Kit
1. USB 5V Power Output On/Off Jumper
2. OCD/UART Selection Switch
3. External 5V
4. Device Board(A96T418 IC included) Power On/Off Switch
5. OCD_DSCL/OCD_DSDA or UART_TX/UART_RX (Depends on ②OCD/UART SEL SW)
6. JP3~JP7
: It must be open for touch use.
Figure 9. Starter Kit Jumper & Switch

STKS A96T418GDN Shield Board quick Guide Building and running project (Shield Board)
13
Connect to Starter Kit to use Shield Board
Connect the header socket on the Shield board on the header pin of the Starter Kit Board. As shown in
the following Figure 10.
Figure 10. Connect to Starter Kit to use Shield Board

Building and running project (Shield Board) A96T418GDN Shield Board quick Guide
14
3.3 Connect the Starter Kit to your PC
PC connection via USB on the Starter Kit
Connect the USB 2.0 (micro-B type) cable to the Starter Kit as shown in Figure 11.
1. If the PC is properly connected, the USB Power LED will be turned on. -①
2. If the power switch is moved in the direction shown below, the OCD detects the IC (A96T418)
and the LED is turned on. -②
Figure 11. Starter Kit and USB Connection

STKS A96T418GDN Shield Board quick Guide Building and running project (Shield Board)
15
When OCD is connected, it is displayed as ABOV OCD in Device Manager.
1. OCD is a Universal Serial Bus(USB) controllers class and does not require driver installation
on Microsoft Windows
Figure 12. ABOV OCD at Device Manager

Building and running project (Shield Board) A96T418GDN Shield Board quick Guide
16
3.4 STKS Practice
3.4.1 Compile with Keil uVision5 for C51
1. Install “Keil uVision5 for C51”.
2. Open the project file provided (A96T418Proj.uvmpw).
Figure 13. Execute Keil uVision5 for C51
3. Build the project
Figure 14. Build the project

STKS A96T418GDN Shield Board quick Guide Building and running project (Shield Board)
17
3.4.2 Download & Run with OCD
1. Connection
: To connect the OCD, move the power switch in the direction shown below.
Figure 15. OCD Connection
2. Download
: Download the hex file (t418code.hex) as shown below.

Building and running project (Shield Board) A96T418GDN Shield Board quick Guide
18
Figure 16. OCD Connection
A. Display on LED-Matrix(M-type) & LED-Segment(T-type)
B. Display on LED-Matrix with the rules of 0,1,2,3,4 …
C. Display on LED-Segment with the rules of 1000,2000,4000,8000,0100 …

STKS A96T418GDN Shield Board quick Guide Building and running project (Shield Board)
19
Figure 17. Touch & Display

Function description (Using Touch library) A96T418GDN Shield Board quick Guide
20
4 Function description (Using Touch library)
4.1 Touch Parameter Description
4.1.1 touch_config.h
4.1.1.1 #define CSXX_USE X
━If you used touch channel, set X=1, otherwise set X=0.
Figure 18. Touch CH activation (in touch_config.h)
Other manuals for A96T418GDN
1
Table of contents
Other Abov Computer Hardware manuals