Wireless charging pulse generator

By designing a controller with multiple PWM modules and feedback loops, the problem of insufficient adaptability of PWM signals in power converters is solved, realizing flexible adjustment and efficient adaptability of power output.

CN114389377BActive Publication Date: 2026-11-24NXP USA INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111224242.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-10-20
Filing Date
2021-10-20
Publication Date
2026-11-24
Estimated Expiration
2041-10-20

Smart Images

  • Figure CN114389377B_ABST
    Figure CN114389377B_ABST
Patent Text Reader

Abstract

A controller for generating pulse sequences is disclosed. The controller includes multiple pulse width modulation (PWM) modules. Each PWM module is configured to generate a first pulse sequence and a second pulse sequence, each having a width modulated by PWM values ​​stored in a PWM register of the PWM module. Each PWM module includes two outputs. The first pulse sequence is output on a first output, and the second pulse sequence is output on a second output. The controller also includes a memory having multiple memory tables and multiple direct memory access (DMA) modules. Each memory table is configured to store PWM values ​​to be written to the PWM register, and each DMA module is coupled to a corresponding PWM module among the multiple PWM modules and to a corresponding memory table among the multiple memory tables, and is configured to write PWM values ​​from the memory table to the PWM register in response to DMA triggering. The controller further includes a core, which is coupled to the memory tables and configured to write PWM values ​​to the multiple memory tables.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This article relates to the field of wireless charging pulse generators. Background Technology

[0002] Pulse Width Modulation (PWM) signals are used as inputs to control the output of a power converter. A PWM signal has a sequence of pulses, typically with a consistent amplitude and a fixed frequency. The width of each pulse is modulated to change the duty cycle, or pulse duration. When this modulated digital output is applied to the power converter, an analog waveform is produced. The power converter output has been used to power motors, charge batteries, drive lighting sources, and for many other types of loads. The power converter and its connected power supply can be designed to suit the requirements of different loads, with the PWM signal acting only as a low-power digital control input. When the PWM signal has a higher duty cycle, the power converter then produces a higher power output. By increasing or decreasing the pulse width, the generated power amplitude can be increased or decreased to suit different loads. Summary of the Invention

[0003] This summary is provided to present, in a simplified form, the concept choices further described below in the detailed description. This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to limit the scope of the claimed subject matter.

[0004] In one embodiment, a controller for generating pulse sequences is disclosed. The controller includes a plurality of pulse width modulation (PWM) modules. Each PWM module includes two outputs. Each PWM module is configured to generate a first pulse sequence and a second pulse sequence, each pulse in the two pulse sequences having a width modulated by a PWM value stored in a PWM register of the PWM module. The first pulse sequence is output on a first output, and the second pulse sequence is output on a second output. The controller also includes a memory having a plurality of memory tables and a plurality of direct memory access (DMA) modules. Each memory table is configured to store PWM values ​​to be written to the PWM register, and each DMA module is coupled to a corresponding PWM module among the plurality of PWM modules and to a corresponding memory table among the plurality of memory tables and is configured to write PWM values ​​from the memory table to the PWM register in response to a DMA trigger. The controller further includes a core coupled to the plurality of memory tables and configured to write the PWM values ​​to the plurality of memory tables. In some examples, the controller further includes a feedback loop for each of the plurality of memory tables and is configured to provide an adjustment value for the PWM values. The feedback loop includes an analog-to-digital converter (ADC) for converting analog signals into digital data and a buffer for storing the digital data.

[0005] The PWM module is configured to send a DMA trigger to the DMA module after each pulse in the pulse sequence is generated. The memory table has a plurality of sequentially arranged PWM values, and the DMA module is configured to write the PWM values ​​from the memory table into the PWM register sequentially in response to each DMA trigger. The PWM values ​​are adjusted using the adjustment value. The DMA module is configured to write the first PWM value in the sequence after writing the last PWM value in the sequence. The PWM module is configured to generate at least two distinct pulse sequences to drive two inputs of the power converter. The PWM module generates two pulse sequences using the same register, which includes values ​​to be propagated to the two outputs of the PWM module. The first pulse sequence is converted to the positive side of the analog wave output of the power converter, and the second pulse sequence is converted to the negative side of the analog wave output of the power converter. In some examples, the controller further includes an input signal interface coupled to the core, the input signal interface being configured to receive an input signal, and the core being configured to modify the PWM values ​​in the PWM value table in response to the input signal and write the modified PWM values ​​into the memory.

[0006] In some examples, the core is configured to modify the PWM value by selecting a stored set of different PWM values ​​in response to the input signal. The core is configured to modify the PWM value by incrementing and decrementing it in response to the input signal. The input signal is a closed feedback loop from the power output of the power converter.

[0007] In some cases, the input signal can also be a power output command from an external component.

