Waveform generation circuit for finely tunable sensing frequency
By using a waveform generator in the input device, adjusting the clock cycle and phase increment values, flexible waveforms are generated to reduce display interference, improving the accuracy and anti-interference ability of the input device when detecting the position of the input object.
Patent Information
- Application Number
- CN201910783446.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-11-27
- Filing Date
- 2019-08-23
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2039-08-23
AI Technical Summary
Existing input devices are susceptible to interference caused by display panel updates when detecting the location of the input object, making it difficult to accurately measure and compensate for position information.
Using a waveform generator, including an accumulator circuit, a cutoff circuit and a saturation circuit, a flexible waveform is generated by adjusting the number of clock cycles and the phase increment value, reducing interference and improving the flexibility of sensing frequency, and controlling the waveform shape to prevent interference.
It effectively reduces the impact of display interference on sensor data, and improves the accuracy and anti-interference ability of the input device when detecting the position of the input object.
Smart Images

Figure CN110858106B_ABST
Abstract
Description
Technical Field
[0001] Embodiments disclosed herein relate generally to electronic devices and, more particularly, to waveform generation circuits for input devices. Background Art
[0002] Input devices including proximity sensor devices can be used in a variety of electronic systems. The proximity sensor device can include a sensing area distinguished by a surface, wherein the proximity sensor device determines the presence, position, force and / or motion of one or more input objects. The proximity sensor device can be used to provide an interface for an electronic system. For example, the proximity sensor device can be used as an input device for a larger computing system, such as a touch pad integrated in a notebook or desktop computer or at its periphery. The proximity sensor device can also be often used in smaller computing systems, such as a touch screen integrated in a cellular phone or a vehicle (e.g., a car). Summary of the invention
[0003] Embodiments disclosed herein generally relate to electronic devices, and more specifically, to a waveform generator for an input device. In one or more embodiments, the waveform generator includes an accumulator circuit, a truncation circuit, and a saturation circuit. The accumulator circuit is configured to accumulate phase increment values based on a clock signal. The truncation circuit is configured to discard one or more bits of the accumulated phase increment value to generate a truncation value. The saturation circuit is configured to compare the truncation value with a saturation limit, and if the truncation value is lower than the saturation limit, access a data sample from a random access memory (RAM) address corresponding to the truncation value, or if the truncation value is higher than the saturation limit, access the data sample from the RAM address corresponding to the saturation limit, and output a signal corresponding to the accessed data sample.
[0004] In one embodiment, an input device includes a sensing device and a waveform generator. The sensing device includes a plurality of sensor electrodes and a sensing driver. The sensing driver is communicatively coupled to the plurality of sensor electrodes and is configured to acquire sensor data from the plurality of sensor electrodes by driving the plurality of sensor electrodes with a sensing signal. The waveform generator includes: a circuit configured to generate address bits for partially incrementing a random access memory (RAM) address for each clock cycle to access a sample of a waveform of the sensing signal; a circuit configured to change the frequency of the sensing signal by adjusting the number of clock cycles in a half-cycle of the waveform; and a circuit configured to control the shape of the waveform by adjusting at least one of a phase increment value and a saturation limit value.
[0005] In an embodiment, a method for generating a waveform includes: generating a period of a waveform by setting a number of clock cycles for a half period of the waveform, accessing a random access memory (RAM), and generating a shape of the waveform. Accessing the RAM includes incrementing a RAM address value using a phase increment value, accumulating the phase increment value based on the clock cycle, and truncating the accumulated phase increment value to partially increment the RAM address value. Generating the shape of the waveform, wherein generating the shape includes comparing the truncated value with a saturation limit, accessing a data sample from a RAM address corresponding to the truncated value if the truncated value is lower than the saturation limit, or accessing a data sample from a RAM address corresponding to the saturation limit if the truncated value is higher than the saturation limit, and outputting a signal corresponding to the accessed data sample.
[0006] In one or more embodiments, a processing system including a waveform generator and a method for generating a waveform are provided. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] In order that the manner in which the above-recorded features of the present disclosure may be understood in detail, a more particular description of the present disclosure, briefly summarized above, may be obtained by reference to embodiments, some of which are illustrated in the accompanying drawings. It is to be noted, however, that the accompanying drawings illustrate only exemplary embodiments and are therefore not to be considered as limiting the scope of the invention, as the present disclosure may admit to other equally effective embodiments.
[0008] Figure 1 is a schematic block diagram of an input device according to one or more embodiments.
[0009] Figure 2 Example display devices and sensor devices are illustrated in accordance with one or more embodiments.
[0010] Figure 3 is a block diagram of an example waveform generation circuit according to one or more embodiments.
[0011] Figure 4 An example trapezoidal sensing waveform that may be output by a waveform generator in accordance with one or more embodiments is illustrated.
[0012] Figure 5A , 5B and 5C are detailed diagrams of example waveform generators according to one or more embodiments.
[0013] Figure 6 Illustrated are example signals utilized in generating waveforms in accordance with one or more embodiments.
[0014] Figure 7 is a block diagram of an example waveform generator in accordance with one or more embodiments.
[0015] Figure 8is a flow chart illustrating example operations for capacitive sensing in accordance with one or more embodiments.
[0016] For ease of understanding, the same reference numerals have been used, where possible, to designate the same elements common to the drawings. It is contemplated that elements disclosed in one embodiment may be advantageously used in other embodiments without specific recitation. Unless otherwise specified, the drawings referred to herein should not be understood as being drawn to scale. Moreover, the drawings are generally simplified, and details or components are omitted for clarity of presentation and explanation. The drawings and discussion are used to explain the principles discussed below, where similar names represent similar elements. DETAILED DESCRIPTION
[0017] The following detailed description is merely exemplary in nature and is not intended to limit the present disclosure or the application and use of the present disclosure. In addition, there is no intention to be bound by any express or implied theory presented in the foregoing background technology, the invention summary or the following detailed description.
[0018] In one or more embodiments, the input device includes sensor electrodes that are driven to obtain sensor data, which can be used to determine position information of one or more input objects. In such embodiments, the sensor data may include the effects of interference, which may make it difficult to determine the position information of input objects that are close to and / or in contact with the input device. For example, the sensor electrodes may be disposed on a display panel of a display device, and as the display panel is updated, a display update signal is driven to the display electrodes of the display panel. The display update signal may inject interference into the sensor data, thereby negatively affecting the sensor data; however, the interference caused by the display is difficult to measure and compensate for using current methods because the interference changes each time the display panel is updated. In the following, various systems and methods with improved methods for compensating for display interference are described.
[0019] Turning now to the accompanying drawings, Figure 11 is a block diagram of an exemplary input device 100 according to an embodiment of the present disclosure. The input device 100 may be configured to provide input to an electronic system (not shown). As used in this document, the term "electronic system" refers broadly to any system capable of electronically processing information. Some non-limiting examples of electronic systems include personal computers of all sizes and shapes, such as desktop computers, laptop computers, netbook computers, tablet computers, web browsers, e-book readers, and personal digital assistants (PDAs). Additional example electronic systems include composite input devices, such as physical keyboards including the input device 100 and a separate joystick or key switch. Other example electronic systems include peripheral devices, such as data input devices (e.g., remote controls and mice) and data output devices (e.g., display screens and printers). Other examples include remote terminals, kiosks, and video game consoles, such as video game consoles, portable game devices, and the like. Other examples include communication devices, such as cellular phones such as smart phones, and media devices, such as recorders, editors, and players, such as televisions, set-top boxes, music players, digital photo frames, and digital cameras. In addition, the electronic system may be a host or slave of the input device. Electronic systems can also be called electronic devices.
[0020] The input device 100 may be implemented as a physical part of the electronic system, or may be physically separate from the electronic system. As appropriate, the input device 100 may communicate with portions of the electronic system using any one or more of the following: a bus, a network, and other wired or wireless interconnects. Examples include I 2 C, SPI, PS / 2, Universal Serial Bus (USB), Bluetooth, RF, and IRDA.
[0021] exist Figure 1 , the input device 100 is shown as a proximity sensor device that is configured to sense input provided by one or more input objects 140 in the sensing region 120. Example input objects 140 include fingers and styluses, such as Figure 1 An exemplary proximity sensor device may be a touch pad, a touch screen, a touch sensor device, etc.
[0022] The sensing region 120 encompasses any space above, around, in, and / or near the input device 100 where the input device 100 is capable of detecting user input, such as user input provided by one or more input objects 140. The size, shape, and location of a particular sensing region may vary widely from embodiment to embodiment. In some embodiments, the sensing region 120 extends from the surface of the input device 100 in one or more directions into space until the signal-to-noise ratio prevents sufficiently accurate object detection. In various embodiments, the distance to which the sensing region 120 extends in a particular direction may be approximately less than one millimeter, several millimeters, several centimeters, or more, and may vary significantly depending on the type of sensing technology used and the desired accuracy. Therefore, the sensing input of some embodiments includes: no contact with any surface of the input device 100; contact with an input surface (e.g., a touch surface) of the input device 100: contact with an input surface of the input device 100 coupled with a certain amount of applied force or pressure; and / or a combination thereof. In various embodiments, the input surface may be provided by a surface of a housing in which a sensor electrode (also referred to herein as a sensing electrode) is located, by a panel applied to the sensor electrode or any housing, and the like. In some embodiments, the sensing region 120 has a rectangular shape when projected onto the input surface of the input device 100 .
[0023] The input device 100 can utilize any combination of sensor components and sensing technologies to detect user input in the sensing region 120. The input device 100 includes one or more sensing elements for detecting user input. As several non-limiting examples, the input device 100 can use capacitive, elastic, resistive, inductive, magnetic, acoustic, ultrasonic and / or optical technologies.
[0024] Some embodiments are configured to provide images spanning one, two, three or higher dimensional spaces. Some embodiments are configured to provide projections of input along specific axes or planes.
[0025] In some resistive embodiments of the input device 100, a flexible and conductive first layer is separated from a conductive second layer by one or more spacer elements. During operation, one or more voltage gradients are created across the layers. Pressing the flexible first layer may deflect it sufficiently to create electrical contact between the layers, thereby generating a voltage output reflecting the contact point(s) between the layers. These voltage outputs may be used to determine position information.
[0026] In some inductive implementations of the input device 100, one or more sensing elements pick up a loop current induced by a resonant coil or coil pair. Some combination of the amplitude, phase, and frequency of the current can then be used to determine position information.
[0027] In some capacitive implementations of input device 100, a voltage or current is applied to create an electric field. Nearby input objects cause changes in the electric field and produce detectable changes in capacitive coupling, which can be detected as changes in voltage, current, etc.
[0028] Some capacitive embodiments utilize arrays or other regular or irregular patterns of capacitive sensing elements to create an electric field. In some capacitive embodiments, separate sensing elements can be ohmically shorted together to form a larger sensor electrode. Some capacitive embodiments utilize a resistive sheet, which can be uniformly resistive.
[0029] Some capacitive implementations utilize a "self-capacitance" (also often referred to as "absolute capacitance") sensing method based on changes in the capacitive coupling between a sensor electrode and an input object. In various embodiments, an input object near a sensor electrode changes the electric field near the sensor electrode, thereby changing the measured capacitive coupling. In one implementation, the absolute capacitance sensing method operates by modulating the sensor electrode relative to a reference voltage (e.g., system ground), and by detecting the capacitive coupling between the sensor electrode and the input object.
[0030] Some capacitive embodiments utilize a "mutual capacitance" (also often referred to as "transcapacitive") sensing method based on changes in capacitive coupling between sensor electrodes. In various embodiments, an input object near the sensor electrodes changes the electric field between the sensor electrodes, thereby changing the measured capacitive coupling. In one embodiment, the transcapacitive sensing method operates by the following steps: detecting capacitive coupling between one or more transmitter sensor electrodes (also referred to as "transmitter electrodes" or "transmitters" herein) and one or more receiver sensor electrodes (also referred to as "receiver electrodes" or "receivers" herein). The transmitter sensor electrodes can be modulated relative to a reference voltage (e.g., system ground) to transmit a transmitter signal. The receiver sensor electrodes can be kept substantially constant relative to the reference voltage to facilitate reception of the generated signal. The generated signal can include (one or more) effects corresponding to one or more transmitter signals and / or one or more environmental interference sources (e.g., other electromagnetic signals). The sensor electrodes can be dedicated transmitters or receivers, or can be configured to both transmit and receive.
[0031] exist Figure 1, the processing system 110 is shown as part of the input device 100. The processing system 110 is configured to operate the hardware of the input device 100 to detect input in the sensing area 120. The processing system 110 includes part or all of one or more integrated circuits (ICs) and / or other circuit components. For example, a processing system for a mutual capacitance sensor device may include a transmitter circuit configured to transmit a signal using a transmitter sensor electrode and / or a receiver circuit configured to receive a signal using a receiver sensor electrode. In some embodiments, the processing system 110 also includes electronically readable instructions, such as firmware code, software code, and / or the like. In some embodiments, the components that make up the processing system 110 are positioned together, such as near the (one or more) sensing elements of the input device 100. In other embodiments, the components of the processing system 110 are physically separated, with one or more components being close to the (one or more) sensing elements of the input device 100, and one or more components being elsewhere. For example, the input device 100 may be a peripheral device coupled to a desktop computer, and the processing system 110 may include software configured to run on a central processing unit of the desktop computer and one or more ICs separate from the central processing unit (with associated firmware in another embodiment). As another example, the input device 100 may be physically integrated into a phone, and the processing system 110 may include circuits and firmware that are part of the phone's main processor. In some embodiments, the processing system 110 is dedicated to implementing the input device 100. In other embodiments, the processing system 110 also performs other functions, such as operating a display screen, driving a tactile actuator, etc.
[0032] The processing system 110 may be implemented as a collection of modules that handle different functions of the processing system 110. Each module may include circuitry, firmware, software, or a combination thereof that is part of the processing system 110. In various embodiments, different combinations of modules may be used. Example modules include: hardware operation modules for operating hardware such as sensor electrodes and display screens; data processing modules for processing data such as sensor signals and position information; and reporting modules for reporting information. Additional example modules include: a sensor operation module configured to operate (one or more) sensing elements to detect inputs; a recognition module configured to recognize gestures such as mode change gestures; and a mode change module for changing operating modes.
[0033] In some embodiments, the processing system 110 directly responds to user input (or lack of user input) in the sensing region 120 by causing one or more actions. Example actions include changing operating modes and GUI actions such as cursor movement, selection, menu navigation, and other functions. In some embodiments, the processing system 110 provides information about the input (or lack of input) to some portion of the electronic system (e.g., to a central processing system of the electronic system that is separate from the processing system 110, if such a separate central processing system exists). In some embodiments, some portion of the electronic system processes the information received from the processing system 110 to act on the user input, such as to facilitate a full range of actions, including mode change actions and GUI actions.
[0034] For example, in some embodiments, the processing system 110 operates the sensing element(s) of the input device 100 to generate an electrical signal indicating an input (or lack of input) in the sensing region 120. The processing system 110 may perform any appropriate amount of processing on the electrical signal in generating information provided to the electronic system. For example, the processing system 110 may digitize an analog electrical signal obtained from a sensor electrode. As another example, the processing system 110 may perform filtering or other signal conditioning. As yet another example, the processing system 110 may subtract or otherwise account for a baseline so that the information reflects the difference between the electrical signal and the baseline. As yet other examples, the processing system 110 may determine position information, recognize input as a command, recognize handwriting, and the like.
[0035] As used herein, "position information" broadly encompasses absolute position, relative position, velocity, acceleration, and other types of spatial information. Exemplary "zero-dimensional" position information includes near / far or contact / no-contact information. Exemplary "one-dimensional" position information includes position along an axis. Exemplary "two-dimensional" position information includes motion in a plane. Exemplary "three-dimensional" position information includes instantaneous or average velocity in space. Additional examples include other representations of spatial information. Historical data about one or more types of position information may also be determined and / or stored, including, for example, historical data tracking position, motion, or instantaneous velocity over time.
[0036] In some embodiments, input device 100 is implemented with additional input components operated by processing system 110 or by some other processing system. These additional input components may provide redundant functionality for input in sensing region 120 or some other functionality. Figure 1 A button 130 is shown proximate the sensing region 120, which can be used to facilitate selection of items using the input device 100. Other types of additional input components include sliders, balls, wheels, switches, etc. Conversely, in some embodiments, the input device 100 may be implemented without additional input components.
[0037] In some embodiments, the input device 100 includes a touch screen interface, and the sensing area 120 overlaps at least part of the display screen. For example, the sensing area 120 may overlap at least a portion of the active area of the display screen. The active area of the display screen may correspond to a portion of the updated image of the display screen. In one or more embodiments, the input device 100 may include a substantially transparent sensor electrode covering the display screen and provide a touch screen interface for an associated electronic system. The display screen may be any type of dynamic display capable of displaying a visual interface to a user, and may include any type of light emitting diode (LED), organic LED (OLED), cathode ray tube (CRT), liquid crystal display (LCD), plasma, electroluminescence (EL) or other display technology. The input device 100 and the display screen may share physical elements. For example, some embodiments may utilize some of the same electronic components for display and sensing. As another example, the display screen may be partially or fully operated by the processing system 110. The display screen may also be referred to as a display panel.
[0038] It should be understood that although many embodiments of the present disclosure are described in the context of a fully functional device, the mechanisms of the present disclosure can be distributed as a program product (e.g., software) in a variety of forms. For example, the mechanisms of the present disclosure can be implemented and distributed as a software program on an information bearing medium readable by an electronic processor, such as a non-transitory computer-readable and / or recordable / writable information bearing medium readable by the processing system 110. In addition, regardless of the specific type of media used to perform the distribution, the embodiments of the present disclosure are equally applicable. Examples of non-transitory electronically readable media include various disks, memory sticks, memory cards, storage modules, etc. Electronically readable media can be based on flash, optical, magnetic, holographic, or any other storage technology.
[0039] Figure 2 A portion of an exemplary pattern of capacitive pixels 205 (also referred to herein as capacitive pixels or sensing pixels) configured to sense in a sensing region 120 associated with the pattern is shown in accordance with some embodiments. Each capacitive pixel 205 may include one or more of the sensing elements described above. For clarity of illustration and description, Figure 2The area of the capacitive pixel 205 is presented in a simple rectangular pattern, and various other components within the capacitive pixel 205 are not shown. In one embodiment, the capacitive pixel 205 is an area of the local capacitance of the corresponding sensor electrode. The capacitive pixel 205 can be formed between a separate sensor electrode and ground in a first operating mode, and between groups of sensor electrodes used as transmitter and receiver electrodes in a second operating mode. The capacitive coupling changes with the proximity and movement of the input object in the sensing area 120 associated with the capacitive pixel 205, and can therefore be used as an indicator of the presence of the input object in the sensing area 120 of the input device.
[0040] An exemplary pattern includes capacitive pixels 205 arranged in X columns and Y rows in a common plane. X,Y (collectively referred to as capacitive pixels 205), where X and Y are positive integers, although one of X and Y can be zero. It is contemplated that the pattern of capacitive pixels 205 may include multiple capacitive pixels 205 having other configurations, such as an annular array, a repeating pattern, a non-repeating pattern, a non-uniform array single row or column, or other suitable arrangements. In addition, as will be discussed in more detail below, the sensor electrodes in the capacitive pixels 205 can be any shape, such as a circle, a rectangle, a diamond, a star, a square, a non-convex shape, a convex shape, a non-concave concave shape, etc. As shown here, the capacitive pixels 205 are coupled to the processing system 110 and used to determine the presence (or absence) of an input object in the sensing area 120.
[0041] In a first operating mode, at least one sensor electrode within the capacitive pixel 205 may be used to detect the presence of an input object via an absolute sensing technique. The sensor module 204 in the processing system 110 is configured to drive the sensor electrode using the trace 240 in each capacitive pixel 205 with an absolute capacitive sensing signal, and to measure the capacitance between the sensor electrode and the input object based on the absolute capacitive sensing signal, which is used by the processing system 110 or other processor to determine the position of the input object. The absolute capacitive sensing signal may be a modulated signal including a varying voltage.
[0042] The various electrodes of the capacitive pixel 205 are typically ohmically isolated from the electrodes of other capacitive pixels 205. In addition, where the capacitive pixel 205 includes multiple electrodes, the electrodes may be ohmically isolated from each other. That is, one or more insulators separate the sensor electrodes and prevent them from electrically shorting to each other.
[0043] In the second operating mode, the sensor electrodes in the capacitive pixel 205 are used to detect the presence of an input object via a transcapacitive sensing technique. That is, the processing system 110 can drive at least one sensor electrode in the capacitive pixel 205 with an emitter signal, and use one or more other sensor electrodes in the capacitive pixel 205 to receive a generated signal, wherein the generated signal includes an effect corresponding to the emitter signal. The generated signal is used by the processing system 110 or other processor to determine the position of the input object. The sensor electrode driven by the emitter signal is modulated by the emitter signal relative to the sensor electrode receiving the generated signal. In one embodiment, the sensor electrode driven by the emitter signal and the sensor electrode receiving the generated signal are both modulated.
[0044] The input device 100 may be configured to operate in any one of the above modes. The input device 100 may also be configured to switch between the above two modes.
[0045] In some embodiments, the capacitive pixels 205 are "scanned" to determine these capacitive couplings. That is, in one embodiment, one or more sensor electrodes are driven to transmit a transmitter signal. The transmitter can be operated so that one transmitter electrode transmits at a time, or multiple transmitter electrodes transmit simultaneously. In the case where multiple transmitter electrodes transmit simultaneously, the multiple transmitter electrodes can transmit the same transmitter signal and effectively produce an effectively larger transmitter electrode. Alternatively, the multiple transmitter electrodes can transmit different transmitter signals. For example, the multiple transmitter electrodes can transmit different transmitter signals according to one or more coding schemes that enable their combined impact on the generated signal of the receiver electrode to be independently determined.
[0046] The sensor electrodes configured as receiver sensor electrodes may be operated individually or in plurality to acquire the generated signal. The generated signal may be used to determine a measurement result of the capacitive coupling at the capacitive pixel 205.
[0047] In other embodiments, "scanning" the capacitive pixels 205 to determine these capacitive couplings includes driving with an absolute capacitive sensing signal and measuring the absolute capacitance of one or more sensor electrodes. In another embodiment, the sensor electrodes can be operated so that the absolute capacitive sensing signal is driven on the sensor electrodes in multiple capacitive pixels 205 at the same time. In such an embodiment, an absolute capacitive measurement result can be obtained from each of the one or more capacitive pixels 205 at the same time. In one embodiment, the input device 100 drives the sensor electrodes in multiple capacitive pixels 205 at the same time and measures the absolute capacitive measurement result of each capacitive pixel 205 in the same sensing cycle. In various embodiments, the processing system 110 can be configured to selectively drive and receive with a portion of the sensor electrodes. For example, the sensor electrodes can be selected based on, but not limited to, the application running on the main processor, the state of the input device, the operating mode of the sensing device, and the determined position of the input device. The main processor can be a central processing unit or any other processor of an electronic device.
[0048] As discussed above, the collection of measurements from the capacitive pixels 205 forms a capacitive image or capacitive frame representing the capacitive coupling at the pixel 205. Multiple capacitive images can be acquired over multiple time periods, and the differences between them used to derive information about the input in the sensing region. For example, consecutive capacitive images acquired over consecutive time periods can be used to track the motion of one or more input objects entering, leaving, and within the sensing region.
[0049] In some embodiments, one or more sensor electrodes in the capacitive pixel 205 include one or more display electrodes for updating the display of the display screen. In one or more embodiments, the display electrode includes one or more segments of a common voltage electrode (also referred to as a Vcom electrode), a source drive line, a gate line, an anode electrode, or a cathode electrode, or any other display element. These display electrodes can be disposed on an appropriate display screen substrate. For example, in display screens such as in-plane switching (IPS) and plane-to-line switching (PLS) organic light emitting diodes (OLEDs), the display electrodes can be disposed on a transparent substrate, such as a glass substrate, TFT glass, or any other transparent material. In other embodiments, in display screens such as patterned vertical alignment (PVA) and multi-domain vertical alignment (MVA), the display electrodes can be disposed on the bottom of the color filter glass. In one or more embodiments, the display electrode can be disposed on the light emitting layer of the OLED display. In such embodiments, an electrode used as both a sensor electrode and a display electrode can also be referred to as a combined electrode because it performs multiple functions.
[0050] Continue to refer Figure 2In various embodiments, the processing system 110 coupled to the sensing electrodes includes a sensor module 204 and optionally a display driver module 208. In one embodiment, the sensor module 204 includes circuitry configured to drive a transmitter signal or an absolute capacitive sensing signal onto the sensing electrodes and receive the resulting signal with the sensing electrodes during periods in which input sensing is desired.
[0051] In one or more embodiments, the sensor module 204 includes a transmitter module, which includes a circuit configured to drive a transmitter signal to a sensing electrode during a period in which input sensing is desired. In one or more embodiments, the transmitter signal is modulated and includes one or more bursts in a time period allocated for input sensing. In one embodiment, each burst includes multiple cycles. Each cycle may include positive and negative voltage transitions. The transmitter signal may have an amplitude, a frequency, and a voltage, which may be changed to obtain more robust position information of an input object in the sensing area 120. The absolute capacitive sensing signal may be the same or different from the transmitter signal used in transcapacitive sensing. The sensor module 204 may be selectively coupled to one or more sensor electrodes in the capacitive pixel 205. For example, the sensor module 204 may be coupled to a selection of sensor electrodes and operated in an absolute or transcapacitive sensing mode. In another example, when operating in an absolute sensing mode rather than in a transcapacitive sensing mode, the sensor module 204 may be coupled to different sensor electrodes.
[0052] In various embodiments, the sensor module 204 includes a sensor circuit, and the sensor module is configured to receive a generated signal using a sensing electrode, the sensing electrode including an influence corresponding to the transmitter signal during a period in which input sensing is desired. In one or more embodiments, the sensor module 204 is configured to receive the generated signal from the sensor electrode, the sensor electrode driven with an absolute capacitive sensing signal to determine a change in absolute capacitance between the sensor electrode and the input object. In one or more embodiments, the sensor module 204 determines the position of the input object in the sensing area 120. In one or more embodiments, the sensor module 204 provides a signal including information indicating the generated signal to another module or processor, such as a determination module of the processing system 110 or a processor (e.g., a main processor) of the electronic device, for determining the position of the input object in the sensing area 120. In one or more embodiments, the sensor module includes a plurality of receivers, each of which may be an analog front end (AFE).
[0053] In one or more embodiments, capacitive sensing or input sensing and display updating may occur during at least partially overlapping periods. For example, when the combined electrode is driven for display updating, the combined electrode may also be driven for capacitive sensing. Overlapping capacitive sensing and display updating may include modulating the reference voltage (one or more) of the display device and / or modulating at least one display electrode of the display within a time period that at least partially overlaps the time when the sensor electrode is configured for capacitive sensing. In another embodiment, capacitive sensing and display updating may occur during non-overlapping periods (also referred to as non-display update periods). In various embodiments, the non-display update period may occur between display row update periods of two display rows of a display frame and may be at least as long in time as the display update period. In such embodiments, the non-display update period may be referred to as a long horizontal blanking period, a long h blanking period, or a distributed blanking period. In other embodiments, the non-display update period may include a horizontal blanking period and a vertical blanking period. The processing system 110 may be configured to drive the sensor electrodes for capacitive sensing during any one or more or any combination of different non-display update times.
[0054] The display driver module 208 includes a circuit configured to provide display image update information to the display of the display device during a non-sensing period (e.g., a display update period). The display driver module 208 may be included in the sensor module 204 or separate from the sensor module 204. In one embodiment, the processing system includes a first integrated controller that includes the display driver module 208 and at least a portion of the sensor module 204. The sensor module 204 may include a transmitter circuit and / or a receiver circuit. In another embodiment, the processing system includes: a first integrated controller that includes the display driver module 208; and a second integrated controller that includes the sensor module 204. In yet another embodiment, the processing system includes: a first integrated controller that includes the display driver module 208 and one of the transmitter circuit and the receiver circuit; and a second integrated controller that includes the other of the transmitter circuit and the receiver circuit.
[0055] As described above, the sensing area 120 of the input device 100 can be configured for both touch sensing and display updating. In some examples, the input device 100 includes an integrated circuit (IC) chip configured for touch sensing and display updating, and can be referred to as a touch and display driver integrated (TDDI) chip. Capacitive touch sensing devices, including those incorporating TDDI chips, use drive signals for capacitive sensing. The processing system 110 may include a waveform generator. In one embodiment, the waveform generator may be a direct digital synthesizer (DDS) circuit. The waveform generator may also be referred to as a digital signal generator or a digital waveform generator. In one embodiment, touch sensing may refer to performing capacitive sensing to detect one or more input objects (e.g., input object 140) located within the sensing area 120 of the input device 100. For example, a first input object may be located within the sensing area 120, which may be in contact with the input surface of the input device 100 and / or a second input object may be close to but not in direct contact with the input surface of the input device 100.
[0056] In one or more embodiments, the waveform generator may include a synchronous digital circuit that reads digital data from a RAM table and clocks the data into a digital-to-analog converter (DAC) to create a waveform. For example, the waveform generator may include a digital block that outputs an 8-bit code that drives the DAC. The waveform generator may generate a waveform such as an arbitrary periodic analog voltage waveform. In some embodiments, the waveform is used as a sensing signal and a guard signal Vguard for capacitive sensing. Vguard protects the capacitance associated with the capacitive touch sensing electrode. The waveform generator may generate the shape of the sensing signal by filling the RAM table with waveform samples. Various circuit components of the waveform generator may be configured to address the RAM table during each half cycle of the waveform. In one or more embodiments, the sensing frequency of the sensing signal may be changed to avoid noise.
[0057] One or more embodiments provide a waveform generator with a programmable period of an arbitrary waveform. The programmable period of the arbitrary waveform allows a flexible sensing frequency that can be finely tunable. For example, the finely tunable sensing frequency can correspond to a sensing frequency that can be shifted by approximately 1 to 300 KHz. In other embodiments, the sensing frequency can be shifted by other amounts. One or more embodiments provide a trapezoidal voltage waveform output by the waveform generator. Various embodiments utilize flexible sensing frequencies and trapezoidal voltage waveforms to reduce the displacement of baseline capacitance measurements when shifting between sensing frequencies.
[0058] One or more embodiments provide a new waveform generator design. The waveform generator design can allow more flexible access to the RAM table. In some examples, the waveform generator includes a truncation circuit that allows fractional access to the RAM table. Finer granularity access to the RAM table can allow fine tuning changes to the number of clock cycles of the waveform generator clock signal, and thus fine granularity of switching of the period of the waveform (and thus the sensing frequency). Greater flexibility in switching the sensing frequency can achieve better interference immunity during sensing.
[0059] In some examples, the new waveform generator design also includes a saturation circuit and a DC offset circuit that permits more flexible generation of the shape of the waveform (eg, such as a trapezoidal waveform) to control electromagnetic interference (EMI) emissions.
[0060] In some examples, the new waveform generator design also includes a phase increment circuit, which can also be finely tuned to maintain the harmonic characteristics of the waveform. The harmonic characteristics of the waveform can correspond to the amount of interference that negatively affects the waveform at the harmonics of the waveform.
[0061] In some examples, the new waveform generator designs also include interpolation circuitry that can be used to perform interpolation of samples, thereby allowing for compression resulting in reduced RAM size in the waveform generator.
[0062] Figure 3 3 is a block diagram of an example waveform generator 300 according to one or more embodiments. The waveform generator 300 may include a phase increment circuit 302, an accumulator circuit 304, and a truncation circuit 307, and may be configured to generate a flexible waveform period. The waveform generator 300 may include a saturation circuit 310, which may be configured to generate a flat top of the waveform. The waveform generator 300 may include a RAM table 312 and a polarity switch 314. In various embodiments, the waveform generator 300 includes a control signal circuit 320, which is configured to output a reset control signal based on the HALF_CYCLE_CNT register. The waveform generator 300 may include a DC offset circuit 316, which may be configured to apply a DC offset to the waveform. PHASE_INC, SAT_LIMIT, HALF_CYCLE_CNT, and DC_OFFSET may refer to separate ASIC registers, which are sometimes referred to as "knobs."
[0063] The waveform generator 300 can generate a complete waveform by generating two half cycles that are anti-symmetric. For example, the two half cycles can be similar in shape but opposite in polarity. For example, the polarity switch 314 can include a circuit configured to switch polarity every half cycle based on a polarity switch control signal.
[0064] In one or more embodiments, the waveform is a modulated signal and includes one or more bursts over a time period. In addition, in one or more embodiments, each burst includes multiple cycles of positive and negative voltage transitions.
[0065] The phase increment circuit 302 may be communicatively coupled to an ASIC register that is configured to program a phase increment. The ASIC register may be referred to as PHASE_INC. The phase increment may indicate how fast the waveform generator 300 works through the RAM table (or how much to address at one time). The phase increment circuit 302 may increment the value of the RAM address by a certain amount after each clock cycle of the clock signal.
[0066] The accumulator circuit 304 may take as inputs PHASE_INC, a clock signal, and a reset control signal. During the course of a half cycle, the accumulator circuit 304 accumulates the PHASE_INC value. The PHASE_INC value may be provided by the phase increment circuit 302 or input into the waveform generator 300. The address for accessing the RAM table 312 may be generated by processing the accumulated PHASE_INC value on each rising edge of the waveform generator clock signal. At the end of the half cycle, the accumulator circuit 304 may be reset based on the reset control signal, thereby restarting the generation of the half cycle of the waveform.
[0067] In some examples, the period of the waveform can be controlled by the timing of the reset control signal. An accumulator reset can be initiated after an integer number of clock cycles of the waveform generator clock signal to restart a new half cycle of the waveform. In one or more embodiments, the integer number of clock cycles input to the accumulator circuit 304 can be programmable. For example, the register HALF_CYCLE_CNT can be used to program the number of clock cycles in a single half cycle.
[0068] In some embodiments, the waveform is a sensing signal for capacitive sensing, and controlling the period of the waveform controls a sensing frequency of the capacitive sensing signal.
[0069] The period T of the waveform can be expressed according to the following equation:
[0070]
[0071] where F DDSCLK is the frequency of the waveform generator clock signal.
[0072] The sensing frequency can be controlled by HALF_CYCLE_CNT according to the following equation:
[0073]
[0074] in
[0075] .
[0076] In one or more embodiments discussed in more detail below, PHASE_INC may also be varied along with HALF_CYCLE_CNT to change the sensing frequency.
[0077] In some embodiments, the RAM table has 128 elements, which can be accessed in four ways: access all 128 elements in the RAM one by one; access 64 elements in the RAM by accessing every other element in the RAM table; access 32 elements in the RAM by accessing every third element in the RAM table; or access 16 elements in the RAM by accessing every seventh element in the RAM table. In one or more embodiments, the waveform generator 300 has greater flexibility in accessing the RAM table. The waveform generator 300 may be able to access an extended set of cycles, which can improve anti-interference performance. Greater flexibility in accessing the RAM table can also allow greater flexibility in defining the shape of the edge of the protection voltage waveform generated by the waveform generator 300, which can provide better control of electromagnetic interference (EMI) emissions while maintaining a stable baseline.
[0078] In one embodiment, the flexibility when addressing the RAM table 312 enables the period of the waveform to be flexibly changed. In one or more embodiments, instead of moving one index at each rising edge of the waveform generator clock signal, or moving two indexes at each rising edge of the waveform generator clock signal, the index of the fractional number of each rising edge of the waveform generator clock signal can be moved. The truncation circuit 307 in the waveform generator 300 can be configured to discard certain bits, such as the least significant bit (LSB). The truncation circuit 307 may include a 64-divide operation circuit 306 and a lower truncation operation circuit 308, which implements the accumulation of six fractional digits. For example, the 64-divide operation circuit 306 can divide the accumulated PHASE_INC value from the accumulation circuit 304, and the lower truncation operation circuit 308 discards a portion of the bits, resulting in fractional digits. In some embodiments, the ability to increment the RAM address by 6 fractional digits allows the waveform generator 300 to increment the RAM address by 1.0156 elements at each rising edge of the clock cycle of the waveform generator clock signal. In one or more embodiments, RAM table 312 may only store information for a single half-cycle of an arbitrary waveform.
[0079] In one or more embodiments, interpolation may be performed between values in the RAM (e.g., between samples), such as between 6 decimal places. Various interpolation techniques may be used, such as, but not limited to, linear interpolation or quadratic interpolation. In this case, fewer sample points may be stored in the RAM, and therefore, the size of the RAM table 312 may be reduced. This may allow for large-scale RAM compression of simple waveforms, thereby reducing the RAM buffer size, and the full resolution of the output DAC may be used.
[0080] In one or more embodiments, the waveform generator 300 may generate a trapezoidal waveform. Figure 4 Illustrated is an example trapezoidal waveform 400 that may be output by waveform generator 300. Trapezoidal waveform 400 may have three main portions: a rising edge 402, a falling edge 404, and a flat-top portion 406 in the middle.
[0081] In one or more embodiments, the digital data associated with the flat top portion 406 of the trapezoidal waveform 400 may be explicitly stored in the RAM table 312. In one or more other embodiments, the flat top portion 406 of the trapezoidal waveform 400 may be stored in the RAM table 312. Alternatively, the last sample of the rising edge 402 may be held until the falling edge 404 of the waveform 400 has been reached. An advantage of generating a trapezoidal waveform in this manner is that the RAM table 312 of the waveform generator 300 may not be completely reprogrammed in order to maintain a stable baseline.
[0082] The rising edge 402 can be controlled by the phase increment circuit 302 and the saturation circuit 310. For example, the rising time T rise The equation to control the rising edge 402:
[0083]
[0084] or
[0085] .
[0086] In some examples, the waveform generator 300 may generate a waveform at a frequency of about 150 KHz. For example, the waveform generator 300 may generate a waveform at 149.7 KHz and / or 150.6 KHz. In one or more embodiments, the interval between two frequencies may be less than 1 KHz. For small frequencies, the interval between two adjacent frequencies may also be smaller.
[0087] In one or more embodiments, the waveform generator 300 generates a flat-top portion 406 of the trapezoidal waveform 400 through the saturation circuit 310. The saturation circuit 310 can enforce a saturation limit (which can also be referred to as SAT_LIMIT). For example, after accumulation and truncation through the accumulation circuit 304 and the truncation circuit 307, the saturation circuit 310 can determine whether the PHASE_INC is below, equal to, or above the SAT_LIMIT. In one embodiment, once the accumulated and processed PHASE_INC produces an address at or above the SAT_LIMIT, the generated address stops rising, effectively keeping the same address for several edges of the waveform generator clock signal, which creates the flat-top portion 406. The edge can be a rising edge of the waveform generator clock signal. In one or more embodiments, there can be many different possible SAT_LIMIT values that can be used to meet the waveform design goals. In one or more embodiments, the flat-top portion 406 can be generated to be long enough to stabilize the sensor so as to keep the baseline capacitance unchanged.
[0088] In one example of generating the flat-top portion 406 of the trapezoidal waveform 400, for a rise time of 1 μs and a period of T=10 μs, the waveform generator clock frequency F DDSCLK =50MHz, and SAT_LIMIT=63, then according to the equation above for period T, HALF_CYCLE_CNT=250. Therefore, the number of clock cycles of the waveform generator clock signal in each half cycle is 250. In this example, RAM table 312 should be loaded with values that progress linearly from the minimum value at RAM address 0 to the maximum value at RAM address 63. Therefore, according to the equation above for rise time T rise , in this example PHASE_INC = 81. This means that, in this example, after 50 clock cycles of the waveform generator clock signal, the RAM address will be at 63. Because the RAM address is saturated at 63, the remaining 200 clock cycles of the waveform generator clock signal will address the same RAM value at address 63, thereby creating the flat top portion 406 of the trapezoidal waveform 400.
[0089] In one or more embodiments, the waveform generator 300 can generate a sinusoidal waveform. One way to generate a sinusoidal waveform is to load all 128 elements of the RAM with a half-cycle of a sine. In this case, the value of PHASE_INC 302 can be set according to the following equation:
[0090] .
[0091] This relationship may produce a non-integer PHASE_INC value. In one or more embodiments, the multiplication by 64 before the rounding operation limits the rounding error that occurs during the calculation of PHASE_INC. In various embodiments, the divide-by-64 operation circuit 306 and the under-truncation operation circuit 308 after the accumulator circuit 304 in the waveform generator 300 prevent the rounding error of PHASE_INC from becoming too large, which may cause distortion of the generated sinusoidal waveform. In addition, in some embodiments, the divide-by-64 operation followed by the under-truncation operation maximizes the set of allowable periods while keeping distortion to an absolute minimum.
[0092] In one or more embodiments, as described above, the sensing frequency is changed by HALF_CYCLE_CNT. In one or more embodiments, in order to shift the sensing frequency while preserving the baseline, the sensing frequency can be changed by changing only HALF_CYCLE_CNT while keeping PHASE_INC fixed. In this case, the rising edge 402 duration, T rise will remain fixed, and only the duration of the flat-top portion 406 of the trapezoidal waveform 400 will change.
[0093] As described above, in one or more embodiments, PHASE_INC may also be varied. This may maintain the harmonic structure of the sensed signal. If the duration T of edge 402 is maintained while switching the frequency rise and the ratio between the sensing cycle period T, the harmonic characteristics of the waveform can be maintained. In one or more embodiments, the ratio can be maintained by changing the duration of the edge by changing PHASE_INC. If the new sensing frequency is represented as f1 and the current sensing frequency is represented as f0, the current gear and the new gear can be related by f1=αf0, and then the new HALF_CYCLE_CNT1 and the current HALF_CYCLE_CNT0 can be related by HALF_CYCLE_CNT1=(1 / α)HALF_CYCLE_CNT0. Therefore, in order to maintain the ratio of the edge to the sensing cycle period, the current PHASE_INC0 can be changed to the new PHASE_INC1 according to PHASE_INC1=αPHASE_INC0. In other words, if the sensing cycle is doubled, for example, by scaling HALF_CYCLE_CNT by 2 times, then in order to maintain the harmonic characteristics of the waveform, the duration of the edge should also be doubled by scaling PHASE_INC by half to maintain the same ratio.
[0094] In some embodiments, HALF_CYCLE_CNT is a 10-bit unsigned integer, such as a 0.10.0 (sign, amplitude, decimal) number. In some examples, a small HALF_CYCLE_CNT may be about 40. An example sensing frequency of 300kHz and an example waveform generator clock frequency may be 25MHz. If HALF_CYCLE_CNT is changed to 41, the new sensing frequency becomes 40 / 41, which is 97% of the original HALF_CYCLE_CNT. Therefore, even for a small HALF_CYCLE_CNT, a frequency granularity of 3% may be achieved to change the sensing frequency. In this example, in order to maintain the harmonic characteristics of the waveform, PHASE_INC should change 41 / 40 when the sensing frequency is shifted. In one embodiment, PHASE_INC is a 0.3.6 (sign, amplitude, decimal) number, which may extend from (0,8) decimal. In such an embodiment, 6 decimal places may be sufficient to maintain the harmonic characteristics.
[0095] In the illustrative example of switching the sensing frequency, the initial HALF_CYCLE_CNT = 128, the initial PHASE_INC = 1, and the initial F DDSCLK =25MHz, and the initial f sense = 97.65KHz. In one or more embodiments, to increase the sensing frequency to the next higher sensing frequency, HALF_CYCLE_CNT may be changed to 127, giving f sense =98.425KHz. In various embodiments, to increase the sensing frequency with a stable baseline, PHASE_INC=1 may not be changed. Furthermore, in an embodiment, to increase the sensing frequency with stable harmonic characteristics, PHASE_INC may be scaled as close to 127 / 128 as possible to PHASE_INC=1.0079. The closest PHASE_INC in this example is (1+2 -6 ) = 1.0156. In one or more embodiments, in order to achieve a better situation between scaling and available PHASE_INC, the interval of the switched sensing frequency may be increased.
[0096] In one or more embodiments, the sensing frequency may be tuned using separate registers (ie, PHASE_INC and HALF_CYCLE_CNT registers) for the stable baseline method and for the stable harmonic method.
[0097] In one or more embodiments, the waveform generator 300 includes a polarity switch 314 configured to perform an inversion operation based on a polarity switch control signal. The polarity switch 314 can be communicatively coupled to the RAM table 312. During one half cycle, the polarity switch 314 can multiply the digital data from the RAM table 312 by 1, and during the other half cycle, the polarity switch 314 can multiply the same digital data from the RAM by -1. Thus, the RAM table 312 can store samples for only a half cycle and generate a waveform for the entire cycle using the polarity switch 314.
[0098] In one or more embodiments, waveform generator 300 includes a DC offset circuit 316 configured to apply a DC_OFFSET at the end of waveform generator 300. DC_OFFSET can give the waveform generator added flexibility to generate a very well controlled DC voltage in an analog waveform.
[0099] FIG5 is a detailed diagram of an example waveform generator 500 according to one or more embodiments. As shown in FIG5 , the waveform generator 500 may include a phase increment circuit 502. As discussed above, the phase increment circuit 502 may provide a PHASE_INC value. The PHASE_INC value may be programmable and may be changed to adjust the duration of a rising edge of an output waveform, such as the rising edge 402 for the trapezoidal waveform 400. In some examples, when the period of the waveform changes, the PHASE_INC value is adjusted to maintain the period of the waveform and the ratio of the rising edge to maintain the harmonic characteristics of the waveform.
[0100] As shown in FIG. 5 , the waveform generator 500 may include an accumulator circuit 504. As discussed above, the accumulator circuit 504 may be coupled to the phase increment circuit 502 and may receive a PHASE_INC value. The accumulator circuit 504 may operate according to the waveform generator clock signal (wg_clk). The accumulator circuit 504 may receive a reset control signal from the control signal circuit 505. For example, the control signal circuit 505 may be configured to generate a reset control signal based on HALF_CYCLE_CNT. HALF_CYCLE_CNT may be an independent counter that controls the timing of the sensing frequency. As discussed above, the HALF_CYCLE_CNT may be changed to control the period of the waveform, and thereby control the sensing frequency. The accumulator circuit 504 may accumulate PHASE_INC from the phase increment circuit 502 and output the accumulated PHASE_INC value.
[0101] In one embodiment, the waveform generator 500 may include a truncation circuit 507. As discussed above, the truncation circuit 507 may include circuitry for dividing by 64 and truncating down the accumulated PHASE_INC value from the accumulator circuit 504. The truncation circuit 507 may output fractional bits for addressing the RAM. Fractional bit addressing may allow for greater flexibility and fine granularity in accessing the RAM, which in turn allows for fine granularity in control of the HALF_CYCLE_CNT, and therefore allows for fine granularity in switching the sensing frequency.
[0102] In one or more embodiments, the waveform generator 500 includes a saturation circuit 510. As discussed above, the saturation circuit 510 can perform a saturation check to compare the fractional address from the truncation circuit 507 to the programmable SAT_LIMIT. Once the SAT_LIMIT is reached, the saturation circuit 510 maintains the current RAM address. Thus, the saturation circuit 510 can be configured to generate a flat-top portion of a waveform (such as the flat-top portion 406 of the trapezoidal waveform 400), which can be a trapezoidal waveform. In some examples, the saturation circuit 510 can control the duration of the flat-top portion of the waveform to maintain a stable baseline capacitance, for example, by ensuring that the duration of the flat-top portion of the waveform is at least as long as the duration for the sensing electrode to stabilize.
[0103] In one embodiment, waveform generator 500 may include RAM table circuit 512. As discussed above, RAM table circuit 512 may store samples of a waveform. In some examples, RAM table circuit 512 stores samples of only a half-cycle of a waveform. In some examples, RAM table circuit 512 stores only a portion of the samples for a waveform, such as in a configuration where waveform generator 500 is configured to perform interpolation between samples.
[0104] In one embodiment, the waveform generator 500 may include a polarity switch circuit 514. As discussed above, the polarity switch circuit 514 may be configured to invert the same sample accessed from the RAM table circuit 512 multiple times during each half cycle, thereby allowing the waveform generator 500 to generate an entire waveform for a cycle while only samples for a half cycle are stored in the RAM table circuit 512. The polarity switch circuit 514 may be controlled based on a polarity switch enable control signal from the control signal circuit 505.
[0105] In one or more embodiments, wave polarity counter 515 comprises a 1-bit counter that can be configured to switch between values. For example, wave polarity counter 515 can comprise a 1-bit counter that switches between values based on a programmable ASIC register called WAVE_POLARITY_INIT.
[0106] 5, waveform generator 500 may include a DC offset circuit 516. In one or more embodiments, as discussed above, DC offset circuit 516 may be configured to apply a DC offset value based on an ASIC register DC_OFFSET. The DC offset may further shape the output waveform.
[0107] In one or more embodiments, the control signal circuit 505 may include a wave polarity counter 515 , a half-cycle count selector 517 , a phase control circuit 519 , a resynchronization circuit 520 , and a waveform cycle counter 521 .
[0108] In one or more embodiments, the half cycle count selector 517 is configured to control the length of the cycle of the waveform. For example, the half cycle count selector 517 can be configured to couple the WAVE_OFFSET_HALF_CYC register or the HALF_CYC_CNT register to the waveform cycle counter 521 to control the length of the half cycle of the waveform. In one embodiment, the waveform generator reset (wg_reset) signal is used to determine which of the WAVE_OFFSET_HALF_CYC register and the HALF_CYC_CNT register is coupled to the waveform cycle counter 521. The wg_reset signal can be provided at the beginning of each burst of the waveform. In one or more embodiments, when the wg_reset signal is high, the WAVE_OFFSET_HALF_CYC register is coupled to the waveform cycle counter 521. In addition, in one embodiment, when the wg_reset signal is low, the HALF_CYC_CNT register is coupled to the waveform cycle counter 521. In one or more embodiments, the wg_reset signal is high once per burst of a waveform, and thus, the WAVE_OFFSET_HALF_CYC register may be coupled to the waveform cycle counter 521 once per burst.
[0109] In one embodiment, the value of the WAVE_OFFSET_HALF_CYC register is different from the value of the HALF_CYC_CNT register. For example, the value of the HALF_CYC_CNT register may be greater than the value of the WAVE_OFFSET_HALF_CYC register. Therefore, the time difference between the half cycles generated using the HALF_CYC_CNT register may be greater than the time difference between the half cycles generated using the WAVE_OFFSET_HALF_CYC register. Alternatively, in one or more embodiments, the value of the WAVE_OFFSET_HALF_CYC register may be greater than or equal to the value of the HALF_CYC_CNT register.
[0110] In one embodiment, the counter value of the waveform cycle counter 521 is enabled based on the register value from the half cycle count selector 517. For example, the counter value of the waveform cycle counter 521 can be enabled based on the value of the WAVE_OFFSET_HALF_CYC register or the HALF_CYC_CNT register. The counter value is decremented at each rising edge of the waveform generator clock (wg_clk) signal, and the hc_done signal is output to the resynchronization circuit 520 when the counter value meets a threshold. For example, when the counter value reaches a value of 1, the hc_done signal is output to the resynchronization circuit 520. In other embodiments, other thresholds may be utilized. In one embodiment, the count value corresponds to the period of a half cycle of the waveform.
[0111] In one or more embodiments, the resynchronization circuit 520 is configured to generate a waveform generator resynchronization (wg_resync) signal based on the hc_done signal. The wg_resync signal can be configured to resynchronize the waveform cycle counter 521 after each half cycle. In one embodiment, resynchronizing the waveform cycle counter 521 can include reinitializing the counter value based on the value from the half cycle count selector 517. In addition, the waveform cycle counter 521 can be resynchronized using the wg_resync signal when the wg_reset signal is low, and the waveform cycle counter 521 can be resynchronized using the wg_reset signal when the wg_reset signal is high.
[0112] In one embodiment, the hc_done signal and the sense_sync_in signal are coupled to a multiplexer of the resynchronization circuit 520. The sense_sync_in signal can be provided from a separate IC chip and can be used to synchronize the waveform generator timing between the two IC chips. The multiplexer can select the hc_done signal or the sense_sync_in signal based on the value of the slave_select register. For example, when the slave_select register value is 1, the hc_done signal can be selected, and when the slave_select register value is 0, the sense_sync_in signal can be selected.
[0113] In various embodiments, the phase control circuit 519 is configured to reset the accumulator circuit 504. For example, the phase control circuit 519 can couple the wg_resync signal or the value of the WAVE_OFFSET_PHASE_INC register to the accumulator circuit 504. In one embodiment, when the wg_reset signal is high, the value of the WAVE_OFFSET_PHASE_INC register can be provided to the accumulator circuit 504. Additionally, when the wg_reset signal is low, the wg_reset signal can be provided to the accumulator circuit 504.
[0114] In one or more embodiments, the wave polarity counter 518 is configured to output a wave_polarity signal to control the polarity switch circuit 514. In one embodiment, the wave_polarity signal can have a value of 1 or 0. In addition, in one or more embodiments, the value of the wave_polarity signal alternates in response to the wg_resync signal. For example, for each rising edge of the wg_resync signal, the value of the wave_polarity signal switches from 1 to 0 or from 0 to 1. In one embodiment, when the wave_polarity signal is 1, the polarity switch circuit 514 outputs a signal based on an inverted sample accessed from the RAM table circuit 512, and when the wave_polarity signal is 0, the polarity switch circuit 514 outputs a signal based on a non-inverted sample accessed from the RAM table circuit 512.
[0115] In one embodiment, the control signal circuit 505 may generate a wg_run_en signal based on the wg_reset signal and the start_burst signal. The wg_run_en signal may be an enable signal configured to be high when the wg_reset signal is low. In one embodiment, the start_burst signal and the wg_reset signal may be internal signals of an IC chip including the control signal circuit 505. In other embodiments, at least one of the start_burst signal and the wg_reset signal is provided from another IC chip.
[0116] In one or more embodiments, the control signal circuit 505 includes a signal synchronization circuit 523 configured to generate a sense_sync_out signal. The sense_sync_out signal can be used to synchronize waveform generation between at least two IC chips. For example, the sense_sync_out signal can be used to synchronize the generation of waveforms between waveform generators of multiple IC chips. The signal synchronization circuit 523 can compare the value of the HALF_CYC_OFFSET register with the value of the waveform cycle counter 521, and generate a sense_sync_out signal based on the comparison. In one embodiment, when the value of the waveform cycle counter 521 is less than the value of the HALF_CYC_OFFSET register, the sense_sync_out signal is generated. In such an embodiment, the sense_sync_out signal can be generated before the hc_done signal is generated. In addition, the value of the HALF_CYC_OFFSET register can be increased before it is compared with the value of the waveform cycle counter 521. For example, the value of the HALF_CYC_OFFSET register can be increased by 1 or more.
[0117] In various embodiments, varying the value of the HALF_CYC_OFFSET register varies the timing of when the sense_sync_out signal is generated. For example, a higher value of the HALF_CYC_OFFSET register may result in the sense_sync_out signal being generated earlier than if the HALF_CYC_OFFSET register had a lower value.
[0118] The sense_sync_out signal can be provided to another IC chip and used to generate a waveform by that IC chip. Variations in generating the sense_sync_out signal can compensate for delays introduced by wiring between IC chips so that the waveforms for each IC chip are generated substantially simultaneously.
[0119] Figure 6Various signals utilized in generating waveforms according to one or more embodiments are illustrated. As illustrated, the signals include a wg_reset signal 616, a wg_resync signal 618, and a waveform 624. In one embodiment, in response to the rising edge of the wg_reset signal 616, the first cycle of the waveform 624 is started. In response to the rising edge of the wg_resync signal 618, another half cycle of the waveform 624 can be started. The half cycle of the waveform 624 can alternate in polarity so that each cycle has a positive voltage transition and a negative voltage transition. In addition, the length of each half cycle can correspond to one of the timings 620 and 622. The timing 620 can correspond to the time difference between the rising edges of the wg_reset signal 616. In addition, the timing 622 can correspond to the time difference between the rising edges of the wg_resync signal 618. In one embodiment, the timing 622 corresponds to the value of the HALF_CYCLE_CNT register, and the timing 620 corresponds to the value of the WAVE_OFFSET_HALF_CYCLE register. In various embodiments, although waveform 624 is shown as a trapezoidal waveform, waveform 624 may be a sinusoidal waveform or any other shape. Additionally, in one or more embodiments, the polarity of waveform 624 may be flipped.
[0120] As discussed above, in some cases interpolation may be performed between data samples. Figure 7 is a block diagram of a portion of an example waveform generator 700 configured to perform interpolation according to one or more embodiments. Figure 7 As shown in FIG. 1 , a portion of the waveform generator 700 may include an accumulator circuit 702 configured to accumulate PHASE_INC values. The accumulator circuit 702 may also include a phase increment circuit. Figure 8 As shown in FIG. 5 , unlike the waveform generator 500 shown in FIG. 5 , the truncation circuit may not be included between the accumulator circuit 702 and the saturation circuit 704. Instead, after the saturation circuit 704, the waveform generator 700 may include: a lower truncation index circuit 706 configured to extract a lower truncation index of the accumulator output; an upper truncation index circuit 708 configured to extract an upper truncation index of the accumulator output; and a fractional circuit 710 configured to extract a fractional portion of the accumulator output. The lower truncation index and the upper truncation index may be used to retrieve two waveform points for performing interpolation from a RAM table 712 (e.g., an ASIC register). In some examples, the RAM table 712 may be compressed and smaller than the RAM table circuit 512 in the waveform generator 500. After saturation, the same point (the last point in the buffer) may be selected.
[0121] like Figure 7As shown in , the waveform generator 700 may include an interpolation circuit 714. Using two points and a fractional value, the interpolation circuit 714 may generate an interpolated value (eg, linear interpolation) to quantize dynamics using full DAC. The interpolated value may be calculated according to the following formula:
[0122] Interpolated_result = Decimal index * Upper cutoff index + (1 – Decimal index) * Lower cutoff
[0123] Figure 8 8 is a flow chart illustrating an example method 800 for generating a waveform according to one or more embodiments. Step 802 of method 800 includes generating a period of a waveform by setting a number of clock cycles of a waveform generator clock signal for a half period of the waveform. In one embodiment, a waveform generator (e.g., 300, 500, 600) is configured to determine a number of clock cycles of a waveform generator clock signal that may be used to generate a half period of the waveform. The waveform may be a sensing signal for capacitive sensing. For example, the length of the half period may be increased or decreased by increasing or decreasing the number of clock cycles used to generate the half period.
[0124] At step 804, data samples of the waveform are accessed from an address location of a random access memory (RAM). For example, the accumulator circuit (e.g., 304, 504, and 702) can be configured to access the data samples of the waveform from the address location of the RAM. In one embodiment, the accumulator circuit is configured to access the data samples by incrementing the RAM address value using a phase increment value, accumulating the phase increment value based on clock cycles of a clock signal, and truncating the accumulated phase increment value to partially increment the RAM address value.
[0125] At step 806, the shape of the waveform is generated. For example, the saturation circuit (e.g., 310, 510, and 704) can be configured to generate the shape of the waveform. In one embodiment, the saturation circuit can be configured to generate the shape of the waveform by comparing the cutoff value to the saturation limit. For example, if the cutoff value is lower than the saturation limit, the saturation circuit is configured to access the data sample from the corresponding RAM address. In addition, if the cutoff value is higher than the saturation limit, the saturation circuit 310 is configured to access the data sample from the RAM address corresponding to the saturation limit. In addition, the saturation circuit 310 can be configured to output a signal corresponding to the accessed data sample.
[0126] The embodiments and examples set forth herein are presented in order to best explain embodiments according to the present technology and its specific applications, and thereby enable those skilled in the art to make and use the present disclosure. However, it will be appreciated by those skilled in the art that the foregoing description and examples are presented for illustration and example purposes only. The set forth description is not intended to be exhaustive or to limit the present disclosure to the precise form disclosed.
[0127] In view of the foregoing, the scope of the present disclosure is determined by the following claims.
Claims
1. A waveform generator, comprising: a memory storing a plurality of data samples used to generate a capacitive sensing waveform; as well as Saturation circuit, which is configured to: When determining that a truncated value has not reached a saturation limit, accessing the memory using a memory address to generate a rising edge of the capacitive sensing waveform, wherein the truncated value is generated by accumulating a phase increment value based on a clock signal and discarding one or more bits of the accumulated phase increment value; as well as Upon determining that the cutoff value has reached the saturation limit, the memory is repeatedly accessed using a first one of the memory addresses to generate a flat-top portion of the capacitive sensing waveform.
2. The waveform generator of claim 1, wherein repeatedly accessing the memory using the first memory address causes the memory to output a same data sample of the plurality of data samples.
3. The waveform generator of claim 1 , further comprising: A polarity switch circuit is configured to switch the polarity of an output signal of the memory based on a polarity switch enable signal.
4. The waveform generator of claim 3, further comprising a direct current (DC) offset circuit configured to apply a DC offset to the output signal. 5 . The waveform generator of claim 4 , wherein the DC offset circuit is further configured to output an offset signal to a digital-to-analog converter (DAC), the DAC being configured to output the capacitive sensing waveform based on the offset signal.
6. The waveform generator of claim 1, further comprising: A control signal circuit is configured to output a reset control signal at the end of a half period of the capacitive sensing waveform.
7. The waveform generator of claim 6, wherein the control signal circuit comprises a register containing the number of clock cycles in the half-cycle of the waveform, the register being programmable to adjust the number of clock cycles to tune at least one of the period of the capacitive sensing waveform or the frequency of the capacitive sensing waveform. 8 . The waveform generator of claim 1 , configured to generate the capacitive sensing waveform having at least one of a trapezoidal waveform or a sinusoidal waveform.
9. The waveform generator of claim 8, further comprising: A phase increment circuit includes a register programmable to adjust the duration of the rising edge in the trapezoidal waveform.
10. The waveform generator of claim 9, wherein the register of the phase increment circuit is programmable to adjust the duration of the rising edge to maintain a ratio of the duration of the rising edge relative to a period of the trapezoidal waveform.
11. The waveform generator of claim 8, wherein the saturation circuit includes a register programmable to adjust the duration of the flat-top portion of the trapezoidal waveform based on a settling time of a capacitive sensor.
12. The waveform generator of claim 1, further comprising: a cutoff circuit configured to generate a cutoff value used by the saturation circuit to determine whether the saturation limit has been reached, the cutoff circuit comprising: a divide-by-64 circuit configured to perform a divide-by-64 operation; and A down-truncation circuit is configured to perform a down-truncation operation on the output of the 64-divide circuit.
13. The waveform generator of claim 12, wherein the truncation circuit is configured to output fractional digits to increment the memory address.
14. The waveform generator of claim 1, further comprising: Interpolation circuitry is configured to perform interpolation between the plurality of data samples accessed from the memory to determine one or more interpolated data samples.
15. A method for generating a waveform, comprising: storing in a memory a plurality of data samples for generating a capacitive sensing waveform; When determining that a truncated value has not reached a saturation limit, accessing the memory using a memory address to generate a rising edge of the capacitive sensing waveform, wherein the truncated value is generated by accumulating a phase increment value based on a clock signal and discarding one or more bits of the accumulated phase increment value; upon determining that the cutoff value has reached the saturation limit, repeatedly accessing the memory using a first one of the memory addresses to generate a flat-top portion of the capacitive sensing waveform; and Capacitive sensing is performed using the capacitive sensing waveform.
16. A waveform generator, comprising: circuitry configured to set a frequency of a capacitive sensing waveform by adjusting a number of clock cycles used to generate a half-cycle of the capacitive sensing waveform; A circuit configured to set the rising edge and the flat top portion of the half cycle of the capacitive sensing waveform by adjusting the phase increment value and the saturation limit value, and comprising a saturation circuit configured to: comparing a truncation value to a saturation limit value, wherein the truncation value is generated by accumulating phase increment values based on a clock signal and discarding one or more bits of the accumulated phase increment value; upon determining that the cutoff value is below the saturation limit, accessing a first data sample from a memory corresponding to the cutoff value; upon determining that the cutoff value is at or above the saturation limit value, accessing a second data sample from the memory corresponding to the saturation limit value; outputting signals corresponding to the first and second data samples; and A circuit is configured to generate an address for accessing a memory storing data samples used to generate the capacitive sensing waveform.
17. The waveform generator of claim 16, wherein the circuit configured to generate the address comprises: an accumulator circuit configured to accumulate the phase increment value based on a clock of the waveform generator; as well as A truncation circuit is configured to discard one or more bits of the accumulated phase increment value and to generate the truncation value.
18. The waveform generator of claim 17, wherein the accumulator circuit is further configured to reset the accumulated phase increment value based on a reset control signal.
19. The waveform generator of claim 16, further comprising: a polarity switch circuit configured to switch a polarity of the signal corresponding to the accessed data sample based on polarity switch activation; as well as a direct current (DC) offset circuit, communicatively coupled to the output of the polarity switch circuit, and configured to: applying a DC offset to the signal; as well as The DC offset signal is output to a digital-to-analog converter DAC, which is configured to output a digital waveform corresponding to the capacitive sensing waveform.
