Result register with readout counter value
By using timing signals to control the ADC in the gate driver system, the problem of discontinuous data sampling when the switching signal is stopped is solved, the accuracy of data samples and the accuracy of system status monitoring is improved, and the effectiveness is achieved when the switching signal is stopped is achieved. Improved data acquisition and computing efficiency.
Patent Information
- Application Number
- CN202410528894.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-02
- Filing Date
- 2024-04-29
- Publication Date
- 2024-11-05
AI Technical Summary
The existing gate driver system relies on the trigger point of the switching signal, resulting in discontinuous data sampling and inability to continue monitoring when the switching signal is stopped, affecting the accuracy of the data sample and the monitoring accuracy of the system status.
Use timing signals to control the analog-to-digital converter (ADC), continue sampling when the switch signal is stopped, generate more data samples, and determine the validity of the data by reading the counter value, reducing dependence on timestamps, and improving calculation efficiency .
Improves the accuracy of data samples and the monitoring accuracy of system status, ensuring that effective measurement results can still be generated when the switching signal is stopped, and reduces the calculation burden.
Smart Images

Figure CN118900129A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to device communications, for example, communications for gate drivers. Background Art
[0002] The circuit can be configured to cause an analog-to-digital converter (ADC) to store data in a result register. For example, the circuit can store data generated by the ADC in the result register for each cycle of a periodic signal. In this way, data generated by the ADC at different cycles can be retrieved from the result register. Summary of the Invention
[0003] This disclosure describes techniques, devices, and systems for communication (e.g., communication for gate drivers). For example, instead of stopping all monitoring of a system when a switching signal stops, the techniques described herein can continue monitoring using a timing circuit device. For example, when the switching signal no longer includes a trigger point, the system can use a timing signal output by the timing circuit device to control an analog-to-digital converter (ADC). For example, when a car stops, the system can cause the ADC to continue sampling measurements (e.g., temperature or battery voltage). In this way, the system can generate more data samples than a system that relies only on the trigger point of the switching signal, which can improve the accuracy of the state of the system being monitored using the data samples.
[0004] In some examples, the techniques described herein can generate a read counter value for data stored by a result register. For example, the system can modify the read counter value from 0 to 1 in response to storing data in the result register. In this example, the system can set the read counter value to 0 in response to a read request. In this manner, a device reading data stored in the result register can use the read counter value to determine whether the data is valid, which is less computationally burdensome than a system that relies solely on comparing timestamps of data retrieved from the result register.
[0005] In some examples, a gate driver circuit includes one or more data stores including one or more result registers configured to store data, a timer circuit configured to generate a timing signal, and logic circuitry coupled to the one or more data stores. The logic circuitry is configured to drive a switching circuitry using a switching signal and to determine a trigger point for a first cycle of a plurality of cycles of the switching signal. In response to determining the trigger point, the logic circuitry is configured to control one or more ADCs using the switching signal to store a first data sample (e.g., a conversion result) in the one or more result registers. In response to determining that a set of one or more cycles in the plurality of cycles of the switching signal does not include the trigger point, the logic circuitry is configured to control the one or more ADCs using the timing signal to store a second data sample in the one or more result registers.
[0006] In some examples, a method includes driving a switching circuit device using a switching signal and determining a trigger point for a first cycle of a plurality of cycles of the switching signal. The method further includes, in response to determining the trigger point, controlling one or more ADCs using the switching signal to store a first data sample in one or more result registers of one or more data storage repositories, and in response to determining that a set of one or more cycles of the plurality of cycles of the switching signal does not include the trigger point, controlling the one or more ADCs using the timing signal to store a second data sample in the one or more result registers.
[0007] In some examples, a system includes one or more ADCs and a gate driver circuit. The gate driver circuit includes one or more data repositories configured to store one or more result registers, a timer circuit device configured to generate a timing signal, and a logic circuit device coupled to the one or more data repositories. The logic circuit device is configured to drive a switching circuit device using a switching signal and determine a trigger point for a first cycle of a plurality of cycles of the switching signal. In response to determining the trigger point, the logic circuit device is configured to control the one or more ADCs using the switching signal to store a first data sample in the one or more result registers. In response to determining that a set of one or more cycles in the plurality of cycles of the switching signal does not include the trigger point, the logic circuit device is configured to control the one or more ADCs using the timing signal to store a second data sample in the one or more result registers.
[0008] In some examples, a circuit includes one or more data storage libraries configured to store result registers and readout counter values, and logic circuitry coupled to the one or more data storage libraries. The logic circuitry is configured to cause one or more ADCs to store data in the result registers for a period in a plurality of periods of a periodic signal, and to modify the readout counter value in response to the one or more ADCs storing data in the result registers for the period. In response to a read request for data in the result registers for the period, the logic circuitry is configured to output the data stored in the result registers, output the readout counter value for the period, and, after outputting the readout counter value, set the readout counter value to a predetermined value.
[0009] In some examples, a method includes causing one or more ADCs to store data in a result register for a period of a plurality of periods of a periodic signal, and modifying a readout counter value in response to the one or more ADCs storing the data in the result register for the period. The method also includes outputting the data stored in the result register in response to a read request for the data in the result register for the period, outputting the readout counter value for the period, and setting the readout counter value to a predetermined value after outputting the readout counter value.
[0010] In some examples, a system includes a controller circuit configured to output a periodic signal and a driver circuit. The driver circuit includes one or more data repositories configured to store a result register and a readout counter value, and includes logic circuitry coupled to the one or more data repositories. The logic circuitry is configured to cause one or more ADCs to store data in the result register for a period in a plurality of periods of the periodic signal, and to modify the readout counter value in response to the one or more ADCs storing data in the result register for the period. In response to a read request for data in the result register for the period, the logic circuitry is configured to output the data stored in the result register, output the readout counter value for the period, and, after outputting the readout counter value, set the readout counter value to a predetermined value.
[0011] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the disclosure will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a block diagram illustrating an example system configured for sampling using both switching signals and timing signals, according to one or more techniques of this disclosure;
[0013] Figure 2is a graph illustrating an example switching signal according to one or more techniques of this disclosure;
[0014] Figure 3 is a conceptual diagram of generating a result register for sampling using both a switching signal and a timing signal according to one or more techniques of this disclosure;
[0015] Figure 4 is a block diagram illustrating an example system configured for reading a counter value in accordance with one or more techniques of this disclosure;
[0016] Figure 5 is a graph illustrating an example periodic signal and readout counter value according to one or more techniques of this disclosure;
[0017] Figure 6 is a conceptual diagram of conversion results and readout counter values according to one or more techniques of this disclosure;
[0018] Figure 7 is a flow chart for sampling without a trigger point according to the present disclosure;
[0019] Figure 8 is a flow chart for generating a readout counter value according to the present disclosure; and
[0020] Figure 9 is a flow chart for determining whether data stored at a result register is valid using a read counter value according to the present disclosure. DETAILED DESCRIPTION
[0021] This disclosure describes techniques, devices, and systems for communication (e.g., communication for gate drivers). Examples of gate drivers are described for illustrative purposes only. The gate driver may include a multi-channel analog-to-digital converter (ADC) that can be triggered during each pulse width modulation (PWM) cycle. Although the PWM cycle is used as an example, the techniques described herein can be applied to other switching signals and can be applied to other periodic signals. For each channel, the trigger point can be independently programmable by software. For example, the gate driver can determine the trigger point as the beginning or middle of the PWM ON phase, or the beginning or middle of the PWM OFF phase. In some cases, the gate driver can determine the trigger point as a fixed delay after the PWM ON phase, or a fixed delay after the PWM OFF phase. The gate driver can determine the trigger point as the middle of the PWM pulse.
[0022] According to the technology of the present disclosure, the gate driver can use the trigger point of the switching signal (e.g., PWM cycle) and the timing signal output by the timing circuit device to control the ADC. If the PWM operation stops (e.g., the car stops driving), the timeout counter can inject a trigger into the ADC to keep the monitoring valid (e.g., temperature measurement, battery monitoring). In this way, the gate driver can generate more data samples than the gate driver that relies only on the trigger point of the switching signal, which can improve the accuracy of the state of the system being monitored using the data samples. For example, even if the PWM has stopped, the gate driver can generate ADC conversion results of battery voltage, temperature, or other measurement results.
[0023] The gate driver can control the ADC so that the ADC causes the result register to include one or more bits (e.g., one bit) to indicate whether the conversion was triggered by a regular PWM cycle or a timeout trigger. For example, when the PWM cycle is used to control the ADC to store a data sample in the result register, the gate driver can include a first bit value (e.g., 0). In this example, when the timing signal is used to control the ADC to store the data sample in the result register, the gate driver can include a second bit value (e.g., 1). In this way, results that are not related to the PWM cycle can be identified and treated differently by the controller circuit.
[0024] In some examples, the gate driver can control the ADC so that the ADC result register includes one or more bits (e.g., one bit) indicating the use of the correct PWM on / off state during the ADC conversion time, thereby allowing for checking for correct triggering and consistent PWM on / off states throughout the conversion period. In this way, results acquired at incorrect trigger points can be identified and sorted by the gate driver itself. For example, the gate driver can include a first bit value (e.g., 1) in response to determining that the PWM remained in the on state while the ADC was sampling data. In this example, the gate driver can include a second bit value (e.g., 0) in response to determining that the PWM changed state (e.g., from the on state to the off state) while the ADC was sampling data. In some examples, the gate driver gate can include a second bit value (e.g., 0) in response to determining that the PWM was in the off state, wherein a trigger signal was generated for the on state. In this way, the gate driver itself can identify potentially inaccurate samples, which is less computationally burdensome than systems that rely solely on receiving circuitry (e.g., a microcontroller or controller circuit) to identify inaccurate samples.
[0025] The controller circuit (e.g., a microcontroller) can read the result register asynchronously and at different rates. In this example, the controller circuit should be able to reassemble a continuous stream of results that is precisely timed by a periodic signal (e.g., a PWM period). The circuit (e.g., a gate driver or another circuit) can generate the ADC result register to include a (saturated) read counter field to help allow the controller circuit to accurately read the result register. For example, the read counter field can indicate: (1) whether the actual conversion result has been read multiple times by the controller circuit; and (2) whether the controller circuit has missed reading one or more results. For example, in response to storing data to the result register, the circuit can modify the read counter value from 0 to 1. In this example, the circuit can set the read counter value to 0 in response to a read request. In this way, the controller circuit (e.g., a microcontroller) that reads the data stored to the result register can use the read counter value to determine whether the data is valid, which is less computationally burdensome than a system that relies solely on comparing the timestamps of the data retrieved from the result register.
[0026] Figure 1 1 is a block diagram illustrating an example system 100 configured for sampling without a trigger point according to one or more techniques of this disclosure. System 100 includes a gate driver circuit 104, a switch circuit device 106, and one or more ADCs 110 (referred to herein as "ADC 110"). Gate driver circuit 104 may include logic circuit devices 120, timer circuit devices 122, and one or more data stores 124 (referred to herein as "data stores 124"), which may include one or more result registers 112 (referred to herein as "result registers 112").
[0027] The ADC 110 may be configured to convert an analog signal into a digital value. For example, the ADC 110 may generate data samples at one or more result registers using measurements of the analog signal. For example, the ADC 110 may generate a first data sample using measurements of one or more of a power supply voltage output by the switching circuitry 106, a voltage at a switching element of the switching circuitry 106, a voltage output by a power supply configured to power the gate driver circuit 104, or a temperature.
[0028] The switching circuit device 106 can use a switching signal to operate one or more switching elements. The switching signal can be output by the gate driver circuit 104. For example, the switching circuit device 106 may include an inverter, and the switching signal may include a PWM signal. The switching circuit device 106 can represent a switching circuit device for controlling, for example, a power converter or an electric motor (e.g., a motor). As used herein, a switching element can include, but is not limited to, a silicon-controlled rectifier (SCR), a field-effect transistor (FET), and a bipolar junction transistor (BJT). Examples of FETs can include, but are not limited to, junction field-effect transistors (JFETs), metal-oxide-semiconductor FETs (MOSFETs), dual-gate MOSFETs, insulated-gate bipolar transistors (IGBTs), any other type of FET, or any combination thereof.
[0029] The gate driver circuit 104 can control the switching circuitry 106 and the ADC 110. The gate driver circuit 104 includes a combination of one or more analog components and one or more digital components. For example, the combination of the digital circuitry and analog circuitry of the gate driver circuit 104 can perform the functions described in one or more of the logic circuitry 120 and the timer circuitry 122. Examples of digital circuitry can include one or more processors, including one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or any other equivalent integrated or discrete logic circuitry, as well as any combination of such components. The term "processor" or "processing circuitry" can refer to any of the aforementioned logic circuitry (alone or in combination with other logic circuitry) or any other equivalent circuitry. For example, the digital circuitry of the gate driver circuit 104 can perform the functions described in one or more of the logic circuitry 120 and the timer circuitry 122.
[0030] The timer circuit device 122 can generate a timing signal. The timer circuit device 122 can include a timeout counter. For example, when a predetermined amount of time has passed since the timer circuit device 122 counter was initiated, the timer circuit device 122 can generate a timing signal indicating a trigger point of the timing signal.
[0031] Logic circuitry 120 may drive switching circuitry 106 using switching signals. For example, logic circuitry 120 may output a PWM signal to control a switching element of switching circuitry 106. Switching circuitry 106 may control a power converter to regulate, for example, the voltage, current, or power output by the power converter. In some examples, switching circuitry 106 may control a motor, for example, the speed or torque of the motor.
[0032] Logic circuit device 120 may determine a trigger point for a first cycle in a plurality of cycles of the switching signal. The trigger point may be independently programmable by software. For example, logic circuit device 120 may determine the trigger point as the beginning or middle of a phase of the cycle. For example, logic circuit device 120 may determine a first transition from an off state to an on state in a first cycle in a cycle of the switching signal and add a first time delay. In some cases, logic circuit device 120 may determine a second transition from an on state to an off state in a first cycle in a cycle of the switching signal and add a second time delay.
[0033] In response to determining the trigger point, the logic circuit device 120 can control the ADC 110 using the switch signal to store a first data sample at one or more result registers 112. For example, the logic circuit device 120 can cause the ADC 110 to generate the first data sample at a first trigger time corresponding to (e.g., occurring at a time similar to) the trigger point of the switch signal. For example, the logic circuit device 120 can control the ADC 110 to generate the first data sample using a measurement result of one or more of a power supply voltage output by the switch circuit device 106, a voltage at a switching element of the switch circuit device 106, a voltage output by a power supply configured to power the gate driver circuit 104, or a temperature.
[0034] In response to determining that a set of one or more cycles of the plurality of cycles of the switching signal does not include a trigger point, the logic circuitry 120 may control one or more ADCs using the timing signal to store a second data sample in one or more result registers. For example, the logic circuitry 120 may determine the trigger point of the timing signal. In this example, the logic circuitry 120 may cause the ADC 110 to generate a second data sample at a second trigger time corresponding to (e.g., occurring at a similar time to) the trigger point of the timing signal. For example, the logic circuitry 120 may control the ADC 110 to generate the second data sample using a measurement of one or more of a power supply voltage output by the switching circuitry 106, a voltage at a switching element of the switching circuitry 106, a voltage output by a power supply configured to power the gate driver circuit 104, or temperature. In this manner, the logic circuitry 120 may generate more data samples than a gate driver that relies solely on the trigger point of the switching signal, which may improve the accuracy of the monitored measurement state. For example, when the switching circuitry 106 is not driven by the switching signal, the logic circuitry 120 may generate samples of temperature measurements and battery measurements.
[0035] Figure 2 is a graph illustrating an example switching signal according to one or more techniques of this disclosure. Figure 1Let's discuss Figure 2 .exist Figure 2 In the example of FIG, ADC 110 generates measurement samples for an electric motor. However, in other examples, ADC 110 generates measurement samples for other devices (eg, a power converter).
[0036] An electric motor such as an electric motor can be operated by a sinusoidal voltage, which can be generated by a digitally controlled PWM waveform. For example, the gate driver circuit 104 can output a PWM signal to the switching circuit device 106. The digitally controlled PWM waveform can be applied to the IGBT module or SiC module of the switching circuit device 106. The switching circuit device 106 can be arranged as an inverter. For example, the IGBT module or SiC module of the switching circuit device 106 can be configured to switch between an ON state and an OFF state according to the PWM signal. The motor drive application in an electric vehicle can use a three-phase method with three independent half-bridges. The three phases draw power from a single high-voltage battery (e.g., a DC link voltage). The power output of such a configuration can easily reach 100 kilowatts (Kw).
[0037] To avoid wasting energy (e.g., keeping waste heat low to maximize battery range, which can help reduce CO2 emissions), it is desirable to improve the efficiency of such inverter applications. System 100 can manipulate a set of parameters (e.g., PWM duty cycle, PWM dead time, PWM gate driver output slew rate, and / or PWM gate driver output voltage) based on actual inverter conditions (e.g., temperature, battery voltage, motor load current, etc.).
[0038] The inverter can include several dedicated ADCs 110 to measure system status in a timer-based manner, for example, in some cases independently of the PWM signal (e.g., timer-only triggering of the ADC). Some gate driver circuits can provide PWM-related ADC conversion triggers, but the microcontroller may not be able to correlate the ADC results with a specific PWM cycle. However, it is necessary to trigger one or more ADC conversions in each PWM cycle. In this way, the microcontroller can read and assemble a stream of PWM cycle-accurate results in real time. For example, the microcontroller can measure the DC link voltage value and / or the Vds voltage drop across the SiC module (respectively, the Vce voltage drop across the IGBT module) for each PWM cycle. The microcontroller with the inverter software can combine the parameters of the system status with the phase currents measured with the external Hall elements to control the gate driver circuit 104.
[0039] Figure 2 The horizontal axis (x-axis) represents time (t), Figure 2The vertical axis (y-axis) of represents the first measured DC link current 202, the second measured DC link current 204, and the third measured DC link current 206 in amperes (A), and the measured voltage 210 in volts (V). Figure 2 , the first measured DC link current 202 overlaps with a portion of the second measured DC link current 204 and the third measured DC link current 206. The gate driver circuit 104 may wish to cause the ADC 110 to sample the measured voltage 210 based on a period of the switching signal (e.g., a PWM period). For example, the gate driver circuit 104 may cause the ADC 110 to sample the measured voltage 210 in the middle of the PWM period N, which is shown to be approximately 50 microseconds (μs).
[0040] The gate driver circuit 104 can cause the ADC 110 to sample various measurements based on the period of the switching signal (e.g., the PWM period). For example, the gate driver circuit 104 can cause the ADC 110 to sample the measured DC link voltage during each PWM period, which can allow the microcontroller to accurately calculate the injected power (torque) in the motor. For example, the gate driver circuit 104 can cause the ADC 110 to sample the measured DC link voltage during the zero-current PWM period to obtain an accurate sample of the battery voltage. PWM period-triggered measurements that do not have hard real-time requirements can include, for example, the external temperature of a diode or the supply voltage of the gate driver circuit 104 (e.g., VCC2 / VEE2).
[0041] The gate driver circuit 104 can cause the ADC 110 to sample the drain-source (Vds) voltage across the SiC module during each PWM cycle, which can allow the microcontroller to calculate the stress applied to the module and / or predict and monitor lifetime effects. For example, the microcontroller can use the sampled Vds across the SiC module during each PWM cycle to estimate the change in the on-resistance (Rdson) of the SiC module over the lifetime of the SiC module.
[0042] Systems where the gate driver circuit 104 does not cause the ADC 110 to sample based on the switching signal may not benefit from the additional measurement. For example, in such a system, a microcontroller can merge the measurement of the inverter current with the ADC's accurate sampling of the PWM cycle. The microcontroller may not be able to read the results from multiple ADCs in a manner accurate to the PWM cycle, and merging the measurements with the PWM cycle may be computationally burdensome (e.g., synchronizing conversion triggers, synchronizing ADC result readings, etc.).
[0043] Figure 3is a conceptual diagram of result registers 312A- 312C for sampling using both switching signals and timing signals, in accordance with one or more techniques of this disclosure. Figure 3 For illustrative purposes only Figure 1-Figure 2 System 300 includes a controller circuit 301, a detector circuit device 302, a trigger circuit device 304, a switch state detection circuit device 308, and an ADC circuit device 310. One or more of the controller circuit 301, the trigger circuit device 304, and the switch state detection circuit device 308 may be Figure 1 An example of a logic circuit device 120. The inactive circuit device 306 may be Figure 1 An example of a timer circuit device 122 is shown.
[0044] The controller circuit 301 may output a switching signal, such as a PWM signal. The detector circuit 302 may determine a trigger point for a first cycle in a cycle of the switching signal. For example, the detector circuit 302 may receive the switching signal from the controller circuit 301 and may use the switching signal to generate a first trigger signal. The detector circuit 302 may determine the first trigger signal to include a corresponding first trigger point corresponding to a midpoint of the PWM signal. For example, the detector circuit 302 may determine a first transition from an off state to an on state in a first cycle in a cycle of the switching signal and add a first time delay. In some cases, the detector circuit 302 may determine a second transition from an on state to an off state in a first cycle in a cycle of the switching signal and add a second time delay.
[0045] In response to determining the trigger point, detector circuitry 302 may use a switch signal to control ADC 332 to store a first data sample in result registers 312A-312C (collectively referred to herein as "result registers 312"). For example, the first trigger point of the first trigger signal may set a set-reset latch of trigger circuitry 304. In this example, the setting of the set-reset latch of trigger circuitry 304 may control MUX 330 (e.g., select a channel) so that MUX 330 outputs an input representing a measurement value (e.g., input A) to ADC 332. In this example, ADC 332 may output the first data sample (e.g., a digital representation of the measurement value) to result register 312. As shown, system 100 may output the first and second data samples to controller circuitry 301, which may represent processing circuitry such as a microcontroller.
[0046] In response to determining that the set of one or more of the periods of the switching signal does not include a trigger point, the inactive circuit device 306 can use the timing signal to control the ADC 332 to store the second data sample at the result register 312. For example, the inactive circuit device 306 can be configured to use the timing signal to generate the second trigger signal. For example, the inactive circuit device 306 can be configured to use the timing signal to generate the second trigger signal after the self-detector circuit device 302 indicates that a predetermined amount of time has passed since the trigger point. The inactive circuit device 306 may include a timeout counter.
[0047] For example, when a predetermined amount of time has elapsed since the counter of the timer circuitry was initiated, the inactive circuitry 306 can generate a timing signal indicating a trigger point of the timing signal. For example, when a predetermined amount of time has elapsed since the counter of the timeout counter was initiated, the inactive circuitry 306 can generate a timing signal to indicate a second trigger point. In this example, the second trigger point of the second trigger signal can set a set-reset latch of the trigger circuitry 304. The setting of the set-reset latch of the trigger circuitry 304 can control the MUX 330 to output an input representing a measurement value (e.g., input A) to the ADC 332, which outputs a second data sample (e.g., a digital representation of the measurement value) to the result register 312. As shown, the system 300 can output the first data sample and the second data sample to the controller circuit 301.
[0048] Configuring trigger circuitry 304 to cause ADC 332 to sample data for one or more parameters in response to each corresponding first trigger point of the first trigger signal and each corresponding second trigger point of the second trigger signal can enable ADC 332 to generate more data samples than a system that relies solely on trigger points of a switching signal (e.g., trigger points generated by detector circuitry 302), which can improve the accuracy of the state of the system being monitored using the data samples. For example, inactive circuitry 306 can generate ADC conversion results for battery voltage, temperature, or other measurements even when PWM has stopped.
[0049] The controller circuit 301 can generate a switching signal based on the first data sample and the second data sample. For example, the controller circuit 301 can manipulate a set of parameters (e.g., PWM duty cycle, PWM dead time, PWM gate driver output slew rate, and / or PWM gate driver output voltage) according to actual inverter conditions (e.g., temperature, battery voltage, motor load current, etc.).
[0050] The trigger circuit device 304 can be configured to generate a first value and store the first value at one or more result registers, the first value indicating a first data sample generated using the switching signal. For example, the trigger circuit device 304 can generate the result register 312A to include a status bit timing trigger "TIMTRIG" having a first value (e.g., 0) to indicate triggering based on the switching signal. In this example, the trigger circuit device 302 can generate a second value and store the second value at the result register 312B, the second value indicating a second data sample generated using the timing signal. For example, in the absence of PWM switching operation (e.g., the car is not moving), the trigger circuit device 304 can generate the result register 312B to include a status bit timing trigger "TIMTRIG" having a second value (e.g., 1) to indicate triggering based on the timer.
[0051] Switch state detection circuitry 308 can generate a value indicating whether the switch signal indicates only one switch state when triggering circuitry to cause one or more ADCs to sample data for one or more parameters. For example, switch state detection circuitry 308 can generate a status bit "PWMFAULT" that indicates whether an analog-to-digital conversion performed by ADC 332 a) occurred at an incorrect PWM state and / or b) occurred at a PWM state that changed during the conversion. For example, switch state detection circuitry 308 can generate a first value (e.g., 0 or 1) indicating whether the switch signal indicates only one switch state when ADC 332 samples first sample data. The switch state can include an on state (e.g., PWM ON) or an off state (e.g., PWM OFF). Similarly, switch state detection circuitry 308 can generate a second value indicating whether the switch signal indicates only one switch state when one or more ADCs sample second sample data.
[0052] Figure 4 is a block diagram illustrating an example system configured for reading a counter value, in accordance with one or more techniques of this disclosure. Figure 4 For illustrative purposes only Figure 1-Figure 3 . System 400 includes circuitry 404 and one or more ADCs 410 (also referred to herein as "ADCs 410"). System 400 may optionally include controller circuitry 401. ADCs 410 may be configured to convert analog signals into digital values. For example, ADCs 410 may use measurements of analog signals to generate data samples at one or more result registers 412 of one or more data repositories 422.
[0053] Circuit 404 can control ADC 410. Circuit 404 can include a combination of one or more analog components and one or more digital components. Circuit 404 can include logic circuitry 420, one or more data storage libraries 422 (also referred to herein as "data storage libraries 422"). Data storage libraries 422 can store one or more result registers 412 (also referred to herein as "result registers 412") and readout counter values 414.
[0054] For a period in the plurality of periods of the periodic signal, logic circuitry 420 may cause ADC 410 to store data in result register 412. For example, logic circuitry 420 may determine a first transition of the periodic signal from an off state to an on state and add a first time delay. In some examples, logic circuitry 420 may determine a second transition of the periodic signal from an on state to an off state and add a second time delay. In some examples, the periodic signal includes a PWM signal. Logic circuitry 420 may use the PWM signal to drive a switching circuitry, such as an inverter.
[0055] Logic circuit device 420 may modify readout counter value 414 in response to ADC 410 storing data in result register 412 for the cycle. For example, logic circuit device 420 may increment the readout counter value. In response to a read request for data at result register 412 for the cycle, logic circuit device 420 may output the data stored by result register 412, output readout counter value 414 for the cycle, and set readout counter value 414 to a predetermined value after outputting readout counter value 414. The predetermined value may be zero.
[0056] Logic circuit device 420 may output the data stored by result register 412 and readout counter value 414 to controller circuit 401 through a serial bus. In some examples, logic circuit device 420 may receive a periodic signal from controller circuit 401 .
[0057] Figure 5 is a graph illustrating an example periodic signal and readout counter value, in accordance with one or more techniques of this disclosure. Figure 5 For illustrative purposes only Figures 1-4 Have a discussion. Figure 5 The horizontal axis (x-axis) represents time (t), Figure 5 The vertical axis (y-axis) represents the periodic signal 502 in volts, the conversion results 504A-504E (collectively referred to herein as "conversion results 504") stored in the result register 412 (each representing a set of one or more bit values), the readout counter value 506 representing the bit value (e.g., 0 or 1), and the read requests 508A-508F.
[0058] exist Figure 5 In the example shown in FIG5 , when the read counter value 506 is equal to zero, the circuit 404, or more specifically, for example, the logic circuitry 420 and / or the controller circuitry 401, can determine that no new conversion results are available and / or a double read has occurred. For example, the logic circuitry 420 can discard the conversion result 504C in response to determining that the read counter value 506 is equal to zero when the read request 508D is received (e.g., the conversion result 504C has already been output when the read request 508C is received).
[0059] When read counter value 506 is equal to 1, circuit 404, or more specifically, for example, logic circuitry 420 and / or controller circuitry 401, may determine that a new conversion result is available. For example, logic circuitry 420 may output conversion result 504B for use by controller circuitry 401 in response to determining that read counter value 506 is equal to 1 when read request 508B is received.
[0060] When the read counter value 506 is equal to 2, the circuit 404, or more specifically, the logic circuit device 420 and / or the controller circuit 401, may determine that a conversion result was missed and not read. For example, when receiving the read request 508F, the logic circuit device 420 may output the conversion result 504E, in which the read counter value 506 is set to 2. In some examples, the circuit 404, or more specifically, the logic circuit device 420 and / or the controller circuit 401, may interpolate the missed conversion result.
[0061] When the read counter value 506 is equal to 3, the circuit 404, or more specifically, the logic circuit device 420 and / or the controller circuit 401, can determine that two conversion results are missed and not read. For example, when receiving a read request, the logic circuit device 420 can output the conversion results for use by the controller circuit 401, wherein the read counter value 506 is set to be equal to 3. In some examples, the circuit 404, or more specifically, the logic circuit device 420 and / or the controller circuit 401 can interpolate the missed conversion results. Table 1 lists Figure 5 Results for the example cycle.
[0062]
[0063] Table 1
[0064] Circuit 404, or more specifically, logic circuitry 420, can asynchronously update the ADC conversion results to controller circuit 401 (e.g., a microcontroller). For example, circuit 404 can output conversion results 504 to controller circuit 401 using a serial bus. However, controller circuit 401 can use readout counter value 506 to reassemble a cycle-accurate result chain (e.g., one result per PWM cycle). In this way, system 400 can avoid comparing timestamps between two consecutive samples, thereby reducing the computational workload of controller circuit 401, for example. Instead, each ADC result value itself contains an independent validity flag.
[0065] For example, circuit 404, or more specifically, logic circuitry 420, may cause ADC 410 to store data in result register 412 of data repository 422 for one of a plurality of cycles of periodic signal 502. For example, logic circuitry 420 may cause ADC 410 to generate conversion result 504 at each of cycles N, N+1, N+2, N+3, and N+4 of periodic signal 502. Logic circuitry 420 may modify readout counter value 506 in response to ADC 410 storing conversion result 504 in result register 412 for that cycle.
[0066] For example, the logic circuitry 420 may set the read counter value 506 to a predetermined value (e.g., 0) in response to a read request 508A for the conversion result 504A at the result register 412 for the previous cycle (e.g., N). In this example, the logic circuitry 420 may modify the read counter value 506 in response to the ADC 410 storing the conversion result 504 for the previous cycle (e.g., N) to the result register 412. For example, the logic circuitry 420 may increment the read counter value 506 (e.g., from 0 to 1).
[0067] In response to a read request 508B for data at the result register 412 for cycle (e.g., N+1), the logic circuit device 420 can output the conversion result 504B stored by the result register 412, output the read counter value 506 for cycle (N+1) (e.g., 1), and after the output of the read counter value 506, set the read counter value 506 to a predetermined value (e.g., 0).
[0068] In the above example, the current cycle refers to cycle 'N+1' of the periodic signal 502 to illustrate an example situation when a new conversion result is available. In the previous example, the current cycle, or simply "cycle," may refer to cycle 'N+2' of the periodic signal 502 to illustrate an example situation when no new conversion result is available and / or a double readout has occurred. For example, in response to a read request 508C for data at the result register 412 for cycle (e.g., N+2), the logic circuit device 420 may output the conversion result 504C stored by the result register 412, output a readout counter value 506 (e.g., 1) for cycle (N+2), and set the readout counter value 506 to a predetermined value (e.g., 0) after the output of the readout counter value 506.
[0069] Circuit 404, or more specifically, logic circuit device 420, may receive a subsequent read request 508D for the data at result register 412 for cycle (N+2) during cycle (e.g., N+2). In response to subsequent read request 508D for the data at result register 412 for cycle (N+2), logic circuit device 420 may output read counter value 506 for cycle (N+2) set to a predetermined value (e.g., 0). In some examples, logic circuit device 420 may output conversion result 504C at result register 412 for cycle (e.g., N+2) in response to subsequent read request 508D for the data at result register 412 for cycle (N+2).
[0070] In the previous example, the current cycle may again refer to cycle 'N+2' of the periodic signal 502, but may also refer to cycles N+3 and N+4 of the periodic signal 502 to illustrate an example situation when one or more conversion results have been missed and not read out. For example, in response to a read request 508C for data at the result register 412 for cycle (e.g., N+2), the logic circuit device 420 may output the conversion result 504C stored by the result register 412, output a read counter value 506 (e.g., 1) for cycle (N+2), and set the read counter value 506 to a predetermined value (e.g., 0) after output of the read counter value 506.
[0071] However, in this example, circuit 404, or more specifically, logic circuit device 420, may modify read counter value 506 from a predetermined value to a first modified value (e.g., 1) in response to ADC 410 storing data in result register 412 for the second cycle (e.g., N+3). In this example, logic circuit device 420 may modify read counter value 506 from the first modified value to a second modified value (e.g., 2) in response to ADC 410 storing data in result register 412 for the third cycle (e.g., N+4). In this example, logic circuit device 420 may receive a second read request 508F for data at result register 412 during the third current cycle. In response to the second read request for data at result register 412 for the third cycle, logic circuit device 420 may output the data stored by result register 412 for the third cycle, output read counter value 506 indicating the second modified value (e.g., 2) for the third cycle, and set the read counter value to a predetermined value (e.g., 0) after outputting read counter value 506.
[0072] Figure 6 is a conceptual diagram of a conversion result 612 and a readout counter value 614 , in accordance with one or more techniques of this disclosure. Figure 6 For illustrative purposes only Figure 1-Figure 5 Have a discussion.
[0073] exist Figure 6 In the example of FIG. 4 , ADC 410 may perform a conversion of an analog value to a digital value (e.g., conversion is complete) and write a conversion result 612 to a result register channel X (602). In this example, circuit 404, or more specifically, logic circuit device 420, may increment a readout counter value 614 in response to ADC 410 writing the conversion result 612 (604). Controller circuit 401 may perform a read access to conversion result 612 (606). In this example, in response to the read access, logic circuit device 420 may set the readout counter value 614 to zero (608).
[0074] Logic circuitry 420 can read readout counter value 614 and store it in data repository 422. As shown, readout counter value 614 can saturate at a maximum value (e.g., 7). However, when logic circuitry 420 increments from the maximum value, there can be no overflow. In this way, conversion result 612 can be preserved. Controller circuitry 401 can access both conversion result 612 and readout counter value 614 to reassemble an accurate periodic cycle (e.g., PWM cycle) conversion sequence.
[0075] Figure 7is a flow chart illustrating a technique for sampling without a trigger point according to the present disclosure. Figure 7 For example purposes only Figure 1 The circuit shown is discussed from a perspective, although other devices or circuits may perform Figure 7 technology.
[0076] The gate driver circuit 104, or more specifically, the logic circuit device 120, can drive the switching circuit device (702) using a switching signal. The switching circuit device can include an inverter. In some examples, the switching signal includes a pulse width modulation (PWM) signal.
[0077] The gate driver circuit 104, or more specifically, the logic circuit device 120, may determine a trigger point for a first cycle of the plurality of cycles of the switching signal (704). For example, the logic circuit device 120 may determine a first transition from an off state to an on state for the first cycle of the plurality of cycles of the switching signal and add a first time delay. In some examples, the logic circuit device 120 may determine a second transition from an on state to an off state for the first cycle of the plurality of cycles of the switching signal and add a second time delay.
[0078] In response to determining the trigger point, the gate driver circuit 104, or more specifically, the logic circuit device 120, may control the ADC 110 using the switching signal to store a first data sample at the result register 112 (706). For example, the logic circuit device 120 may cause the ADC 110 to generate the first data sample at a first trigger time corresponding to the trigger point of the switching signal. For example, the logic circuit device 120 may cause the one or more ADCs 110 to generate the first data sample using a measurement result of one or more of a power supply voltage output by the switching circuit device, a voltage at a switching element of the switching circuit device, a voltage output by a power supply configured to power the gate driver circuit, or a temperature.
[0079] In response to determining that the set of one or more cycles of the plurality of cycles of the switching signal does not include a trigger point, the gate driver circuit 104, or more specifically, for example, the logic circuit device 120, can use the timing signal to control the ADC 110 to store a second data sample at the result register 112 (708). For example, the logic circuit device 120 can determine the trigger point of the timing signal and cause the ADC 110 to generate the second data sample at a second trigger time corresponding to the trigger point of the timing signal. For example, the timer circuit device 122 can indicate the trigger point of the timing signal when a predetermined amount of time has elapsed since the counter of the timer circuit device 122 was started. In some examples, the inactive circuit device 306 can use the timing signal to generate the second trigger signal. The logic circuit device 120 can cause the ADC 110 to generate the second data sample using a second measurement of one or more of a power supply voltage output by the switching circuit device, a voltage output by a power supply configured to power the gate driver circuit, or a temperature.
[0080] Logic circuit device 120 may output a first data sample and a second data sample. For example, logic circuit device 120 may output the first data sample and the second data sample to controller circuit 301. In this example, logic circuit device 120 may receive a switching signal from controller circuit 301. In some examples, the switching signal is generated by controller circuit 301 based on the first data sample and the second data sample. For example, controller circuit 301 may manipulate a set of parameters (e.g., PWM duty cycle, PWM dead time, PWM gate driver output slew rate, and / or PWM gate driver output voltage) based on actual inverter conditions (e.g., temperature, battery voltage, motor load current, etc.).
[0081] In some examples, gate driver circuit 104, or more specifically, logic circuit device 120, can indicate whether a sample is generated using a switching signal or a timing signal. For example, logic circuit device 120 can generate a first value and store the first value at one or more result registers 112 of data repository 124, the first value indicating that the first data sample was generated when logic circuit device 120 controlled one or more ADCs 110 using a switching signal. In this example, logic circuit device 120 can generate a second value and store the second value at one or more result registers 112, the second value indicating that the second data sample was generated when logic circuit device 120 controlled one or more ADCs 110 using a timing signal.
[0082] The gate driver circuit 104, or more specifically, the logic circuitry 120, can indicate whether a sample was generated in a consistent switching state. For example, the logic circuitry 120 can generate a first value indicating whether the switch signal indicated only one switching state when the one or more ADCs sampled the first sample data 110. The switching state can include an on state or an off state. In this example, the logic circuitry 120 can generate a second value indicating whether the switch signal indicated only one switching state when the one or more ADCs 110 sampled the second sample data.
[0083] Figure 8 is a flow chart illustrating a technique for generating a readout counter value according to the present disclosure. Figure 8 For example purposes only Figure 4 The circuit shown is discussed in terms of the circuit, although other devices or circuits may perform Figure 8 technology.
[0084] Circuit 404, or more specifically, logic circuit device 420, may cause ADC 410 to store data in result register 412 (802) for a period in a plurality of periods of the periodic signal. For example, logic circuit device 420 may cause ADC 410 to generate conversion result 504 at each of periods N, N+1, N+2, N+3, and N+4 of periodic signal 502. For example, logic circuit device 420 may determine a first transition of periodic signal 502 from an off state to an on state and add a first time delay, such as Figure 5 In some examples, the logic circuit device 420 can cause the ADC 410 to generate Figure 5 4. A different conversion result 504 is shown. For example, logic circuitry 420 can determine a second transition of the periodic signal from the on state to the off state, add a second time delay, and cause ADC 410 to generate conversion result 504 during the second transition. In some examples, the periodic signal can be a PWM signal. For example, circuitry 404 can be configured to use the PWM signal to drive a switching circuitry (e.g., an inverter). However, in other examples, the periodic signal can be different.
[0085] Logic circuitry 420 may modify read counter value 414 (804) in response to ADC 410 storing data for the cycle in result register 412. For example, logic circuitry 420 may modify read counter value 506 in response to ADC 410 storing conversion result 504B for cycle (e.g., N+1) in result register 412. For example, logic circuitry 420 may increment read counter value 414 (e.g., from 0 to 1).
[0086] In response to a read request for data at the result register 412 for the cycle, the logic circuit device 420 may output the data stored in the result register 412, output the read counter value 414 for the cycle, and set the read counter value 414 to a predetermined value after the output of the read counter value 414 (806). The predetermined value may be zero. For example, in response to a read request 508B for data at the result register 412 for cycle (e.g., N+1), the logic circuit device 420 may output the conversion result 504B stored in the result register 412, output the read counter value 506 for cycle (N+1) (e.g., 1), and set the read counter value 506 to a predetermined value (e.g., 0) after the output of the read counter value 506.
[0087] In the preceding example, the current cycle, or simply "cycle," may represent cycle 'N+2' of the cycle signal 502 to illustrate an example situation when no new conversion results are available and / or a double read has occurred. For example, the logic circuit device 420 may receive a subsequent read request 508D for the data at the result register 412 for cycle (N+2) during cycle (e.g., N+2). In response to the subsequent read request 508D for the data at the result register 412 for cycle (N+2), the logic circuit device 420 may output the read counter value 506 for cycle (N+2) set to a predetermined value (e.g., 0). In some examples, the logic circuit device 420 may output the conversion result 504C at the result register 412 for the cycle in response to the subsequent read request 508D for the data at the result register 412 for cycle (e.g., N+2).
[0088] In the previous example, the current cycle may again refer to cycle 'N+2' of the periodic signal 502, but may also refer to cycles N+3 and N+4 of the periodic signal to illustrate an example situation when one or more conversion results are missed and not read out. For example, in response to the ADC 410 storing data in the result register 412 for the second cycle (e.g., N+3), the logic circuit device 420 may modify the read counter value 506 from a predetermined value to a first modified value (e.g., 1). In this example, the logic circuit device 420 may modify the read counter value 506 from the first modified value to a second modified value (e.g., 2) in response to the ADC 410 storing data in the result register 412 for the third cycle (e.g., N+4). In this example, the logic circuit device 420 may receive a second read request 508F for the data at the result register 412 during the third current cycle. In response to a second read request for the data at the result register 412 for the third cycle, the logic circuit device 420 can output the data stored by the result register 412 for the third cycle, output the read counter value 506 for the third cycle indicating the second modification value (e.g., 2), and after the output of the read counter value 506, set the read counter value to a predetermined value (e.g., 0).
[0089] Figure 9 is a flow chart for determining whether data stored at a result register is valid using a read counter value according to the present disclosure. Figure 9 For example purposes only Figure 4 The circuit shown is discussed in terms of the circuit, although other devices or circuits may perform Figure 9 technology.
[0090] A device (e.g., controller circuit 401) can output a periodic signal (902). In some examples, the periodic signal can be a PWM signal. For example, circuit 404 can be configured to use the PWM signal to drive a switching circuit device (e.g., an inverter). However, in other examples, the periodic signal can be different.
[0091] The controller circuit 401 may output a read request for the data at the result register 412 for each cycle of the periodic signal (904). For example, the controller circuit 401 may generate and output read requests 508A-508F (e.g., using a serial bus). The controller circuit 401 may receive the data stored by the result register 412 and the read counter value 414 for the cycle (906), and use the read counter value for the cycle to determine whether the data stored at the result register is valid (908).
[0092] For example, the controller circuit 401 may determine that the data stored in the result register 412 is valid in response to the read counter value for the cycle being modified once by the gate driver from a predetermined value. For example, the controller circuit 401 may determine that the conversion result 504B is valid in response to the read counter value 506 for the cycle being modified once by the circuit 404 from a predetermined value (e.g., the read counter value for the cycle is 1). In this case, the circuit 404 may modify the read counter value 506 by incrementing the read counter value 506 from 0 to 1, where the predetermined value is 0.
[0093] Controller circuit 401 may determine, in response to read counter value 414 for the cycle matching a predetermined value, that data stored at result register 412 has been previously output to controller circuit 401. For example, controller circuit 401 may determine, in response to read counter value 506 for cycle N+2 being equal to zero, that conversion result 504C has been previously output to controller circuit 401 in response to read request 508D.
[0094] The controller circuit 401 may determine that data at the result register 412 has not been read for at least one cycle of the periodic signal in response to the read counter value 414 for that cycle being modified multiple times from a predetermined value by the circuit 404. For example, the controller circuit 401 may determine that the conversion result 504D has not been read in response to the read counter value 506 for cycle N+4 being equal to 2. In some examples, the controller circuit 401 may interpolate the data of one or more missed conversion results.
[0095] The following clauses may describe one or more aspects of the present disclosure.
[0096] Item A1. A gate driver circuit comprising: one or more data repositories configured to store one or more result registers; a timer circuit device configured to generate a timing signal; and a logic circuit device coupled to the one or more data repositories and configured to: drive the switching circuit device using a switching signal; determine a trigger point for a first cycle of a plurality of cycles of the switching signal; in response to determining the trigger point, control one or more ADCs using the switching signal to store a first data sample at the one or more result registers; and in response to determining that a set of one or more cycles of the plurality of cycles of the switching signal does not include the trigger point, control the one or more ADCs using the timing signal to store a second data sample at the one or more result registers.
[0097] Clause A2. The gate driver of Clause A1, wherein to control the one or more ADCs using the switching signal, the logic circuitry is configured to cause the one or more ADCs to generate a first data sample at a first trigger time corresponding to a trigger point of the switching signal.
[0098] Item A3. A gate driver according to items A1 to A2, wherein to determine the trigger point of the switching signal, the logic circuit device is configured to determine a first transition from the off state to the on state in a first cycle among multiple cycles of the switching signal and add a first time delay; or wherein to determine the trigger point of the switching signal, the logic circuit device is configured to determine a second transition from the on state to the off state in a first cycle among multiple cycles of the switching signal and add a second time delay.
[0099] Item A4. A gate driver according to items A1 to A3, wherein, in order to control one or more ADCs using a timing signal, the logic circuit device is configured to: determine a trigger point of the timing signal; and cause the one or more ADCs to generate a second data sample at a second trigger time corresponding to the trigger point of the timing signal.
[0100] Clause A5. The gate driver of clause A4, wherein to generate the timing signal, the timer circuit arrangement is configured to indicate a trigger point of the timing signal when a predetermined amount of time has elapsed since a counter of the timer circuit arrangement was started.
[0101] Clause A6. The gate driver of clauses A1 to A5, wherein the logic circuitry is further configured to output the first data sample and the second data sample.
[0102] Clause A7. The gate driver of clause A6, wherein the logic circuitry is further configured to receive a switch signal from the controller circuit; and wherein the logic circuitry is configured to output the first data sample and the second data sample to the controller circuit.
[0103] Clause A8. The gate driver of clause A7, wherein the switching signal is generated by the controller circuit based on the first data sample and the second data sample.
[0104] Item A9. A gate driver according to items A1 to A8, wherein the logic circuit device is further configured to: cause the one or more ADCs to generate a first data sample using a measurement result of one or more of a power supply voltage output by the switching circuit device, a voltage at a switching element of the switching circuit device, a voltage output by a power supply configured to power the gate driver circuit, or a temperature; and cause the one or more ADCs to generate a second data sample using a second measurement result of one or more of a power supply voltage output by the switching circuit device, a voltage output by a power supply configured to power the gate driver circuit, or a temperature.
[0105] Clause A10. The gate driver of clauses A1 to A9, wherein the switching circuitry comprises an inverter; and wherein the switching signal comprises a PWM signal.
[0106] Item A11. A gate driver as described in items A1 to A10, wherein the logic circuit device is further configured to generate a first value and store the first value at one or more result registers, the first value indicating that the first data sample was generated when the logic circuit device controls the one or more ADCs using the switching signal; and wherein the logic circuit device is further configured to generate a second value and store the second value at the one or more result registers, the second value indicating that the second data sample was generated when the logic circuit device controls the one or more ADCs using the timing signal.
[0107] Item A12. A gate driver according to items A1 to A11, wherein, to generate a first data sample, the logic circuit device is further configured to generate a first value, the first value indicating whether the switch signal indicates only one switch state when the one or more ADCs sample the first sample data, wherein the switch state includes an on state or an off state; and wherein, to generate a second data sample, the logic circuit device is further configured to generate a second value, the second value indicating whether the switch signal indicates only one switch state when the one or more ADCs sample the second sample data.
[0108] Item A13. A gate driver according to items A1 to A12, wherein the logic circuit device includes: a detector circuit device configured to generate a first trigger signal using a switching signal; an inactive circuit device configured to generate a second trigger signal using a timing signal; and a trigger circuit device configured to cause one or more ADCs to sample data for one or more parameters in response to each corresponding first trigger point of the first trigger signal and each corresponding second trigger point of the second trigger signal.
[0109] Item A14. A gate driver according to Item A13, wherein the logic circuit device further includes a switch state detection circuit device, the switch state detection circuit device being configured to generate a value indicating whether the switch signal indicates only one switch state when the trigger circuit device causes the one or more ADCs to sample data for the one or more parameters.
[0110] Item A15. A method comprising: driving a switching circuit device using a switching signal; determining a trigger point of a first cycle of a plurality of cycles of the switching signal; in response to determining the trigger point, controlling one or more ADCs using the switching signal to store a first data sample at one or more result registers of one or more data repositories; and in response to determining that a set of one or more cycles of the plurality of cycles of the switching signal does not include the trigger point, controlling one or more ADCs using a timing signal to store a second data sample at one or more result registers.
[0111] Clause A16. The method of clause A15, wherein controlling the one or more ADCs using the switching signal comprises causing the one or more ADCs to generate a first data sample at a first trigger time corresponding to a trigger point of the switching signal.
[0112] Clause A17. A method according to clauses A15 to A16, wherein controlling one or more ADCs using a timing signal includes: determining a trigger point of the timing signal; and causing the one or more ADCs to generate a second data sample at a second trigger time corresponding to the trigger point of the timing signal.
[0113] Item A18. A system comprising: one or more analog-to-digital converters (ADCs); and a gate driver circuit comprising: one or more data repositories configured to store one or more result registers; a timer circuit device configured to generate a timing signal; and a logic circuit device coupled to the one or more data repositories and configured to: drive the switching circuit device using a switching signal; determine a trigger point for a first cycle of a plurality of cycles of the switching signal; in response to determining the trigger point, control the one or more ADCs using the switching signal to store a first data sample at the one or more result registers; and in response to determining that a set of one or more cycles of the plurality of cycles of the switching signal does not include the trigger point, control the one or more ADCs using the timing signal to store a second data sample at the one or more result registers.
[0114] Item A19. The system of Item A18 further comprises: a controller circuit, wherein the logic circuit device is further configured to receive a switch signal from the controller circuit; and wherein in order to output the first data sample and the second data sample, the logic circuit device is configured to output the first data sample and the second data sample to the controller circuit.
[0115] Clause A20. The system of clause A19, wherein the controller circuit is configured to generate the switching signal based on the first data sample and the second data sample.
[0116] Item B1. A circuit comprising: one or more data repositories configured to store result registers and read counter values; and a logic circuit device coupled to the one or more data repositories and configured to: cause one or more ADCs to store data to the result register for a cycle in multiple cycles of a periodic signal; modify the read counter value in response to the one or more ADCs storing data to the result register for the cycle; and output the data stored by the result register in response to a read request for data at the result register for the cycle, output the read counter value for the cycle, and after output of the read counter value, set the read counter value to a predetermined value.
[0117] Clause B2. The circuit of clause B1, wherein the predetermined value is zero.
[0118] Clause B3. The circuit of any of clauses B1 to B2, wherein to modify the read counter value for the cycle, the logic circuitry is configured to increment the read counter value.
[0119] Item B4. A circuit according to any one of items B1 to B3, wherein the cycle is a current cycle that occurs immediately after a previous cycle in a plurality of cycles of the periodic signal, and the read request is a current read request, and wherein the logic circuit device is further configured to: modify the read counter value in response to one or more ADCs storing data to the result register for the previous cycle; and set the read counter value to a predetermined value in response to a read request for data at the result register for the previous cycle, before one or more ADCs store data to the result register for the current cycle.
[0120] Clause B5. The circuit of clause B4, wherein to modify the read counter value, the logic circuit device is configured to increment the read counter value; and wherein to set the read counter value, the logic circuit device is configured to set the read counter value to zero.
[0121] Clause B6. A circuit according to any one of clauses B1 to B3, wherein the read request is a current read request, and wherein the logic circuit device is further configured to: during a cycle, receive a subsequent read request for data at a result register for the cycle; and in response to the subsequent read request for data at the result register for a previous cycle, output a read counter value for the cycle set to a predetermined value.
[0122] Clause B7. The circuit of clause B6, wherein the logic circuit device is further configured to: output the data at the result register for the cycle in response to a subsequent read request for the data at the result register for the cycle.
[0123] Item B8. A circuit according to any one of items B1 to B3, wherein the cycle is a first cycle that occurs immediately before a second cycle in a plurality of cycles of the periodic signal, and the second cycle occurs immediately before a third cycle in a plurality of cycles of the periodic signal, and the read request is a first read request, and wherein the logic circuit device is further configured to: in response to one or more ADCs storing data to a result register for the second cycle, modify the read counter value from a predetermined value to a first modified value; in response to one or more ADCs storing data to a result register for a third cycle, modify the read counter value from the first modified value to a second modified value; and receive a second read request for the data at the result register during a third current cycle; and in response to the second read request for the data at the result register for the third cycle, output the data stored by the result register for the third cycle, output the read counter value for the third cycle indicating the second modified value, and after output of the read counter value, set the read counter value to a predetermined value.
[0124] Item B9. A circuit according to Item B8, wherein to modify the read counter value from a predetermined value to a first modified value, the logic circuit device is configured to increment the read counter value from 0 to 1; and wherein to modify the read counter value from a second modified value to a third modified value, the logic circuit device is configured to increment the read counter value from 1 to 2.
[0125] Clause B10. The circuit of any of clauses B1 to B9, wherein the logic circuit device is configured to output the data stored by the result register and the readout counter value to the controller circuit via a serial bus.
[0126] Clause B11. The circuit of clause B10, wherein the logic circuit device is configured to receive the periodic signal from the controller circuit.
[0127] Item B12. A circuit according to any one of items B1 to B11, wherein in order for one or more ADCs to store data to a result register, the logic circuit device is configured to: determine a first transition of the periodic signal from an off state to an on state and add a first time delay; or wherein in order for one or more ADCs to store data to a result register, the logic circuit device is configured to: determine a second transition of the periodic signal from an on state to an off state and add a second time delay.
[0128] Clause B13. The circuit of clauses B1 to B12, wherein the periodic signal comprises a PWM signal; and wherein the logic circuit device is further configured to drive the inverter using the PWM signal.
[0129] Item B14. A method comprising: causing one or more ADCs to store data to a result register for a cycle in a plurality of cycles of a periodic signal; modifying a read counter value in response to the one or more ADCs storing data to the result register for the cycle; and outputting the data stored by the result register in response to a read request for data at the result register for the cycle, outputting the read counter value for the cycle, and setting the read counter value to a predetermined value after outputting the read counter value.
[0130] Item B15. A system comprising: a controller circuit configured to output a periodic signal; and a driver circuit comprising one or more data repositories configured to store a result register and a read counter value and comprising a logic circuit device coupled to the one or more data repositories, the logic circuit device being configured to: cause one or more analog-to-digital converters (ADCs) to store data to the result register for a period in a plurality of periods of the periodic signal; modify the read counter value in response to the one or more ADCs storing data to the result register for the period; and output the data stored by the result register, output the read counter value for the period, and set the read counter value to a predetermined value after output of the read counter value.
[0131] Clause B16. The system of clause B15, wherein the controller circuit is further configured to determine that the data stored at the result register is valid in response to the read counter value for the cycle being modified once by the driver circuit from a predetermined value.
[0132] Clause B17. A system according to any of clauses B15 to B16, wherein to modify the read counter value, the driver circuit is configured to increment the read counter value from 0 to 1; and wherein to set the read counter value, the driver circuit is configured to set the read counter value to 0.
[0133] Clause B18. The system of clause B15, wherein the controller circuit is further configured to: in response to the read counter value for the cycle matching a predetermined value, determine that the data stored at the result register has been previously output to the controller circuit.
[0134] Item B19. A system according to Item B15, wherein the controller circuit is further configured to: in response to the readout counter value for the cycle being modified multiple times by the driver circuit from a predetermined value, determine that data at the result register for at least one of the multiple cycles of the periodic signal has not been read.
[0135] Item B20. A system according to Item B15 or B19, wherein to modify the read counter value in response to one or more ADCs storing data to a result register for a period, the logic circuit device is configured to increment the read counter value from 1 to 2; and wherein to set the read counter value, the logic circuit device is configured to set the read counter value to 0.
[0136] In one or more examples, the functions being performed may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media corresponding to tangible media such as data storage media, or communication media, including any media that facilitates, for example, the transfer of a computer program from one place to another according to a communication protocol. In this manner, computer-readable media may generally correspond to (1) a non-transitory, tangible computer-readable storage medium, or (2) a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in this disclosure. A computer program product may include a computer-readable medium.
[0137] The techniques of this disclosure can be implemented in a variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs), or a set of ICs (e.g., chipsets). Various components, modules, or units are described in this disclosure to emphasize the functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require implementation by different hardware units. Instead, as described above, the various units can be combined in hardware units or provided by a collection of interoperable hardware units including one or more processors as described above in combination with appropriate software and / or firmware.
[0138] Various aspects have been described in this disclosure. These and other aspects are within the scope of the following claims.
Claims
1. A circuit comprising: one or more data storage libraries configured to store result register and readout counter values; as well as A logic circuit device is coupled to the one or more data storage libraries and is configured to: For a period in a plurality of periods of the periodic signal, causing one or more analog-to-digital converters ADC to store data into the result register; in response to the one or more ADCs storing the data to the result register for the period, modifying the readout counter value; as well as In response to a read request for the data at the result register for the cycle, the data stored by the result register is output, the read counter value for the cycle is output, and after the read counter value is output, the read counter value is set to a predetermined value. The circuit of claim 1 , wherein the predetermined value is zero.
3. The circuit of claim 1, wherein to modify the read counter value for the cycle, the logic circuit device is configured to increment the read counter value.
4. The circuit of claim 1 , wherein the cycle is a current cycle that occurs immediately after a previous cycle in the plurality of cycles of the periodic signal, and the read request is a current read request, and wherein the logic circuit device is further configured to, before the one or more ADCs store the data to the result register for the current cycle: responsive to the one or more ADCs storing the data to the result register for the previous cycle, modifying the readout counter value; and In response to a read request for the data at the result register for the previous cycle, the read counter value is set to the predetermined value.
5. The circuit according to claim 4, wherein to modify the read counter value, the logic circuit arrangement is configured to increment the read counter value; and Wherein, in order to set the readout counter value, the logic circuit device is configured to set the readout counter value to 0.
6. The circuit of claim 1 , wherein the read request is a current read request, and wherein the logic circuit device is further configured to: receiving, during the cycle, a subsequent read request for the data at the result register for the cycle; and In response to the subsequent read request for the data at the result register for a previous cycle, the read counter value for the cycle set to the predetermined value is output.
7. The circuit of claim 6, wherein the logic circuit device is further configured to: in response to the subsequent read request for the data at the result register for the cycle, output the data at the result register for the cycle.
8. The circuit of claim 1 , wherein the cycle is a first cycle occurring immediately before a second cycle of the plurality of cycles of the periodic signal, and the second cycle occurs immediately before a third cycle of the plurality of cycles of the periodic signal, and the read request is a first read request, and wherein the logic circuit device is further configured to: in response to the one or more ADCs storing the data to the result register for the second period, modifying the readout counter value from the predetermined value to a first modified value; in response to the one or more ADCs storing the data to the result register for the third period, modifying the readout counter value from the first modified value to a second modified value; as well as receiving a second read request for the data at the result register during the third current cycle; as well as In response to the second read request for the data at the result register for the third cycle, the data stored by the result register for the third cycle is output, the read counter value for the third cycle indicating the second modification value is output, and after the output of the read counter value, the read counter value is set to the predetermined value.
9. The circuit according to claim 8, wherein in order to modify the readout counter value from the predetermined value to the first modified value, the logic circuit device is configured to increment the readout counter value from 0 to 1; and Wherein, in order to modify the read counter value from the second modification value to the third modification value, the logic circuit device is configured to increment the read counter value from 1 to 2.
10. The circuit of claim 1, wherein the logic circuit device is configured to output the data stored by the result register and the readout counter value to a controller circuit through a serial bus.
11. The circuit of claim 10, wherein the logic circuit device is configured to receive the periodic signal from the controller circuit.
12. The circuit according to claim 1, wherein in order for the one or more ADCs to store the data in the result register, the logic circuit device is configured to: determine a first transition of the periodic signal from an off state to an on state, and add a first time delay; or Wherein, in order for the one or more ADCs to store the data in the result register, the logic circuit device is configured to: determine a second transition of the periodic signal from the on state to the off state, and add a second time delay.
13. The circuit according to claim 1, wherein the periodic signal comprises a pulse width modulation (PWM) signal; and The logic circuit device is further configured to drive an inverter using the PWM signal.
14. A method comprising: For a period in a plurality of periods of the periodic signal, enable one or more analog-to-digital converters ADC to store data in a result register; in response to the one or more ADCs storing the data to the result register for the period, modifying the readout counter value; as well as In response to a read request for the data at the result register for the cycle, the data stored by the result register is output, the read counter value for the cycle is output, and after the read counter value is output, the read counter value is set to a predetermined value.
15. A system comprising: A controller circuit is configured to output a periodic signal; as well as A driver circuit comprising one or more data storage libraries configured to store result registers and readout counter values, and logic circuitry coupled to the one or more data storage libraries, the logic circuitry being configured to: For a period in a plurality of periods of the periodic signal, enable one or more analog-to-digital converters ADC to store data in the result register; in response to the one or more ADCs storing the data to the result register for the period, modifying the readout counter value; as well as In response to a read request for the data at the result register for the cycle, the data stored by the result register is output, the read counter value of the cycle is output, and after the read counter value is output, the read counter value is set to a predetermined value.
16. The system of claim 15, wherein the controller circuit is further configured to determine that the data stored at the result register is valid in response to the readout counter value for the cycle being modified once by the driver circuit from the predetermined value.
17. The system according to claim 15, wherein to modify the read counter value, the driver circuit is configured to increment the read counter value from 0 to 1; and Wherein to set the readout counter value, the driver circuit is configured to set the readout counter value to zero.
18. The system of claim 15, wherein the controller circuit is further configured to determine that the data stored at the result register has been previously output to the controller circuit in response to the read counter value for the cycle matching the predetermined value.
19. The system of claim 15 , wherein the controller circuit is further configured to determine that the data at the result register has not been read for at least one of the multiple cycles of the periodic signal in response to the readout counter value for the cycle being modified multiple times by the driver circuit from the predetermined value.
20. The system according to claim 15, wherein in order to modify the readout counter value in response to the one or more ADCs storing the data to the result register for the period, the logic circuit means is configured to increment the readout counter value from 1 to 2; and Wherein, in order to set the readout counter value, the logic circuit device is configured to set the readout counter value to 0.