[0008] In another embodiment, a charging system is disclosed. The charging system includes: a resonant circuit configured to apply a resonant field to charge a device; and a power converter configured to receive DC power and a first pulse sequence and a second pulse sequence, and to generate an AC power output to drive the resonant circuit, wherein the first pulse sequence is converted to the positive side of the AC power output, and the second pulse sequence is converted to the negative side of the AC power output. The charging system further includes: a pulse width modulation (PWM) module configured to generate the pulse sequences, each having a width modulated by PWM values ​​stored in a register of the PWM module; and a memory having a table configured to write PWM values ​​into the PWM module register. The charging system further includes: a direct memory access (DMA) module configured to write PWM values ​​from the table into the PWM register in response to a DMA trigger from the PWM module; and a processing core configured to write the PWM values ​​into the table. A feedback loop is also included, coupled to the output of the power converter and coupled to the processing core.

[0009] In some examples, the processing core is configured to modify the PWM value in the memory table in response to an input signal from the feedback loop, and write the modified PWM value to a second memory table different from the first memory table. The feedback loop includes an analog-to-digital converter (ADC) for converting analog signals into digital data and a buffer for storing the digital data. The processing core is configured to use the digital data to generate an adjustment value for the PWM value and store the adjustment value in the second memory table in the memory. A second DMA module is coupled to the second memory table and the buffer. The second DMA module is configured to access data from both the second memory table and the buffer. The processing core is configured to modify the PWM value stored in the table according to the adjustment value. The PWM module is configured to receive the adjustment value from the second memory table and generate the pulse sequence using the PWM value and the adjustment value. Attached Figure Description

[0010] Figure 1 Examples of power generation systems and loads are described.

[0011] Figure 2 Alternative examples of power generation systems and loads for wireless charging are described.

[0012] Figure 3 Alternative examples of power generation systems and loads are described.

[0013] Figure 4 It describes other alternative examples of power generation systems and loads.

[0014] Figure 5 An example of a component within a controller used to generate a PWM pulse sequence is depicted.

[0015] Figure 6 The components and operations in the controller used to generate multiple PWM pulse sequences are shown.

[0016] Figure 7 The components and operations in the controller used to generate a PWM pulse sequence based on output feedback are shown.

[0017] Figure 8 It shows the result of Figure 6 The system generates an example PWM sequence.

[0018] Figure 9 This is shown as being used by the power converter module. Figure 8 An example of a filtered power signal generated from a sequence.

[0019] Figure 10 This is a flowchart illustrating an example of generating a PWM pulse sequence.

[0020] Figure 11 This is a flowchart illustrating an example of generating a PWM pulse sequence based on a feedback loop.

[0021] Figure 12 A table showing the PWM values ​​is provided.

[0022] Figure 13 The sampled waveform generated using PWM values ​​is shown.

[0023] Figure 14 This diagram illustrates the process of retrieving multiple values ​​from memory in a single DMA request.

[0024] Figure 15 A coordinate graph is shown to illustrate the pulse widths at the two outputs of the PWM module. Detailed Implementation

[0025] It will be readily understood that the components of the embodiments generally described herein and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the more detailed descriptions of the various embodiments illustrated below are not intended to limit the scope of this disclosure, but merely to illustrate various embodiments. While various aspects of the embodiments are presented in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.

[0026] The invention may be implemented in other specific forms without departing from the spirit or essential characteristics thereof. The described embodiments are to be regarded in all respects as illustrative rather than restrictive. Therefore, the scope of the invention is indicated by the appended claims, and not by the specific embodiments described therein. All changes within the equivalent meaning and scope of the claims are covered by the scope of the claims.

[0027] References to features, advantages, or similar language throughout this specification do not imply that all features and advantages achievable through the invention should be included in or in any single embodiment of the invention. In fact, language relating to features and advantages should be understood to mean that a specific feature, advantage, or characteristic described in connection with an embodiment is included in at least one embodiment of the invention. Therefore, discussions of features and advantages, as well as similar language throughout this specification, may refer to, but do not necessarily refer to the same embodiment.

[0028] Furthermore, the features, advantages, and characteristics described herein can be combined in one or more embodiments in any suitable manner. In view of the description herein, those skilled in the art will recognize that the invention can be practiced without one or more of the specific features or advantages of a particular embodiment. In other instances, additional features and advantages that may not be present in all embodiments of the invention may be identified in certain embodiments.

[0029] Throughout this specification, references to "an embodiment," "embodiment," or similar language mean that a particular feature, structure, or characteristic described in connection with the indicated embodiment is included in at least one embodiment of the invention. Therefore, the phrases "in one embodiment," "in an embodiment," and similar language throughout this specification may, but do not necessarily, refer to the same embodiment.

[0030] Figure 1An example of a power generation system 102 and a load 120 is depicted. The power generation system provides power to drive the load 120. The power generation system includes a controller 104 coupled to a power converter 108. The power converter 108 is coupled to a DC (direct current) power supply 110 and to the load 120. The controller 104 sends a pulse width modulation (PWM) signal 106 to the power converter 108 to control the power output 114 of the power converter 108. The DC power supply 110 provides power 112 to the power converter 108. The power converter applies the PWM signal 106 from the controller 104 to the received power 112 to produce a modulated analog power output 114. In some embodiments, the power output is an AC (alternating current) waveform and is applied to the load 120 through an optional filter 116 to smooth the analog power output. The resulting filtered power 118 from the power generation system 102 is applied to drive the load 120.

