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 switch 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 switch signal is stopped is achieved. Data acquisition and computing efficiency.
Patent Information
- Application Number
- CN202410531252.0
- 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 CN118900130A_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 the 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] The present disclosure describes techniques, devices, and systems for communication (e.g., for communication with a gate driver). For example, instead of stopping all monitoring of a system when a switch signal stops, the techniques described herein can continue monitoring using a timing circuit device. For example, when the switch 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 switch 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 a 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 device configured to generate a timing signal, and a logic circuit device coupled to the one or more data stores. The logic circuit device is configured to drive the switch circuit device using a switch signal, and determine a trigger point of a first cycle of multiple cycles of the switch signal. In response to determining the trigger point, the logic circuit device is configured to control one or more ADCs using the switch signal to store a first data sample (e.g., a conversion result) at the one or more result registers. In response to determining that a set of one or more cycles of the multiple cycles of the switch signal does not include a 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 at 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 of 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 at 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 at 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 the switch circuit device using a switch signal, and determine a trigger point of a first cycle of multiple cycles of the switch signal. In response to determining the trigger point, the logic circuit device is configured to control the one or more ADCs using the switch signal to store a first data sample at the one or more result registers. In response to determining that a set of one or more cycles of the multiple cycles of the switch signal does not include a 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 at 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 a logic circuit device coupled to the one or more data storage libraries. The logic circuit device is configured to: for a cycle in multiple cycles of a periodic signal, cause one or more ADCs to store data to the result register, and modify the readout counter value in response to the one or more ADCs storing data to the result register for the cycle. In response to a read request for data at the result register for the cycle, the logic circuit device is configured to output the data stored by the result register, output the readout counter value for the cycle, and after outputting the readout counter value, set the readout counter value to a predetermined value.
[0009] In some examples, a method includes: for a cycle in a plurality of cycles of a periodic signal, causing one or more ADCs to store data to a result register, and modifying a readout counter value in response to the one or more ADCs storing data to the result register for the cycle. The method also includes: in response to a read request for data at the result register for the cycle, outputting the data stored by the result register, outputting the readout counter value for the cycle, 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 storage libraries configured to store result registers and readout counter values, and includes a logic circuit device coupled to the one or more data storage libraries. The logic circuit device is configured to: for a cycle in multiple cycles of the periodic signal, cause one or more ADCs to store data to the result register, and modify the readout counter value in response to one or more ADCs storing data to the result register for the cycle. In response to a read request for data at the result register for the cycle, the logic circuit device is configured to output the data stored by the result register, output the readout counter value for the cycle, 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 a switching signal and a timing signal, 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 switch 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 a 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] Fig. 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] The present disclosure describes techniques, devices and systems for communication (e.g., communication for gate drivers). The examples of gate drivers are described for illustrative purposes only. The gate driver may include a multi-channel analog-to-digital converter (ADC), which may be triggered in each pulse width modulation (PWM) cycle. Although the PWM cycle is used as an example, the techniques described herein may be applied to other switching signals and may be applied to other periodic signals. For each channel, the trigger point may be independently programmed by software. For example, the gate driver may 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 may determine the trigger point as a fixed delay after PWM ON or a fixed delay after PWM OFF. The gate driver may determine the trigger point as the middle of the PWM pulse.
[0022] According to the technology of the present disclosure, the gate driver can control the ADC using the trigger point of the switching signal (e.g., PWM cycle) and the timing signal output by the timing circuit device. 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 effective (e.g., temperature measurement, battery monitoring). In this way, the gate driver can generate more data samples than a 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 for 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 show whether the conversion is triggered by a regular PWM cycle or a timeout trigger. For example, when the PWM cycle is used to control the ADC to store the data sample at 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 at 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) to show the use of the correct PWM ON / OFF state during the ADC conversion time, thereby allowing the correct triggering and constant PWM ON / OFF state to be checked throughout the conversion period. In this way, the results obtained at the wrong trigger point 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 remains in the ON state when the ADC samples the data. In this example, the gate driver can include a second bit value (e.g., 0) in response to determining that the PWM changes state (e.g., from the ON state to the OFF state) when the ADC samples the data. In some examples, the gate driver gate can include a second bit value (e.g., 0) in response to determining that the PWM is in the OFF state, where the trigger signal is generated for the ON state. In this way, the gate driver itself can identify samples that may be inaccurate, which is less computationally burdensome than a system that relies solely on a receiving circuit device (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 result stream 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 the present disclosure. The 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”). The gate driver circuit 104 may include a logic circuit device 120, a timer circuit device 122, and one or more data stores 124 (referred to herein as “datastores 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 a data sample at one or more result registers using a measurement of the analog signal. For example, the ADC 110 may generate a first data sample using a measurement of one or more of a power supply voltage output by the switching circuit device 106, a voltage at a switching element of the switching circuit device 106, a voltage output by a power supply configured to power the gate driver circuit 104, or a temperature.
[0028] The switch circuit device 106 can use a switch signal to operate one or more switch elements. The switch signal can be output by the gate driver circuit 104. For example, the switch circuit device 106 may include an inverter, and the switch signal may include a PWM signal. The switch circuit device 106 may represent a switch circuit device for controlling, for example, a power converter or an electric motor (e.g., a motor). As used herein, the switch element may 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 may 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 may control the switch circuit device 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 circuit device and the analog circuit device of the gate driver circuit 104 may perform the functions described in one or more of the logic circuit device 120 and the timer circuit device 122. Examples of digital circuit devices may 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 circuit devices, and any combination of such components. The term "processor" or "processing circuit device" may refer to any of the aforementioned logic circuit devices (alone or in combination with other logic circuit devices) or any other equivalent circuit devices. For example, the digital circuit device of the gate driver circuit 104 may perform the functions described in one or more of the logic circuit device 120 and the timer circuit device 122.
[0030] The timer circuit device 122 may generate a timing signal. The timer circuit device 122 may include a timeout counter. For example, when a predetermined amount of time has passed since the counter of the timer circuit device 122 was initiated, the timer circuit device 122 may generate a timing signal indicating a trigger point of the timing signal.
[0031] Logic circuit device 120 can use the switching signal to drive switching circuit device 106. For example, logic circuit device 120 can output a PWM signal to control the switching element of switching circuit device 106. Switching circuit device 106 can control the power converter to adjust, for example, the voltage, current, or power output by the power converter. In some examples, switching circuit device 106 can control the motor, such as the speed or torque of the motor.
[0032] The logic circuit device 120 may determine a trigger point for a first cycle of a plurality of cycles of the switch signal. The trigger point may be independently programmable by software. For example, the logic circuit device 120 may determine the trigger point as the beginning or middle of a phase of the cycle. For example, the logic circuit device 120 may determine a first transition from an off state to an on state for a first cycle of a cycle of the switch signal and add a first time delay. In some cases, the logic circuit device 120 may determine a second transition from an on state to an off state for a first cycle of a cycle of the switch 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 switch 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 switch signal does not include a trigger point, the logic circuit device 120 may control one or more ADCs using the timing signal to store a second data sample at one or more result registers. For example, the logic circuit device 120 may determine the trigger point of the timing signal. In this example, the logic circuit device 120 may cause the ADC 110 to generate a second data sample at a second trigger time corresponding to the trigger point of the timing signal (e.g., occurring at a time similar thereto). For example, the logic circuit device 120 may control the ADC 110 to generate a second data sample using one or more of a measurement of a power supply voltage output by the switch circuit device 106, a voltage at a switch element of the switch circuit device 106, a voltage output by a power supply configured to supply power to the gate driver circuit 104, or a temperature. In this way, the logic circuit device 120 may generate more data samples than a gate driver that relies solely on the trigger point of the switch signal, which may improve the accuracy of the monitored measurement state. For example, when the switch circuit device 106 is not driven by the switch signal, the logic circuit device 120 may generate samples of temperature measurements and battery measurements.
[0035] Figure 2 is a graph showing an example switch signal according to one or more techniques of the present disclosure. Figure 1Let's discuss Figure 2 .exist Figure 2 In the example of , ADC 110 generates measurement samples for a motor. However, in other examples, ADC 110 generates measurement samples for other devices (eg, a power converter).
[0036] Electric motors such as motors can be operated by sinusoidal voltages, which can be generated by digitally controlled PWM waveforms. 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 an IGBT module or a 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 the SiC module of the switching circuit device 106 can be configured to switch between an ON state and an OFF state according to a PWM signal. The motor drive application in an electric vehicle can use a three-phase method with 3 independent half bridges. The three phases obtain 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. The 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 may include several dedicated ADCs 110 to measure the system state 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 may provide PWM-related ADC conversion triggers, but the microcontroller may not be able to correlate the ADC results with a specific PWM cycle. However, one or more ADC conversions need to be triggered in each PWM cycle. In this way, the microcontroller can read and assemble a PWM cycle accurate result stream 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 state with the phase current measured with the external Hall element 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 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 may cause the ADC 110 to sample various measurements based on the period of the switching signal (e.g., PWM period). For example, the gate driver circuit 104 may cause the ADC 110 to sample the measured DC link voltage in each PWM period, which may allow the microcontroller to accurately calculate the injected power (torque) in the motor. For example, the gate driver circuit 104 may cause the ADC 110 to sample the measured DC link voltage in 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 may include, for example, the external temperature of a diode or the supply voltage (e.g., VCC2 / VEE2) of the gate driver circuit 104.
[0041] The gate driver circuit 104 may cause the ADC 110 to sample the drain-source (Vds) measured voltage across the SiC module in each PWM cycle, which may allow the microcontroller to calculate the stress imposed on the module and / or predict and monitor lifetime effects. For example, the microcontroller may use the sampled Vds across the SiC module in 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 may merge the measurement sampled by the ADC accurately at the PWM cycle with the inverter current measurement. The microcontroller may not be able to read results from multiple ADCs in a PWM cycle accurate manner, and merging measurements with the PWM cycle may be a computational burden (e.g., synchronized conversion triggers, synchronized 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 controller circuit 301, detector circuit device 302, trigger circuit device 304, switch state detection circuit device 308, and ADC circuit device 310. One or more of controller circuit 301, trigger circuit device 304, and switch state detection circuit device 308 may be Figure 1 An example of a logic circuit device 120 is shown in FIG. 306. 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 device 302 may determine a trigger point of a first cycle in a cycle of the switching signal. For example, the detector circuit device 302 may receive the switching signal from the controller circuit 301 and may generate a first trigger signal using the switching signal. The detector circuit device 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 device 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 device 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, the detector circuit device 302 can use the switch signal to control the ADC 332 to store the first data sample at the result register 312A-312C (collectively referred to as "result register 312" herein). For example, the first trigger point of the first trigger signal can set the set-reset latch of the trigger circuit device 304. In this example, the setting of the set-reset latch of the trigger circuit device 304 can control the MUX 330 (e.g., select a channel) to cause the MUX 330 to output an input (e.g., input A) representing a measurement value to the ADC 332. In this example, the ADC 332 can output the first data sample (e.g., a digital representation of the measurement value) to the result register 312. As shown, the system 100 can output the first data sample and the second data sample to the controller circuit 301, which can represent a processing circuit device, such as a microcontroller.
[0046] In response to determining that the set of one or more of the cycles of the switching signal does not include the trigger point, the inactive circuit device 306 can control the ADC 332 using the timing signal 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 passed since the counter of the self-timer circuit device was started, the inactive circuit device 306 can generate a timing signal indicating a trigger point of the timing signal. For example, when a predetermined amount of time has passed since the counter of the timeout counter was started, the inactive circuit device 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 the set-reset latch of the trigger circuit device 304. The setting of the set-reset latch of the trigger circuit device 304 can control the MUX 330 to output an input (e.g., input A) representing the measurement value 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 the trigger circuit device 304 to cause the 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 cause the ADC 332 to generate more data samples than a system that relies only on the trigger points of the switching signal (e.g., the trigger points generated by the detector circuit device 302), which can improve the accuracy of the state of the system being monitored using the data samples. For example, the inactive circuit device 306 can generate ADC conversion results of battery voltage, temperature, or other measurements even if the 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 a result register 312A to include a state bit timing trigger "TIMTRIG" having a first value (e.g., 0) to show a trigger 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 driving), the trigger circuit device 304 can generate a result register 312B to include a state bit timing trigger "TIMTRIG" having a second value (e.g., 1) to show a trigger based on the timer.
[0051] The switch state detection circuit device 308 can generate a value indicating whether the switch signal indicates only one switch state when the trigger circuit device causes one or more ADCs to sample data for one or more parameters. For example, the switch state detection circuit device 308 can generate a status bit "PWMFAULT" that indicates whether the analog-to-digital conversion performed by the ADC 332 a) occurs at an incorrect PWM state and / or b) occurs at a PWM state that changes during the conversion. For example, the switch state detection circuit device 308 can generate a first value (e.g., 0 or 1) that indicates whether the switch signal indicates only one switch state when the ADC 332 samples the first sample data. The switch state can include a conductive state (e.g., PWM ON) or a disconnected state (e.g., PWM OFF). Similarly, the switch state detection circuit device 308 can generate a second value that indicates whether the switch signal indicates only one switch state when the one or more ADCs sample the 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 4. System 400 includes circuit 404 and one or more ADCs 410 (also referred to herein as "ADC 410"). System 400 may optionally include controller circuit 401. ADC 410 may be configured to convert analog signals into digital values. For example, ADC 410 may generate data samples at one or more result registers 412 of one or more data repositories 422 using measurements of analog signals.
[0053] Circuit 404 may control ADC 410. Circuit 404 may include a combination of one or more analog components and one or more digital components. Circuit 404 may include logic circuitry 420, one or more data storage repositories 422 (also referred to herein as “data storage repositories 422”). Data storage repositories 422 may store one or more result registers 412 (also referred to herein as “result registers 412”) and readout counter values 414.
[0054] For a cycle in the plurality of cycles of the periodic signal, the logic circuit device 420 may cause the ADC 410 to store data in the result register 412. For example, the logic circuit device 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, the logic circuit device 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. The logic circuit device 420 may use the PWM signal to drive a switching circuit device, such as an inverter.
[0055] The logic circuit device 420 may modify the read counter value 414 in response to the ADC 410 storing data in the result register 412 for the cycle. For example, the logic circuit device 420 may increment the read counter value. 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 by the result register 412, output the read counter value 414 for the cycle, and after the output of the read counter value 414, set the read counter value 414 to a predetermined value. The predetermined value may be zero.
[0056] Logic circuit device 420 may output the data stored by result register 412 and read 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 values in accordance with one or more techniques of this disclosure. Figure 5 For illustrative purposes only Figure 1-Figure 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 read 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 of FIG. 5 , when the read counter value 506 is equal to zero, the circuit 404, or more specifically, for example, the logic circuit device 420 and / or the controller circuit 401, can determine that no new conversion results are available and / or a double read has occurred. For example, the logic circuit device 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 the read counter value 506 is equal to 1, the circuit 404, or more specifically, for example, the logic circuit device 420 and / or the controller circuit 401, can determine that a new conversion result is available. For example, the logic circuit device 420 can output the conversion result 504B for use by the controller circuit 401 in response to determining that the read counter value 506 is equal to 1 when the read request 508B is received.
[0060] When the read counter value 506 is equal to 2, the circuit 404, or more specifically, for example, the logic circuit device 420 and / or the controller circuit 401, can determine that a conversion result is missed and not read. For example, when receiving the read request 508F, the logic circuit device 420 can 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, for example, the logic circuit device 420 and / or the controller circuit 401 can interpolate the missed conversion results.
[0061] When the read counter value 506 is equal to 3, the circuit 404, or more specifically, for example, 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, where the read counter value 506 is set to equal 3. In some examples, the circuit 404, or more specifically, for example, 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] The circuit 404, or more specifically, the logic circuit device 420, can asynchronously update the ADC conversion results to the controller circuit 401 (e.g., a microcontroller). For example, the circuit 404 can output the conversion results 504 to the controller circuit 401 using a serial bus. However, the controller circuit 401 can use the readout counter value 506 to reassemble a cycle-accurate result chain (e.g., one result per PWM cycle). In this way, the system 400 can avoid comparing the timestamps between two consecutive samples to reduce the computational workload of the controller circuit 401, for example. Instead, each ADC result value itself contains an independent valid flag.
[0065] For example, the circuit 404, or more specifically, the logic circuit device 420, may cause the ADC 410 to store data to the result register 412 of the data storage 422 for one cycle of the plurality of cycles of the periodic signal 502. For example, the logic circuit device 420 may cause the ADC 410 to generate the conversion result 504 at each of the cycles N, N+1, N+2, N+3, and N+4 of the periodic signal 502. The logic circuit device 420 may modify the readout counter value 506 in response to the ADC 410 storing the conversion result 504 to the result register 412 for the cycle.
[0066] For example, the logic circuit device 420 may set the read counter value 506 to a predetermined value (e.g., 0) in response to a read request 508A for a conversion result 504A at the result register 412 for a previous cycle (e.g., N). In this example, the logic circuit device 420 may modify the read counter value 506 in response to the ADC 410 storing the conversion result 504 to the result register 412 for the previous cycle (e.g., N). For example, the logic circuit device 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 (e.g., 1) for cycle (N+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 represents cycle 'N+1' of the cycle signal 502 to illustrate an example situation when just one new conversion result is available. In the previous 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 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 read counter value 506 (e.g., 1) for cycle (N+2), and after the output of the read counter value 506, set the read counter value 506 to a predetermined value (e.g., 0).
[0069] Circuit 404, or more specifically, for example, logic circuit device 420, may receive a subsequent read request 508D for data at result register 412 for cycle (N+2) during cycle (N+2). In response to subsequent read request 508D for 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 (N+2) in response to subsequent read request 508D for 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 also refers 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 after the output of the read counter value 506, set the read counter value 506 to a predetermined value (e.g., 0).
[0071] However, in this example, the circuit 404, or more specifically, for example, the logic circuit device 420, may modify the read counter value 506 from the predetermined value to the first modified value (e.g., 1) in response to the ADC 410 storing data to the result register 412 for the second cycle (e.g., N+3). In this example, the logic circuit device 420 may modify the read counter value 506 from the first modified value to the second modified value (e.g., 2) in response to the ADC 410 storing data to 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 the second read request for the data at the result register 412 for the third cycle, the logic circuit device 420 may output the data stored by the result register 412 for the third cycle, output the 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 the output of the 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 , 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 at a result register channel X (602). In this example, circuit 404, or more specifically, logic circuit device 420, may increment a read counter value 614 (604) in response to ADC 410 writing the conversion result 612. 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 read counter value 614 to zero (608).
[0074] The logic circuit device 420 can read the read counter value 614 and store it in the data storage library 422. As shown, the read counter value 614 can be saturated at a maximum value (e.g., 7). However, when the logic circuit device 420 starts incrementing from the maximum value, there can be no overflow. In this way, the conversion result 612 can be retained. The controller circuit 401 can access both the conversion result 612 and the read counter value 614 to reassemble the precise 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 circuit 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, may drive a switching circuit device using a switching signal (702). The switching circuit device may 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, for example, the logic circuit device 120, can control the ADC 110 using the switch signal to store the first data sample at the result register 112 (706). 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 the trigger point of the switch signal. For example, the logic circuit device 120 can 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 switch circuit device, a voltage at a switch element of the switch 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 control the ADC 110 using the timing signal 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 a second data sample at a second trigger time corresponding to the trigger point of the timing signal. For example, when a predetermined amount of time has passed since the counter of the timer circuit device 122 was started, the timer circuit device 122 can indicate the trigger point of the timing signal. 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 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.
[0080] The logic circuit device 120 may output the first data sample and the second data sample. For example, the logic circuit device 120 may output the first data sample and the second data sample to the controller circuit 301. In this example, the logic circuit device 120 may receive a switch signal from the controller circuit 301. In some examples, the switch signal is generated by the controller circuit 301 based on the first data sample and the second data sample. For example, the 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) according to the actual inverter state (e.g., temperature, battery voltage, motor load current, etc.).
[0081] In some examples, the gate driver circuit 104, or more specifically, for example, the logic circuit device 120, can indicate whether the sample is generated using the switching signal or the timing signal. For example, the logic circuit device 120 can generate a first value and store the first value at one or more result registers 112 of the data storage library 124, the first value indicating that the first data sample was generated when the logic circuit device 120 controlled the one or more ADCs 110 using the switching signal. In this example, the 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 the logic circuit device 120 controlled the one or more ADCs 110 using the timing signal.
[0082] The gate driver circuit 104, or more specifically, the logic circuit device 120, may indicate whether the sample is generated in a consistent switch state. For example, the logic circuit device 120 may generate a first value indicating whether the switch signal indicates only one switch state when the one or more ADCs sample 110 the first sample data. The switch state may include an on state or an off state. In this example, the logic circuit device 120 may generate a second value indicating whether the switch signal indicates only one switch state when the one or more ADCs sample 110 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 shown, 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 cycle in a plurality of cycles of the periodic signal. For example, logic circuit device 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. 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. For example, the logic circuit device 420 can determine a second transition of the periodic signal from the on state to the off state, and add a second time delay, and cause the ADC 410 to generate the conversion result 504 during the second transition. In some examples, the periodic signal can be a PWM signal. For example, the circuit 404 can be configured to drive a switching circuit device (e.g., an inverter) using a PWM signal. However, in other examples, the periodic signal can be different.
[0085] Logic circuit device 420 may modify read counter value 414 (804) in response to ADC 410 storing data for the cycle to result register 412. For example, logic circuit device 420 may modify read counter value 506 in response to ADC 410 storing conversion result 504B for cycle (e.g., N+1) to result register 412. For example, logic circuit device 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 by the result register 412, output the read counter value 414 for the cycle, and set the read counter value 414 to a predetermined value (806) after the output of the read counter value 414. 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 by the result register 412, output the read counter value 506 (e.g., 1) for cycle (N+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 foregoing 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 data at the result register 412 for cycle (N+2) during the cycle (e.g., N+2). In response to the subsequent read request 508D for 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 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 also refers 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 to 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 the predetermined value to the 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 the second modified value (e.g., 2) in response to the ADC 410 storing data to 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 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] Fig. 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. Fig. 9 For example purposes only Figure 4 The circuit shown is discussed in terms of the circuit shown, although other devices or circuits may perform Fig. 9 technology.
[0090] A device (e.g., controller circuit 401) may output a periodic signal (902). In some examples, the periodic signal may be a PWM signal. For example, circuit 404 may be configured to drive a switching circuit device (e.g., an inverter) using the PWM signal. However, in other examples, the periodic signal may be different.
[0091] The controller circuit 401 may output a read request for the data at the result register 412 for a 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 at 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] The controller circuit 401 may determine, in response to the read counter value 414 for the cycle matching a predetermined value, that the data stored at the result register 412 has been previously output to the controller circuit 401. For example, the controller circuit 401 may determine, in response to the read counter value 506 for cycle N+2 being equal to zero, that the conversion result 504C has been previously output to the controller circuit 401 to output.
[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 the cycle being modified multiple times by the circuit 404 from a predetermined value. 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 a switching circuit device using a switching signal; determine a trigger point of a first cycle of multiple 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 one or more result registers; and in response to determining that a set of one or more cycles of the multiple cycles of the switching signal does not include the trigger point, control one or more ADCs using the timing signal to store a second data sample at 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 circuit device 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, in order to determine a trigger point of a switching signal, the logic circuit device is configured to determine a first transition from an off state to an on state in a first cycle among multiple cycles of the switching signal and add a first time delay; or wherein, in order to determine the trigger point of the switching signal, the logic circuit device is configured to determine a second transition from an on state to an 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 device 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 device was started.
[0101] Clause A6. The gate driver of clauses A1 to A5, wherein the logic circuit device 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 circuit device is further configured to receive the switch signal from the controller circuit; and wherein the logic circuit device 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 one or more ADCs to generate a first data sample using measurement results 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 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 circuit device comprises an inverter; and wherein the switching signal comprises a PWM signal.
[0106] Item A11. A gate driver according to items A1 to A10, wherein the logic circuit device is also 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 is generated when the logic circuit device uses the switching signal to control the one or more ADCs; and wherein the logic circuit device is also configured to generate a second value and store the second value at one or more result registers, the second value indicating that the second data sample is generated when the logic circuit device uses the timing signal to control the one or more ADCs.
[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 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 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 also includes a switch state detection circuit device, and the switch state detection circuit device is configured to generate a value indicating whether the switch signal indicates only one switch state when the trigger circuit device causes one or more ADCs to sample data for 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 among multiple 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 storage repositories; and in response to determining that a set of one or more cycles among multiple 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 switch 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 switch signal.
[0112] Clause A17. A method according to clauses A15 to A16, wherein using a timing signal to control one or more ADCs 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 multiple 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 multiple 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 according to Item A18 further includes: a controller circuit, wherein the logic circuit device is also 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 switch 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: for a cycle in multiple cycles of a periodic signal, cause one or more ADCs to store data to the result register; in response to one or more ADCs storing data to the result register for the cycle, modify the read counter value; and in response to a read request for data at the result register for the cycle, output the data stored by the result register, 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 circuit device 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 multiple cycles of the periodic signal, and the read request is a current read request, and wherein the logic circuit device is also 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] Item B6. A circuit according to any one of items 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 a 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 also 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 data at the result register during a third current cycle; and in response to the second read request for 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 in order 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 in order 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 read-out 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 into a result register, the logic circuit device is configured to: determine a first transition of a 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 into 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: for a cycle in multiple cycles of a periodic signal, causing one or more ADCs to store data in a result register; in response to one or more ADCs storing data in the result register for the cycle, modifying a read counter value; and in response to a read request for data at the result register for the cycle, outputting the data stored by the result register, outputting the read counter value for the cycle, and after outputting the read counter value, setting the read counter value to a predetermined 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: for a cycle in a plurality of cycles of the periodic signal, cause one or more analog-to-digital converters (ADCs) to store data to a result register; in response to one or more ADCs storing data to the result register for a cycle, modify the read counter value; and in response to a read request for data at the result register for a cycle, output the data stored by the result register, 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.
[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 one 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 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 read-out 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 cycle of the multiple cycles of the periodic signal has not been read.
[0135] Item B20. A system according to Item B15 or B19, wherein in order 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 in order 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 described 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, a computer-readable medium may generally correspond to (1) a non-transient 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 the present disclosure. A computer program product may include a computer-readable medium.
[0137] The techniques of the present disclosure may 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 the present 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 may 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 gate driver circuit, comprising: one or more data storage repositories configured to store one or more result registers; a timer circuit arrangement configured to generate a timing signal; as well as A logic circuit device is coupled to the one or more data storage libraries and is configured to: using a switching signal to drive a switching circuit device; 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 analog-to-digital converters (ADCs) using the switch signal to store a first data sample at the one or more result registers; as well as In response to determining that a set of one or more cycles of the plurality of cycles of the switch signal does not include a trigger point, controlling the one or more ADCs using the timing signal to store a second data sample at the one or more result registers.
2. The gate driver circuit of claim 1 , wherein in order to control the one or more ADCs using the switching signal, the logic circuit device is configured to cause the one or more ADCs to generate the first data sample at a first trigger time corresponding to the trigger point of the switching signal.
3. The gate driver circuit according to claim 1, wherein in order to determine the trigger point of the switch signal, the logic circuit device is configured to: determine a first transition from an off state to an on state of the first cycle of the plurality of cycles of the switch signal and add a first time delay; or To determine the trigger point of the switch signal, the logic circuit device is configured to: determine a second transition from the on state to the off state of the first cycle of the plurality of cycles of the switch signal and add a second time delay.
4. The gate driver circuit of claim 1 , wherein to control the one or more ADCs using the timing signal, the logic circuit device is configured to: determining a trigger point of the timing signal; and The one or more ADCs are caused to generate the second data samples at a second trigger time corresponding to the trigger point of the timing signal.
5. The gate driver circuit of claim 4, wherein to generate the timing signal, the timer circuit device is configured to indicate the trigger point of the timing signal when a predetermined amount of time has passed since a counter of the timer circuit device was started. 6 . The gate driver circuit of claim 1 , wherein the logic circuit device is further configured to output the first data sample and the second data sample.
7. The gate driver circuit according to claim 6, wherein the logic circuit device is further configured to receive the switch signal from a controller circuit; and Wherein the logic circuit arrangement is configured to output the first data sample and the second data sample to the controller circuit. 8 . The gate driver of claim 7 , wherein the switching signal is generated by the controller circuit based on the first data sample and the second data sample.
9. The gate driver circuit of claim 1 , wherein the logic circuit device is further configured to: causing the one or more ADCs to generate the first data samples using measurements of one or more of a supply voltage output by the switching circuitry, a voltage at a switching element of the switching circuitry, a voltage output by a power supply configured to power the gate driver circuit, or a temperature; and The one or more ADCs are caused to generate the second data samples using a second measurement of one or more of the supply voltage output by the switching circuit arrangement, the voltage output by the power supply configured to power the gate driver circuit, or the temperature.
10. The gate driver circuit according to claim 1, wherein the switching circuit arrangement comprises an inverter; and The switching signal comprises a pulse width modulation (PWM) signal.
11. The gate driver circuit according to claim 1, wherein the logic circuit arrangement is further configured to generate a first value and store the first value at the one or more result registers, the first value indicating that the first data sample was generated when the logic circuit arrangement controlled the one or more ADCs using the switch signal; and The logic circuit arrangement 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 arrangement controlled the one or more ADCs using the timing signal.
12. The gate driver circuit according to claim 1, wherein, in order to generate the 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, in order to generate the 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.
13. The gate driver circuit of claim 1 , wherein the logic circuit device comprises: a detector circuit arrangement configured to generate a first trigger signal using the switch signal; an inactive circuit device configured to generate a second trigger signal using the timing signal; as well as A trigger circuit arrangement is configured to cause the 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.
14. The gate driver circuit of claim 13 , wherein the logic circuitry further comprises a switch state detection circuitry configured to generate a value indicating whether the switch signal indicates only one switch state when the trigger circuitry causes the one or more ADCs to sample data for the one or more parameters.
15. A method comprising: using a switching signal to drive a switching circuit device; 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 analog-to-digital converters (ADCs) using the switch signal to store a first data sample at one or more result registers of one or more data storage repositories; as well as In response to determining that a set of one or more cycles of the plurality of cycles of the switch signal does not include a trigger point, controlling the one or more ADCs using the timing signal to store a second data sample at the one or more result registers.
16. The method of claim 15, wherein using the switch signal to control the one or more ADCs comprises: The one or more ADCs are caused to generate the first data sample at a first trigger time corresponding to the trigger point of the switch signal.
17. The method of claim 15, wherein controlling the one or more ADCs using the timing signal comprises: Determining a trigger point of the timing signal; as well as The one or more ADCs are caused to generate the second data samples at a second trigger time corresponding to the trigger point of the timing signal.
18. A system comprising: One or more analog-to-digital converters ADC; as well as Gate driver circuit, including: one or more data storage repositories configured to store one or more result registers; a timer circuit arrangement configured to generate a timing signal; and A logic circuit device is coupled to the one or more data storage libraries and is configured to: using a switching signal to drive a switching circuit device; 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 the one or more ADCs using the switch 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 switch signal does not include a trigger point, controlling the one or more ADCs using the timing signal to store a second data sample at the one or more result registers.
19. The system of claim 18, further comprising: Controller circuit, wherein the logic circuit device is further configured to receive the switch signal from the controller circuit; and 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.
20. The system of claim 19, wherein the controller circuit is configured to generate the switch signal based on the first data sample and the second data sample.
