Introduction A31T216RLN Shield Board Quick Guide introduces software environment and development recommendations for the ABOV 32-bit Touch/LED-Driver MCU Starter Kit. This document also offers an easy method to develop the Home Appliance Touch. The Starter Kit Board in this document contains a CMSIS-DAP debugger ‘A-Link’, which allows the MCU programming and debugging without additional devices.
A31T21xRLN Shield Board Quick Guide 2. User Requirements Software The software users must prepare is as follows: Keil complier (uVision 5) Example Code & Touch Library Figure 3 shows the uVision Editor that includes all standard features of a modern source code editor and is available during debugging.
2. User Requirements A31T21xRLN Shield Board Quick Guide Reference Documents From the ABOV website, users can find more information about the A31T216RLN Starter Kit and Shield Board as follows: A31T216 Starter Kit Quick Guide A31T216 Starter Kit HW Manual A31T216 User’s Manual...
A31T21xRLN Shield Board Quick Guide 2. User Requirements System Requirements Windows PC (7, 8, and 10) Micro-B 5-pin USB Cable (for Starter Kit) Figure 5. Window PC and Mini-B Cable...
2. User Requirements A31T21xRLN Shield Board Quick Guide ABOV Website Users can find more software and documents at the ABOV website, www.abovsemi.com. Figure 6. Software and Documents at ABOV Semiconductor Website...
A31T21xRLN Shield Board Quick Guide 3. Build and Run Project (Shield Board) Build and Run Project (Shield Board) Running application code makes it easier to start the Shield Board. Following the steps below: Prepare Starter Kit and Shield Board. Step 1. Starter Kit and Shield Board settings Step 2.
The Starter Kit consists of a device board and an A-Link (CMSIS-DAP) debugger board as shown in Figure 7. It can be used separately as needed. Device board configuration: ABOV 32-bit MCU, X-TAL (optional) Pin headers connected to MCU C. LEDs and switches to check input/output...
A31T21xRLN Shield Board Quick Guide 3. Build and Run Project (Shield Board) 3.1.2 Hardware Components of Shield Board Table 1. Shield Board Description Function Description Remark Touch (CS0 to CS13) Touch only Touch (CS14 to CS20, and Touch & SEG CS23) Touch (CS20 to CS22) COM only...
3. Build and Run Project (Shield Board) A31T21xRLN Shield Board Quick Guide Starter Kit and Shield Board Settings 3.2.1 Jumper Settings for Starter Kit Control The circle numbers in Figure 9 represent the order in which the jumpers are set to control the Starter Kit: The Starter Kit uses the USB power.
A31T21xRLN Shield Board Quick Guide 3. Build and Run Project (Shield Board) 3.2.2 Starter Kit Connection for Shield Board Use Connect the header sockets on the Shield board and the header pin on the Starter Kit Board, as shown in Figure 10. Figure 10.
3. Build and Run Project (Shield Board) A31T21xRLN Shield Board Quick Guide Starter Kit Connection to PC 3.3.1 USB Connection with USB 2.0 Cable Connect a USB 2.0 (Micro-B type) cable to the Starter Kit as shown in Figure 11. When the PC is connected correctly to the other end of the USB 2.0 cable, the following actions are performed: The power LED on the device board is turned on.
A31T21xRLN Shield Board Quick Guide 3. Build and Run Project (Shield Board) 3.3.2 Hardware Recognition on PC (Device Drivers) The A-Link board (debugger) uses a USB interface. When the A-Link board (debugger) is connected to a PC, it is displayed as ‘USB Composite Device’ in the Serial Bus Controller List, as shown in Figure 12.
3. Build and Run Project (Shield Board) A31T21xRLN Shield Board Quick Guide Run Starter Kit Shield Board 3.4.1 Compilation with Keil uVision 5 Using Keil uVision 5, users can compile the provided project files and run the Starter Kit Shield Board. To do so, follow the procedure below: Install ‘Keil uVision 5 for Cortex-M’.
A31T21xRLN Shield Board Quick Guide 3. Build and Run Project (Shield Board) Build the project as shown in Figure 14. Figure 14. Project Build in Keil uVision 5...
3. Build and Run Project (Shield Board) A31T21xRLN Shield Board Quick Guide 3.4.2 A-Link Debugger Configuration and Download When the compilation is completed without errors, users can begin programming the Starter Kit. Downloading is enabled since the Starter Kit is connected to the USB port on the PC. 3.4.2.1 Debugger Configuration Before downloading firmware to the target, the A-Link debugger must be configured in options panel of...
A31T21xRLN Shield Board Quick Guide 3. Build and Run Project (Shield Board) 3.4.2.2 Firmware Download To download firmware to the target, click the download icon (① in Figure 16) and check if the download begins. Users can view the download results in the Build Output pane (② in Figure 16). Figure 16.
Run ‘Start/Stop Debugger Session’ to enter debugger mode. The Starter Kit must be connected to the PC for real-time, interactive debugging. In debugger mode, the program can be executed per Run/Step/Stop Debugger Session. Figure 17. Debugging with ABOV A-Link and CMSIS-DAP...
A31T21xRLN Shield Board Quick Guide 3. Build and Run Project (Shield Board) Figure 18 describes T-type and M-type LEDs’ operation for Touch and Display. Run ➔ LED-Matrix (M-type) and LED-Segment (T-type) display Figure 18. T-type and M-type LEDs for Touch and Display...
4. Function Description (Using Touch library) A31T21xRLN Shield Board Quick Guide Function Description (Using Touch library) Touch Parameter Description 4.1.1 touch_config.h touch_config.h defines the parameters applied in the touch library. 4.1.1.1 #define CSxx_USE X ━ If using CSxx PIN as the touch channel, set X=1, otherwise set X=0. Figure 19.
A31T21xRLN Shield Board Quick Guide 4. Function Description (Using Touch library) 4.1.1.2 #define MESH_SHIELD_EN X ━ If using CS23 pin as the mesh-shield, set X=1, otherwise set X=0. ━ It is a function that prevents water droplets from falling on the PAD and the touch sensitivity from decreasing.
A31T21xRLN Shield Board Quick Guide 4. Function Description (Using Touch library) 4.1.1.6 #define TOUCH_MODE_VAL [n] ━ Set touch sensing operation mode. Figure 23. Touch sensing operation mode select option ━ TS_MODE_NORMAL The most common mode of operation ◼ In this mode, parasitic capacitance value for each channel is not adjusted. ◼...
4. Function Description (Using Touch library) A31T21xRLN Shield Board Quick Guide ━ TS_MODE_ADJUST It is a mode that automatically adjusts the capacitance value of each channel to be the ◼ same by using the capacitance inside the IC. Adjusted based on channel with highest capacitance. ◼...
4. Function Description (Using Touch library) A31T21xRLN Shield Board Quick Guide 4.1.1.12 #define TIMER_BASE_REVERSE_SAMPLE [n] ━ This feature prevents malfunction when Rawdata is outside the baseline. ━ This function sets the reverse (Rawdata > Baseline) holding time. ━ When the reverse hold time reaches the set time, Baseline is initialized to the Rawdata value ━...
A31T21xRLN Shield Board Quick Guide 4. Function Description (Using Touch library) 4.1.1.14 #define BASE_RELEASE_HOLD_CNT_VAL [n] ━ Baseline is not updated as many as [n] frames during touch release. ━ By setting value, sensing is repeated, and cumulative summing is performed. Therefore, it can serve as a low-pass filter, but there is a disadvantage that the sensing time is prolonged.
4. Function Description (Using Touch library) A31T21xRLN Shield Board Quick Guide 4.1.1.17 #define TOUCH_LPF_R_CHxx [n] ━ Sets the values of the resistor and capacitor for the IC internal low pass filter. ━ The greater the setting value, the greater the sensitivity. Figure 29.
A31T21xRLN Shield Board Quick Guide 4. Function Description (Using Touch library) 4.1.1.19 #define THD_RELEASE_RATE_CHxx [n] ━ Set the release threshold for each channel. ━ In the key detect state, a key release event occurs if the Diff data is less than the release threshold.
4. Function Description (Using Touch library) A31T21xRLN Shield Board Quick Guide 4.1.1.20 #define BASE_TRACE_SPEED_CHECK_RATE_CHxx [n] ━ Sets the level for changing the speed of the baseline. ━ In the Release state, if Diff is greater than the set value, BASE_TRACE_SLOW_SPEED is applied.
A31T21xRLN Shield Board Quick Guide 4. Function Description (Using Touch library) 4.1.1.22 #define BASE_TRACE_SLOW_SPEED_CHxx [n] ━ Set the gain for baseline slow speed. ━ The greater the setting value, the slower the baseline. It should be set to a value greater than FAST_SPEED.
4. Function Description (Using Touch library) A31T21xRLN Shield Board Quick Guide 4.1.1.25 #define RELEASE_DEBOUNCE_CNT_CHxx [n] ━ Set the debounce value used to remove glitch noise. ━ If the debounce count is too large, it takes a lot of time for touch recognition and release recognition, so you need to set the appropriate value.
A31T21xRLN Shield Board Quick Guide 4. Function Description (Using Touch library) 4.1.1.28 #define REF_CH_SUM_CNT_VAL [n] ━ This function to adjust the amount of change in Ref CH sensing data.. ━ The operating principle is the same as TOUCH_SUM_CNT. ━ Setting range [0~15] : Default 8 4.1.1.29 #define REF_CH_LPF_C_VAL [n] 4.1.1.30 #define REF_CH_LPF_R_VAL [n] ━...
4. Function Description (Using Touch library) A31T21xRLN Shield Board Quick Guide 4.1.2 user_function.h Description of the touch parameter among the parameters of ‘user_function.h’. 4.1.2.1 #define TOUCH_FREQ_SEL_EN X ━ If the Ref channel and the Touch channel change in the same direction, set X=0. Otherwise, set X=1.
A31T21xRLN Shield Board Quick Guide 4. Function Description (Using Touch library) 4.1.2.4 #define HOLD_KEY_RELEASE_EN X ━ If you want to use hold key release function, set X=1. Otherwise, set X=0. ━ When the key remains in the Detect state for a long period of time, it is a force release function and is used to prevent malfunction.
4. Function Description (Using Touch library) A31T21xRLN Shield Board Quick Guide 4.1.2.5 #define MULTI_KEY_RESET_EN X ━ If you want to use multi key reset function, set X=1. Otherwise, set X=0. ━ This feature initializes all keys when more keys are recognized than the number of multi-keys allowed.
A31T21xRLN Shield Board Quick Guide 4. Function Description (Using Touch library) 4.1.2.8 #define CHANNEL_GROUPING_EN X ━ If you want to use Cannel Grouping function, set X=1. Otherwise, set X=0. ━ Divide groups by key and ignore key inputs from other groups when key inputs occur. ━...
4. Function Description (Using Touch library) A31T21xRLN Shield Board Quick Guide LED Parameter Description 4.2.1 user_function.h 4.2.1.1 #define LED_DRV_EN X ━ If you want to use led driver function, set X=1. Otherwise, set X=0. ━ Setting top options for LED driver actions. When set to 0, LED driver-related operations are not performed.
A31T21xRLN Shield Board Quick Guide 4. Function Description (Using Touch library) Figure 37. Comparison of noise effects depending on the use of touch/LED time division 4.2.1.3 #define LED_USE_COM_NUM [n] ━ Set number of LED COM ports (ICOM) used. 4.2.1.4 #define TIME_LED_OPREATING [n] ━...
4. Function Description (Using Touch library) A31T21xRLN Shield Board Quick Guide Figure 38. LED current select option 4.2.1.7 #define COMxx_EN X 4.2.1.8 #define SEGxx_EN X ━ If you used ICOM/ISEG channel, set X=1. Otherwise, set X=0.
A31T21xRLN Shield Board Quick Guide 4. Function Description (Using Touch library) User Parameter Description 4.3.1 user_function.h 4.3.1.1 #define UART_DEBUG_EN X ━ If you want to use debug.c (UART), set X=1. Otherwise, set X=0. ━ Data on Touch can be checked during project development. ━...
4. Function Description (Using Touch library) A31T21xRLN Shield Board Quick Guide Main Function Description 4.4.1 main.c 4.4.1.1 void Port_Init (void) ━ A function that sets the default value for GPIO. 4.4.1.2 void System_Setting_Config (void) ━ A function that sets the default value for SCU. 4.4.1.3 void Change_SysClock (void) ━...
Page 49
A31T21xRLN Shield Board Quick Guide Revision History Revision History Revision Date Notes 1.00 21.07.08 Document created 1.10 22.09.15 Update Touch Library document 1.11 22.09.21 correction of typo 1.12 22.11.02 Revised the font of this document 1.13 23.09.25 [Library code version : 1.2.0] Library Code Change structure and add functionality...
Page 50
ABOV Semiconductor ("ABOV") reserves the right to make changes, corrections, enhancements, modifications, and improvements to ABOV products and/or to this document at any time without notice. ABOV does not give warranties as to the accuracy or completeness of the information included herein. Purchasers should obtain the latest relevant information of ABOV products before placing orders.