[0031] The power supply 110 and power converter 108 can be designed for any specific load, including inductive battery chargers, any kind of electric motor, audio voice coil, lighting systems, digital circuit systems and electronic components, and power distribution systems. In some examples, since the digital PWM signal is used only as a control input, it can be applied to multiple power converters simultaneously, and the signal can be inverted to feed multiple inputs of a single power converter.

[0032] The power converter 108 may take different forms depending on the nature of the load 120, such as a Class D converter, a push-pull converter, a half-bridge converter, a full-bridge converter, or another form. The PWM signal 106 output of the controller 104 is configured to provide an output suitable for a particular type of converter.

[0033] Figure 2 Another example of a power generation system 202 and a load configured for wireless charging is depicted. In some embodiments, the DC / AC converter load 220 includes a wireless power transmission system 230, wherein an optional resonant circuit 232 is coupled to a secondary-side load 234 via a primary coil 236, and the secondary-side load 234 is coupled to the primary coil of the resonant circuit 232 via a secondary coil 238. The resonant circuit drives power through a coil whose characteristics are matched to the load. In some embodiments, the secondary-side load 234 represents a battery, and the resonant circuit represents a wireless charging pad or plate. This configuration is suitable for charging small batteries for wireless communication devices, large batteries for tools, and even larger batteries for vehicles. A variety of different charging scenarios can be adapted by appropriately modifying the power supply 210 and the power converter 208.

[0034] In this example, controller 204 is connected to power converter 208 to provide PWM signal 206 to power converter 208. Power converter 208 is configured to drive a resonant circuit and can generate an AC output; for example, a full-bridge or half-bridge power converter generates power output 214 by modulating input power 212 from a connected DC power supply 210. The modulated AC power output 214 from the power converter can optionally be processed by filter 216 to generate a final filtered AC power supply 218 to load 220.

[0035] In some embodiments, a sensor 222, such as an inductor loop current sensor, is electrically coupled to a filtered AC power supply 218. An output 224 from the sensor is provided to a controller 204 to allow the controller to adjust a PWM signal 206 in response to the sensed current. In this case, the sensor output 224, as a closed-loop feedback signal, can be used to adjust the form of the PWM signal. In some embodiments, the battery load will present varying amounts of resistance as the battery charges. By measuring the current through the sensor, the controller can be configured to reduce the supplied current as the battery becomes more fully charged. This can be achieved by decreasing the PWM value in a stored set of PWM values ​​as the resistance increases. Similarly, if the resistance decreases, the core may increase the PWM value. By increasing and decreasing the PWM value, appropriate power is supplied to the AC / DC converter load 220.

[0036] In other embodiments, controller 204 is connected to different or additional sensor inputs or to external components (not shown), such as actuators or other control devices, and is programmed to determine an appropriate PWM signal based on said inputs. In some embodiments, controller 104 receives input sensor signals from load 120, which are applied by the controller to adjust the duty cycle of the PWM signal. In some embodiments, the controller receives commands or control signals from external components to determine the nature of the power output to be generated. In some embodiments, the command is an on or off signal, and the controller provides a constant output PWM signal. The command may optionally further indicate a specific power output level to be applied. The power output 214 applied to the load may be constant or variable, as determined by the PWM signal 206 from controller 204. In some embodiments, the controller includes a host (not shown), which may include, for example, software applications stored in the controller's memory and executed by the controller's processing circuitry. The controller may be of a type known in the art, but is uniquely configured for the described embodiment. The controller may be implemented as, for example, a digital signal processor (DSP), a digital signal controller (DSC), and / or a central processing unit (CPU).

[0037] Figure 3Alternative implementations of the power generation system 402 and load 420 are described. In this embodiment, the digital signal controller (DSC) is configured to generate four PWM signals 424, for example... Figure 3 The Q1, Q2, Q3, and Q4 signals are applied. A PWM signal is applied to a MOSFET-based driver 422 coupled to the DSC. The controller's internal circuitry is primarily optimized for minimum power and current consumption to reduce the power consumption of the digital circuitry. The MOSFET driver 422 can be configured as a line stage or power amplifier to generate a stable high-current signal 426 to the connected power converter 408. An external current source (not shown) connected to the MOSFET driver may be present to supply current.

[0038] The power converter receives DC power 412 from the connected source 410 and applies a PWM drive signal 426 to the four inputs of the full-bridge power converter 408 to generate a coarse sine wave or other output power signal 414. This signal is filtered in an inductor-capacitor type power filter 416 or any other type of filter between the power converter 408 and the load 420 to provide a filtered power output 418 to the load 420. The DSC can modify the PWM based on any specific internal programming or external command or sensor input, or a combination of these types of control inputs.

[0039] Figure 4 An example of components within a controller used to generate the PWM signal described herein is depicted. Controller 504 includes an Input Signal Processing (ISP) module 510 connected to the controller's input ports. A core is coupled to the ISP on one side and to a memory 514 on the other. The core can be a processing core, a controller core, a DSP core, or any other type of core. The memory is coupled to a Direct Memory Access (DMA) module 516. The DMA module is coupled to a PWM module 518, and the PWM module is coupled to a Peripheral Interface (PHE) 520. In this and other diagrams, more connections may exist than those shown. For example, the controller may be coupled to the DMA and PWM modules for a variety of different purposes. Furthermore, for simplicity, the controller may have additional components not shown.

