Advertisement

Quick Links

User Guide to Configure the IQS7221E Using the Debug and Display Tool
Contents
2.1
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2
Quick-start Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3
Device Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1
IQS7221E Streaming Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.1
Button Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.2
Hall Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1.3
Angle Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2
Data Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3
Modifying IQS7221E Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4
Exporting Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5
Command Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5.1
Acknowledge Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5.2
Enable Streaming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5.3
ATI All and Read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5.4
Zero . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5.5
Reseed Touch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6
Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6.1
System Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6.2
Event Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6.3
Hall Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6.4
Channel and Cap States . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6.5
Freewheeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6.6
Power Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1
System Settings Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2
Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3
Event Mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1
IQS7221E Hall-Effect Sensing Overview . . . . . . . . . . . . . . . . . . . . . . . . .
5.2
Enable the Hall UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3
Adjusting Hall Sensitivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.4
Evaluating the Angle Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.4.1
5.4.2
Angle Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.4.3
Rotation Direction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.5
Configuring the Interval UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.5.1
Interval Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
All Rights Reserved
IQ Switch
ProxFusion
IQS7221E GUI Setup Guide
Revision v1.0
®
®
Series
3
4
4
4
6
7
7
8
8
9
9
11
11
12
12
12
13
13
13
13
13
13
14
14
14
15
16
16
17
17
18
18
19
19
20
21
22
23
25
25
September 2023

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the IQS7221E and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Azoteq IQS7221E

  • Page 1: Table Of Contents

    3 IQS7221E Debug and Display Software Overview IQS7221E Streaming Data ....... . .
  • Page 2 Reference Schematic ........Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 2 of 48 All Rights Reserved Revision v1.0...
  • Page 3: Introduction

    This guide is intended to be used alongside the IQS7221E Hall-Effect Evaluation Kit (EV kit) to explain many of the concepts of the IQS7221E and its various features and settings. The EV kit illustrates the use of the Hall encoder on a control knob, and supports a capacitive touch channel on the metal knob to detect user presence and interaction.
  • Page 4: Iqs7221E Gui Installation And Quick-Start Guide

    ProxFusion Series 2 IQS7221E GUI Installation and Quick-Start Guide This section provides a brief explanation of the installation of the IQS7221E GUI, as well as how to get started with the IQS7221E evaluation kit. 2.1 Installation The installation package for the IQS7221E Debug and Display Tool can be found on the IQS7221E’s...
  • Page 5 Once the IQS7221E is connected to the CT210A, follow these steps to begin streaming data. Step 1: To connect to the IQS7221E in the software, click the “Start Streaming” button. This will provide power to the IQS7221E and begin communication. If the connection is successful,...
  • Page 6: Device Version

    Step 3: Click the “Streaming” button to enter I C streaming mode. Figure 2.6: Enable Streaming Button The IQS7221E will now stream all sensor data, as shown in Figure 2.7. The counts for the various channels should change as the control knob is rotated. Figure 2.7: IQS7221E Streaming 2.3 Device Version...
  • Page 7: Iqs7221E Debug And Display Software Overview

    3.1 IQS7221E Streaming Data The IQS7221E GUI displays all the streaming data in the graph panel in the centre of the GUI. The default graph view is the bar graph, which plots the instantaneous counts of each channel. There are four additional scope views that plot additional information over time.
  • Page 8: Button Channel

    In Delta this way, the IQS7221E can detect the proximity of the user’s hand before the knob is rotated, allowing it to wake up and transition to a faster sampling rate to measure the rotation more accurately.
  • Page 9: Angle Measurements

    It may be necessary to save all the above streaming data to a file for debugging or testing purposes. The logging function allows the GUI to save all streaming data from the IQS7221E to a CSV file. Click the “Logging” button in the Configuration Tool Manager panel to open the logging window.
  • Page 10 Figure 3.6: Logging Configuration Window Once the file destination is confirmed, data logging will begin. To stop logging, click the “Stop Logging” button. Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 10 of 48 All Rights Reserved Revision v1.0...
  • Page 11: Modifying Iqs7221E Settings

    ProxFusion Series 3.3 Modifying IQS7221E Settings To view all the IQS7221E device settings, click the “User Settings” button. This will open a new window where all the device settings can be modified. Figure 3.7: User Settings Window Changes to any setting only take effect after the “Write Changes” button has been clicked. The GUI warns of any unwritten changes with a “Changes...
  • Page 12: Command Buttons

    The “Ack Reset” button clears the IQS7221E’s reset flag by writing the Acknowledge Reset bit to the IC. This should be the fist step after powering on any Azoteq IQS-device. On start-up, the IC will set its reset flag to indicate that a reset event has occurred. The GUI will show that a reset has occurred by changing the Ack Reset button colour to red.
  • Page 13: Ati All And Read

    3.5.3 ATI All and Read The “ATI All and Read” button writes the Force ATI command to the IQS7221E. The ATI routine is a calibration algorithm on the IC that will recalibrate all the sensors to their target or reference counts.
  • Page 14: Hall Flags

    > Dormant: The touch sensor has not been activated for some period of time. The IQS7221E will only enter low power mode if this flag (along with the Hall Stationary flag) is set. > Direction: This indicates the sign (positive or negative) of the delta.
  • Page 15: Power Mode

    3.6.6 Power Mode Finally, the current Power Mode is displayed at the bottom of the events panel. Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 15 of 48 All Rights Reserved Revision v1.0...
  • Page 16: System Settings

    It is generally recommended to leave this option enabled. > Comms in ATI: The IQS7221E will still open regular communication windows during ATI. It is recommended to leave this disabled, as it will slow the ATI recalibration stage.
  • Page 17: Power Modes

    The event mask is used to enable or disable specific events, and is particularly useful in event mode, as disabled events will not open new communication windows. As an example, it is often useful to ignore ATI events. By clearing the ATI Event Mask bit, the IQS7221E will not open a communication window to report ATI events.
  • Page 18: Hall Configuration

    Series 5 Hall Configuration This section describes the steps to configure the Hall UI settings for the IQS7221E EV kit. It is recommended to force the device into normal power mode when experimenting with sensor settings, as it provides a consistent sample rate for evaluating the sensor performance. For this section, the device is set to Normal Power mode, with a 10 ms report period.
  • Page 19: Enable The Hall Ui

    Hall plate Fine and Coarse Multipliers. Prox A and Prox B gain should be set to the same value. Figure 5.3: Hall Multipliers and Dividers Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 19 of 48 All Rights Reserved Revision v1.0...
  • Page 20: Evaluating The Angle Output

    In the case of the IQS7221E EV kit, the minimum and maximum targets can be set to 200 and 400, respectively. The resulting Hall counts should swing approximately between 200 and 400 counts, without requiring any changes to the gain.
  • Page 21: Wheel-To-Magnet Angle Offset

    The offset between the raw angle and final angle is set when the Zero command is given to the IQS7221E, but may also be changed by the Auto Zero function, or by virtual freewheeling. The offset can be read from the Wheel-to-Magnet Angle Offset register. In this example, the offset was set to 9801, which agrees with the observation from the scope view in Figure 5.5.
  • Page 22: Angle Filtering

    The fast filter uses a much smaller beta value, allowing it to track rapid rotations. During quick rotations, the IQS7221E switches to the fast filter beta for the angle filtering. Figure 5.7: Angle Filter Settings Copyright © Azoteq 2023...
  • Page 23: Rotation Direction

    For applications with mechanical ratchets, it is recommended to set the filter switch delta to half the size of an interval, or smaller. This ensures that there is minimal delay between the mechanical click and the IQS7221E reporting the new interval. Filter switching can also be disabled by setting the slow and fast beta values equal.
  • Page 24 ® ProxFusion Series Figure 5.9: Reverse Hall Rotation Direction By default, the output angle of the IQS7221E EV kit increases for a clockwise rotation, so the reverse direction can be left disabled. Copyright © Azoteq 2023 IQS7221E GUI Setup Guide...
  • Page 25: Configuring The Interval Ui

    5.5 Configuring the Interval UI 5.5.1 Interval Size The IQS7221E divides the 16-bit final angle into discrete intervals, based on the Number of Intervals setting. For example, a control knob may need 12 discrete positions (or intervals) per rotation. A mouse scroll wheel may use a mechanical ratchet with 24 positions.
  • Page 26: Interval Hysteresis

    The final setting related to the Interval UI is the Auto Zero function. This feature attempts to align the centre of the IQS7221E’s intervals with the mechanical intervals in a ratchet so that the transition between two intervals happens at the correct/expected place. Applications with a smooth rotation (without a ratchet) may also take advantage of this feature, as it will automatically adjust the current angle towards the centre of the current interval, effectively adding additional hysteresis and reducing...
  • Page 27 The reason for this can be seen in the following scope capture of a forward rotation with Stationary auto zero mode enabled: Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 27 of 48 All Rights Reserved Revision v1.0...
  • Page 28 Figure 5.14. A higher Auto Zero Beta value, at least 6 or greater, is needed for this feature to work correctly. Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 28 of 48 All Rights Reserved Revision v1.0...
  • Page 29: Stationary Timeout

    Figure 5.14: Continuous Auto-Zero Adjustment 5.6 Stationary Timeout The Stationary Timeout is the duration that the IQS7221E will wait after an interval change before setting the Stationary flag. The Stationary flag determines when the IQS7221E may transition to low power mode.
  • Page 30: Quadrature Output

    Series 5.7 Quadrature Output The IQS7221E features two quadrature output pins to report interval changes without the need for I communication. With the quadrature outputs enabled, the IQS7221E can be placed in Standalone Mode, which aids in reducing current consumption.
  • Page 31: Touch Channel Configuration

    Series 6 Touch Channel Configuration The IQS7221E supports a single touch sensor that can be used for low power wake-up, and for the Freewheel UI. The sensor can be configured as a self-capacitance sensor (that requires a single RX electrode) or a mutual-capacitance sensor (that requires separate RX and TX electrodes). Self- capacitance is a very simple sensor architecture, and the EV kit thus features an RX electrode connected to the CRx0 pin.
  • Page 32: Adjusting Touch Sensitivity

    Proximity state (meant as a wake-up flag) or a Touch state (to indicate that the user is interacting with the device, or to engage freewheeling). Figure 6.3: Button Thresholds Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 32 of 48 All Rights Reserved Revision v1.0...
  • Page 33: Button Timeouts

    LTA has incorrectly drifted too low. To compensate for this situation, the LTA follows the counts more quickly, with a smaller beta value. Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 33 of 48 All Rights Reserved Revision v1.0...
  • Page 34 IQ Switch ® ProxFusion Series These two behaviours are worth noting because these behaviours are disabled when using the freewheeling UI. Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 34 of 48 All Rights Reserved Revision v1.0 September 2023...
  • Page 35: Configuring Freewheeling Ui

    flick of the wheel. The IQS7221E tracks the rotation speed of the magnet, and upon detection of a release (i.e. a sudden increase in counts, or a large delta with the touch Direction bit cleared) on the touch channel, freewheeling is activated, and the device clocks out intervals and quadrature pulses as though the wheel is rapidly spinning.
  • Page 36 flag cleared (counts > LTA). [Image Credit] Figure 7.4: Freewheeling Parameters Evaluated in Scope View Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 36 of 48 All Rights Reserved Revision v1.0...
  • Page 37: Release Ui Parameters

    Figure 7.4. The IQS7221E’s release UI uses a combination of the Normal Power LTA Beta and Normal Power Fast LTA Beta to filter the LTA. For now, it is recommended to keep them the same value.
  • Page 38 Finally, the stop threshold can be used to change how easily the user can stop the freewheeling. Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 38 of 48 All Rights Reserved Revision v1.0...
  • Page 39: Touch Lta Betas

    Recommended values for the LTA betas are 8 for the “normal” LTA beta, and 4 or lower for the fast LTA beta. Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 39 of 48 All Rights Reserved Revision v1.0...
  • Page 40 Figure 7.8 shows the operation of the Release UI with an LTA Beta of 8, a Fast LTA Beta of 4, and a Touch Hysteresis of 50 %. Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 40 of 48 All Rights Reserved Revision v1.0...
  • Page 41: Freewheel Settings

    7.2.3 Figure 7.9: Freewheel UI Settings 7.2.1 Filtered Magnet Speed The IQS7221E tracks the instantaneous speed of the magnet, and filters it to prevent noise from falsely crossing the freewheel start threshold. The filter switches between two beta values: >...
  • Page 42: Stopping Freewheeling

    For 12 intervals, this was calculated earlier as 5461. The IQS7221E starts tracking any additional wheel movement as soon as it detects that the mag- net/wheel is stationary. This is signalled with the Stationary freewheel flag that gets set when the filtered magnet speed drops below the Stationary Detection Speed.
  • Page 43 Alternatively, with fixed friction and damping parameters, only the inertia value needs to be changed to change the duration of the freewheeling. Setting a higher inertia value will increase the freewheeling duration, and vice versa. Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 43 of 48 All Rights Reserved Revision v1.0...
  • Page 44: Conclusion

    The IQS7221E Evaluation Kit was used as an example to show how to configure the IQS7221E in a control knob application that used the Hall-effect sensors for the rotation measurement, and a self-capacitance sensor on the knob to detect user touch.
  • Page 45: A Evaluation Kit Details

    This section provides a brief overview of the IQS7221E Hall-Rotation Evaluation Kit design. A.1 Assembly The IQS7221E EV kit illustrates the design of a control knob that combines two sensors; the magnet in the shaft supplies the diametric magnetic field to measure the angle of the knob, and the metal body of the knob allows it to act as a capacitive touch sensor.
  • Page 46 Series 0.5 mm CRX0 Pad Hall Plate [Image Credit] Figure A.2: Cross-Section View of IQS7221E EV Kit To increase the Hall signals for a higher-resolution application, the design may be altered in the following ways: > Use a stronger magnet.
  • Page 47: Reference Schematic

    4.7K 4.7K 100nF 200R 200R QUAD0 CT210A Header QUAD1 QUAD0 QUAD1 MCLR 3W-SIL-V BOX HEADER-10W-V Figure A.3: IQS7221E Evaluation Kit Schematic Copyright © Azoteq 2023 IQS7221E GUI Setup Guide Page 47 of 48 All Rights Reserved Revision v1.0 September 2023...
  • Page 48: Copyright © Azoteq 2023 Iqs7221E Gui Setup Guide

    No licenses to patents are granted, implicitly, express or implied, by estoppel or otherwise, under any intellectual property rights. In the event that any of the abovementioned limitations or exclusions does not apply, it is agreed that Azoteq’s total liability for all losses, damages and causes of action (in contract, tort (including without limitation, negligence) or otherwise) will not exceed the amount already paid by the customer for the products.

This manual is also suitable for:

Iqs7221eev02-s

Table of Contents