[0040] Controller 504 receives input signal 506 at its ISP module 510. ISP module 510 is the input signal interface, which performs signal conversion, regulation, bus protocol, and any other necessary functions on any input signal received at the interface. These functions depend on the nature of the input signal 506. In some embodiments, ISP 510 uses an analog-to-digital converter and comparator or sample-and-hold circuitry to provide input signal conversion. ISP 510 may receive multiple input signals of different types, depending on the implementation including closed-loop feedback regulation. Sensor or command inputs from ISP 510 are provided to processing core 512, which analyzes the input and determines the PWM signal to be generated. While the PWM signal pulses can be generated at any suitable rate from one to millions of Hz, the pulses are generated by DMA module 516, PWM module 518, and PHE 520. These blocks operate independently of the core to continuously generate pulses without any invention by processing core 512 until a change in the output waveform is required. After the pulse generation process begins, processing core 512 of controller 504 may perform a number of other functions between executing the PWM generation functions mentioned herein.

[0041] Processing core 512 selects a PWM sequence based on the ISP input and applies the selection to a RAM (Random Access Memory) module or memory module 514 to select a set of values ​​corresponding to the selected PWM sequence. In some embodiments, RAM 514 stores the PWM values ​​as an array of registers in the form of a table, for example, a sequentially arranged set of PWM values. Although memory 514 is referred to as RAM, it can take any suitable form, including flash memory, SRAM (Static Random Access Memory), magnetic memory, or any other suitable type. Core 512 is responsible for processing input sensor data and managing and maintaining the table of PWM values ​​stored in RAM 514. In some embodiments, core 512 maintains multiple tables of different PWM values ​​to generate different PWM signals in response to input signal 506. In some embodiments, core 512 modifies the PWM values ​​in the table stored in RAM 514 based on the sensor input signal 506. In other words, the core generates new or modified PWM values ​​and writes these new or modified PWM values ​​into registers in the table of RAM. When the sensor input signal 506 indicates to the core 512 that the PWM value has not changed, the core 512 may not then interact with the RAM 514, and the operation continues unchanged. As mentioned above, the input signal 506 can be a measurement from the sensor or a command from an external component (not shown).

[0042] The stored PWM values ​​are read from a table in RAM 514 by DMA module 516, which independently controls the core 512 to provide the selected values ​​to PWM module 518. DMA module 516 allows PWM module 518 to directly access the PWM values ​​stored in the appropriate table in RAM 514. The PWM module uses the values ​​read from RAM 514 and written to PWM module 518 by DMA module 516 to generate a PWM pulse sequence selected by processing core 512. The pulse sequence generated by the PWM module is provided to peripheral driver module 520, which, depending on the specific implementation, feeds an output PWM sequence 508 with appropriate electrical characteristics to a driver or power converter. DMA module 516 may be incorporated into the controller's processing core or another component. DMA module 516 participates in communication between RAM 514 and PWM module 518, thereby allowing the processing core to engage in other tasks.

[0043] Figure 5 The components and operations in the controller are illustrated to generate PWM sequences. A processing core 604 is coupled to a memory 606 having a memory table 624 labeled Table 1 for PWM values ​​and a second table 622 labeled PWM settings for PWM modules. The first table 624 has multiple registers in sequential order, each register representing a specific timing and duration of a pulse. In some embodiments, the tables are pre-configured. In some embodiments, multiple memory tables exist, each with different sets of PWM sequences. The core can select a specific set of stored PWM values ​​in response to different input signals. In some embodiments, the core 604 generates, sets, and modifies values ​​in one or more tables to conform to a specific PWM sequence. The core 604 can control and modify the PWM setting table 622 in memory 606.

[0044] Memory 606 is coupled to a DMA module 608 having multiple channels 626, 628 to transfer data from memory 606 to other components. In the example shown, the channels are labeled CH0 and CH1. The DMA module is coupled to registers of a PWM module 610 that generates the PWM sequence as described above. The PWM module has a control register 632 coupled to CH0 626 of the DMA module 608 and a pulse generation register 630 coupled to CH1 628 of the DMA module 608. The output of the PWM module 610 goes to a connected PHE 612 module, which may be an I / O interface, and from there to external components, such as a power converter.

[0045] In operation, the data stored in memory table 624 contains multiple duty cycle values ​​for the output CH1 630 of PWM module 610. CH1 628 of the DMA module provides direct memory access from PWM module 610 to the values ​​in Table 1 without any action from core 604. For DMA module 608, each CH1 access is performed using the source address to read the address register in Table 1 of memory. The DMA module uses the destination address of PWM CH1 register 630 to write the value.

[0046] In an embodiment, to generate a pulse sequence after DMA CH1 is enabled, DMA module 608 transfers the first Table 1 configuration value to the PWM via CH1. After this transfer is complete, the DMA module enables CH0 by accessing PWM setting 622 and writing the setting to PWM module 610, and transfers the PWM setting to the PWM module 610 control register. With PWM module 610 configured, the DMA module transfers another PWM value via CH1 after each PWM CH1 period. This period can be determined based on the PWM control register or otherwise. This timing period can act as a trigger to transfer the next CH1 value from memory to the PWM CH1 register. Alternatively, PWM module 610 generates a trigger 640 for the DMA module after each pulse is generated. In response to this trigger, DMA module CH1 628 accesses Table 1 in memory to obtain another PWM value to store in the PWM CH1 register.

[0047] The process of refreshing the PWM CH1 value after each pulse continues from the initial PWM value in the selected table to the final PWM value. After the last value in the table has been provided to the PWM module, the DMA module then reloads the table in CH1 628 and loops back to the initial value. In this way, Table 1 624 in memory 606 can be used to define the period of a specific waveform, for example... Figure 9 The PWM value is a sine wave from time A to time B, and the same PWM value can be reused for each subsequent cycle. To generate different waveforms, core 604 can modify values ​​in memory table 624 or provide different tables for use by the DMA module. In some embodiments, the core modifies a set of PCM values ​​stored in one or more tables by incrementing or decrementing a stored set of values. The core can do this in response to an input signal or input parameters. In another example, the DMA module loads the complete cycle of the PWM value into the PWM module, and the PWM module cycle from the first value to the last value, and then cycles back to repeat the cycle until the core determines that the waveform will change.

[0048] Figure 5This configuration is well-suited for use with single-input power converters, such as single-channel DC / AC converters. The configuration can be modified by adding more channels to accommodate a much larger number of inputs, thus driving more complex power converters or multiple different power converters based on different PWM output sequences.

[0049] Figure 6 A multi-channel configurable PWM system 700 is illustrated. The system can be expanded to have more channels depending on the capabilities of controller 702 and the number of PWM channels available in controller 702. Controller 702 includes a processing core 704, a memory 706, a DMA module 708, and a PWM module 710. DMA module 708 and PWM module 710 may include multiple channels (e.g., CH1, CH2, ..., CHK) to generate multiple PWM sequences independently of each other. In some examples, processing core 704 may be configured to generate different types of output signals at the power converter outputs. The shape, frequency, and amplitude (e.g.,) of the output wave at OUTPUT1 are controlled by data stored in Table 1. Memory 706 may include multiple tables (e.g., Table1, Table2, ..., TableK) corresponding to the number of outputs of controller 702. PWM module 710 may also include multiple sub-modules (e.g., SM1, SM2, ..., SMK). Each sub-module (e.g., SM1) provides two inputs (e.g., PWMA1, PWMB1) to two power converters 712. Similarly, SM2 provides two outputs, PWMA2 and PWMB2, and SMK provides two outputs, PWMAK and PWMBK. Power converter 1 provides output OUTPUT1, power converter 2 provides output OUTPUT2, and power converter K provides output OUTPUTK. These outputs can be used for applications such as inductive charging.

[0050] like Figure 8 and 9 As shown, in OUTPUT X The following shows PWM pulse 800 and signal 900, signal PWMA. X (where X 1, 2, ..., K) provides the information in OUTPUT. X The signal is converted into a positive PWM pulse on the positive side of the output signal, and the signal PWMB... X Provided in OUTPUT X The output signal is converted into a negative PWM pulse on the negative side.

[0051] Processing core 704 can write PWM values ​​to a table X OUTPUT control signal X The shape. In one example, Table XThis includes several rows of values ​​V1, V2, V3, V4, V5 (or Val1, Val2, Val3, Val4, Val5). V2 and V3 can represent the output PWM pulse on the positive side. Figure 8 The width of pulse 802), and V4 and V5 can represent the output PWM pulse on the negative side ( Figure 8 The width of the pulse (804). In some examples, the value V1 can be used to generate an internal trigger, for example, for sampling the ADC 720. Note that in Figure 9 In this context, for example, only sine waves can be used. As discussed above, this can be done by using data stored in a Table. X The values ​​in the input may appear in other shapes, such as triangular waves, square waves, or other wave shapes. For example... Figure 9 As shown, stored in Table X The value in corresponds to the signal OUTPUT. X Points 902 and 904 on the table. This is achieved by adjusting the data stored in the table. X The values ​​in the table can be used to derive different output shapes.

[0052] Figure 10 Depicting by Figure 6 The controller 702 executes method 950. Therefore, at step 952, the processing core 704 copies the PWM values ​​(e.g., several rows of V1, V2, V3, V4, V5) to a table. X In one example, for the signal OUTPUT X On the positive side, V4 and V5 are zero, and for the signal OUTPUT... X On the negative side, V2 and V3 are zero. In some examples, Table X The number of rows on the center side may differ from that in the Table. X The number of rows differs on the middle and negative sides. This applies when the load is connected to the OUTPUT. X The process can then begin. At step 954, submodule SM... X Send DMA trigger 714 to DMA module 708 (i.e., CH). X At step 956, the value is transferred from the Table. X Copy to SM X At step 958, SM X Generate PWM signal PWMA X and PWMB X At step 960, Table X The row counter is incremented, and at decision step 962, if more rows remain to be read, control returns to step 956; otherwise, at step 964, the row counter is reset to point to the Table. XThe first line in the code returns control to step 954. Method 950 can continue running until it reaches OUTPUT. X The coupled load is disconnected or controller 702 is turned off. In some other examples, the table is not read row by row. X Instead, all rows are copied to SM in a single read. X In some examples, controller 702 can operate without using DMA module 708 and based on data from Table via processing core 704. X Read data and send it to SM X Implemented when memory addressing is provided.

[0053] In some cases, it depends on the output. X The load characteristics of the coupled load may require adjustments to values ​​V1, V2, V3, V4, and V5. In one embodiment, this can be based on a feedback loop (similar to) the output sensor. Figure 2 The feedback loop includes a load sensor 718 (which is similar to the sensor loop) and is adjusted accordingly. Figure 2 The sensor 222) and analog-to-digital converter (ADC) 720. In some embodiments, the processing core 704 may maintain different groups of tables based on the sensed load characteristics. X Value. In Figure 7 and Figure 11 In another example depicted, instead of processing core 704, Table X The values ​​remain the same and are adjusted based on the output of the sensor loop. In some examples, the processing core 704 can edit the table based on the output of the sensor loop. X The value in the table. In other examples, the table X The value in remains unchanged, while the value in SM is sent to X Provide adjustment values ​​to make SM X It can change the duty cycle and / or frequency of the PWM pulse according to the adjustment value.

[0054] For the sake of simplicity, Figure 7 Only show Figure 6 One channel. Memory 706 may include Table 1-1 for recording PWM values ​​and Table 1-2 for recording adjustment values. Buffer 1 may be included to store a digital representation of the output of sensor 718. DMA module 708 may include DMA channels CH1-1 and CH1-2. CH1-1 is similar to... Figure 6CH1 is executed. Because the sensing feedback does not need to be continuous (e.g., the controller can be configured to periodically read sensor values ​​at current intervals), the CH1-2 DMA channel can be used to access the adjustment values ​​stored in Table1-2 and Buffer1. In one example, Table1-2 may include frequency adjustments, which may not be as frequent as the amplitude adjustments stored in Buffer1, so the same DMA channel can be shared between Table1-2 and Buffer1. The output of sensor 718 is converted into a digital value by ADC 720. Processing core 704 can direct CH1-2 to access Buffer1 or Table1-2 at different intervals. The PWM submodule SM1-2, which works in conjunction with SM1-1, can trigger read access to Table1-2 data via CH1-2.

[0055] Figure 11 Depicting by Figure 7 The processing core 704 performs operation 980. Therefore, at step 982, the processing core 704 copies the PWM value to Table1-1 and the adjusted value to Table1-2. As discussed above, the adjusted value is generated based on the output of sensor 718. SM1-1 sends a DMA trigger to CH1-1, causing the PWM value to be copied to SM1-1. In one example, the value in Table1-1 may be adjusted by the processing core 704 based on the data stored in Buffer1, and the adjusted PWM value is copied to SM1-1, so Table1-2 may not be needed. In another example, at step 984, the PWM module 710 sends a DMA trigger, and in response at step 986, the values ​​stored in Table1-1 and Table1-2 are copied to the PWM module. In some embodiments, one or more values ​​stored in Table1-2 may not change frequently, so the DMA trigger for Table1-2 may be sent asynchronously to the DMA trigger for the data in Table1-1. At step 988, the PWM module 710 generates an adjusted value by changing (e.g., increasing / decreasing) the value from Table 1-1 using the adjustment value from Table 1-2. Based on the adjustment value from Table 1-2, a PWM pulse is generated by increasing or decreasing the value from Table 1-1. At step 990, the PWM module 710 generates a PWM pulse based on the adjusted value. At steps 992, 994, and 996, if more values ​​remain to be read, the loop of reading the next row from Table 1-1 is repeated. If no more values ​​remain to be read, the entire previous loop is repeated.

[0056] Figure 8The diagram illustrates a PWM sequence that can be generated by the controller described herein and is applicable to full-bridge or other types of four-input power converters. As shown, only two distinct PWM waveforms can be generated. Figure 9 The idealized filtered sine wave waveform produced after applying a pulse sequence to a power converter and filtering it is shown. As illustrated, in Figure 9 On the horizontal time axis, there are zero-crossing points of the sine wave at times A, B, C, D, and E. These zero-crossing points are related to... Figure 8 The transitions between pulse sequences are consistent.

[0057] Considering the waveform between time A and time B, this negative half-cycle of the sine wave responds to... Figure 8 The PWM pulse 804 is generated. In some embodiments, the PWM module 710 is configured to generate PWM pulses, wherein the initial and final pulses are narrow and the center pulse is wide. In some examples, the initial and final pulses are so narrow that, due to the electrical structure of the PWM module, the output PWM voltage cannot reach its full height before the pulse ends. The width of the modulated pulse sequence is generated. Figure 9 The output wave. By changing the timing and width of the pulse, Figure 9 The amplitude and frequency of the sine wave can be varied to suit different loads. The sine wave output shown here is particularly suitable for... Figure 2 Wireless power transmission, but under appropriate circumstances, further changes to the timing and width of the pulses may produce completely different waveforms.

[0058] In some cases, at least two sequences are required to drive a single power converter. However, in many cases, only one DMA channel is needed to generate both sequences. For example, a half-bridge power converter typically requires one PWM signal input and a second complementary PWM signal input. The two pulse sequences can be generated by directly generating the first pulse sequence using a PWM module in one channel, and then the second PWM sequence can be generated as a complementary signal from the first sequence. In some cases, only one table and one memory channel may be needed. As mentioned above... Figure 8 and 9 The full-bridge power converter described in the context requires two distinct sequences and two complementary sequences. The multi-channel controller described herein is advantageous because, for example, a three-phase converter requires three meter and memory channels plus the three complementary signals that the multi-channel controller described herein can provide in a single unit. The meter and channel configuration can be adapted for use with other power converters and for more than one power converter.

[0059] Figure 12A table showing the PWM values ​​in memory is provided, which may be used, for example, in the embodiment described above. The table has a column of values ​​A0, A1, A2, ..., A... n And a column of B values ​​B0, B1, B2, ..., B n The values ​​in each row are aligned and the rows are sequential. PWM values ​​are accessed sequentially in response to trigger access rows from the PWM module to the DMA module. For example, in response to the first trigger DMA Trigger #0, the DMA module reads PWM values ​​A0 and B0 from the table and writes both PWM values ​​into the PWM register of the specific channel. In response to the second trigger DMA Trigger #1, the DMA module reads the next PWM values ​​A1 and B1 in the sequence from the table and writes these values ​​into the same PWM register. In response to the third trigger DMA Trigger #2, the DMA module reads the next PWM values ​​A2 and B2 in the sequence from the table and writes these values ​​into the same PWM register. This continues for all n rows of the table, such that in response to the nth trigger DMA Trigger #n, the DMA module reads the nth PWM value A1 in the sequence from the table. n and B n These values ​​are then written to the same PWM register. After reading all n values ​​in sequence and reaching the end of the table, a DMA cycle trigger is received at the DMA module, and the DMA module returns from the last row, row n, to the first row, row 0. The DMA module reads the first row from the table to write it to the PWM register. The DMA cycle trigger can be an internal DMA signal generated by the DMA module, or it can be generated by PWM.

[0060] Figure 13 This illustrates an example of how to use values ​​provided by the DMA module to define variable-width pulses in a PWM. For clarity, the top and bottom graphs are aligned on the same time scale on the horizontal axis, and the different triggers are aligned on the vertical axis. A table (e.g., Table1) can store multiple values. In this example, value A can remain the same, while value B can vary depending on the desired output waveform, such as a sine wave, triangle wave, sawtooth wave, or other shaped wave. Values ​​A and B can have a 16+6 bit width, which provides high-resolution duty cycle variation. Duty cycle variation can be used for amplitude adjustment, with the values ​​A and B loaded into the PWM module via DMA after each DMA trigger, with small adjustment steps. After the last value in the table is loaded, the next value will be loaded cyclically, ensuring that A0 and B0 are repeatedly loaded by the DMA cyclic mode operation. Table values ​​can vary between DMA triggers, after the last value is loaded, or at any desired table value.

[0061] exist Figure 13In the example, A0 represents a single value used as the start time for each pulse. A0 is the time distance on the horizontal scale from the trigger time to the start of the pulse. The B value represents the pulse width. The width of the first pulse is determined by B0, which represents the duration from the pulse start or trigger time at time A0 to the end of the first pulse. The next value, B1, determines the width of the second pulse, which is shown as narrower because the value B1 is smaller than B0, so the duration of the second pulse is shorter. Trigger and indication are T. PWM_CLK The clock rate or cycle time of the pulses is aligned. This clock frequency can be modified by the controller or PWM module to suit different purposes.

[0062] By modifying only the B value, the PWM module can generate different waveforms, such as sine waves, triangle waves, and sawtooth waves. By modifying both the A and B values, a wider range of different pulse widths can be defined at a more complex cost. The duty cycle of the pulse can be used to control the amplitude of these waveforms. The accuracy of the PWM value can be determined at least in part by the number of bits in the A and B values. Even using 16-bit values, the system can control the output power from the power converter very well.

[0063] The controller configuration and topology using DMA and PWM modules allow the controller to generate variable duty cycle PWM signals for many different applications, such as motor controllers, switching power supplies, and photovoltaic systems, and even generate test waveforms. In the case of a single controller, the signal generator complexity is lower, and the controller core can run other applications while controlling the PWM output signal. The high-frequency capability of the topology can be used to drive power converters with high operating frequencies and high power, such as wireless power transmitters.

[0064] Figure 14 This illustrates a DMA operation that uses only one DMA trigger to obtain multiple values ​​from a table (e.g., Table 1). As shown, the PWM submodule SM1 can send an eFlexPWM DMA request to CH1, and in response, SM1 can obtain Val1 to Val5 (such as Fix stored in Table1-1 + Adjustment or frac stored in Table1-2 / buffer), instead of issuing two DMA requests or using two DMA channels.

[0065] Figure 15 Shown in SM Xconverts the PWM value to the pulse width of the PWM pulse at two outputs (pin A and pin B). In this example, the Val2 and Val3 registers drive the output at pin A, and the Val4 and Val5 registers drive the output at pin B. Val0 represents the frequency of the pulse. If the pulse frequency needs to be increased, the Val0 value may decrease, and thus Val1,2,3,4,5 will change to ensure that Val1,2,3,4,5 < Val0. In some examples, VAL1 may be used to generate internal triggers for other modules (for example, to perform ADC sampling at a desired time relative to the generated pulse). The X-axis is time, and the Y-axis represents the increment of the PWM counter. The PWM counter value increments by 1 every predefined interval. If the counter value matches the threshold (VAL0,1,2,3,4,5), a specified event occurs, for example, Val2 generates a rising edge on PWM A PIN, and Val3 generates a falling edge on PWM A PIN. Similarly, when the counter is 4, Val4 generates a rising edge on PWM B PIN, and Val5 generates a falling edge on PWM B PIN. After completing one cycle, the PWM counter resets to 0, and the DMA triggers—from Table X transfer new Val0,1,2,3,4,5 values to generate the next pulse cycle. The DMA module counts the number of settings transferred, and after the last item is transferred, reloads its source address to the first item in Tablex. This process may continue indefinitely until the charging system is turned off.

[0066] Although the operations of the methods are illustrated and described herein in a particular order, the order of the operations of each method may be changed, such that certain operations may be performed in reverse order, or such that certain operations may be performed at least partially concurrently with other operations. In another embodiment, instructions or sub-operations of distinct operations may be implemented in an intermittent and / or alternating manner.

[0067] It should also be noted that at least some of the operations of the methods described herein may be implemented using software instructions stored on a computer-usable storage medium for execution by a computer. As an example, an embodiment of a computer program product includes a computer-usable storage medium to store a computer-readable program.

[0068] Alternatively, embodiments of the invention may be implemented entirely in hardware or in an implementation containing both hardware and software elements. In embodiments that use software, the software may include, but is not limited to, firmware, resident software, microcode, etc.

[0069] Although specific embodiments of the invention have been described and illustrated, the invention is not limited to the specific form or arrangement of the portions thus described and illustrated. The scope of the invention will be defined by the appended claims and their equivalents.

Claims

1. A controller, characterized in that, include: Multiple pulse width modulation (PWM) modules, each having two outputs, are configured to generate a first pulse sequence and a second pulse sequence, each pulse in the two pulse sequences having a width modulated by a PWM value stored in the PWM register of the PWM module. The memory has multiple memory tables, each memory table being configured to store PWM values ​​to be written into the PWM register; Multiple direct memory access (DMA) modules, each coupled to a corresponding PWM module among the multiple PWM modules and coupled to a corresponding memory table among the multiple memory tables, are configured to write PWM values ​​from the memory table to the PWM register in response to DMA triggering; as well as The core is coupled to the plurality of memory tables and configured to write the PWM value to the plurality of memory tables.

2. The controller according to claim 1, characterized in that, Additionally, a feedback loop is included for each of the plurality of memory tables, and is configured to provide an adjustment value for the PWM value.

3. The controller according to claim 2, characterized in that, The feedback loop includes an analog-to-digital converter (ADC) for converting analog signals into digital data and a buffer for storing the digital data.

4. The controller according to claim 3, characterized in that, The PWM module is configured to send the DMA trigger to the DMA module after each pulse in the pulse sequence is generated.

5. The controller according to claim 4, characterized in that, The memory table has a plurality of PWM values ​​arranged in sequence, and wherein the DMA module is configured to write the PWM values ​​from the memory table into the PWM register in sequence in response to each DMA trigger, wherein the PWM values ​​are adjusted using the adjustment value.

6. The controller according to claim 5, characterized in that, The DMA module is configured to write the first PWM value in the sequence after writing the last PWM value in the sequence.

7. The controller according to claim 1, characterized in that, The PWM module is configured to drive two inputs of the power converter, wherein the first pulse sequence is converted into the positive side of the analog wave output of the power converter, and the second pulse sequence is converted into the negative side of the analog wave output of the power converter.

8. The controller according to claim 1, characterized in that, Additionally, an input signal interface coupled to the core is included, the input signal interface being configured to receive an input signal, and wherein the core is configured to modify the PWM value in a table of PWM values ​​in response to the input signal, and write the modified PWM value into the memory.

9. The controller according to claim 8, characterized in that, The core is configured to modify the PWM value by selecting a different set of stored PWM values ​​in response to the input signal, or by incrementing and decrementing the PWM value in response to the input signal.

10. A charging system, characterized in that, include: A resonant circuit, which is configured to apply a resonant field to charge the device; A power converter is configured to receive DC power and a first pulse sequence and a second pulse sequence, and to generate an AC power output to drive the resonant circuit, wherein the first pulse sequence is converted to the positive side of the AC power output, and the second pulse sequence is converted to the negative side of the AC power output. A pulse width modulation (PWM) module is configured to generate a first pulse sequence and a second pulse sequence, each having a width modulated by a PWM value stored in a register of the PWM module. A memory having a table configured to write PWM values ​​into the PWM module register; A direct memory access (DMA) module is configured to write PWM values ​​from the table to the PWM module register in response to a DMA trigger from the PWM module; The processing core is configured to write the PWM value into the table; as well as A feedback loop that is coupled to the output of the power converter and to the processing core.

Citation Information

Patent Citations

  • Interface-based multiplexed programmable pulse width modulator

    CN102104371A

  • Method and circuitry for generating pulse width modulated signals

    CN107645233A