PWM control device

The PWM control device addresses the bottleneck in updating setting values by using an interlocking setting circuit to shorten the PWM signal period, enabling the miniaturization of power supply devices.

WO2026240139A1PCT designated stage Publication Date: 2026-11-19NUVOTON TECH CORP JAPAN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2026/018117
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-15
Filing Date
2026-05-13
Publication Date
2026-11-19

AI Technical Summary

Technical Problem

Conventional PWM control devices face challenges in shortening the period of the PWM signal due to bottlenecks in the time required for updating multiple setting values, which hinders the miniaturization of power supply devices.

Method used

A PWM control device with an interlocking setting circuit that calculates and updates setting values in conjunction with a primary setting value, reducing the need for extensive processing by the processing circuit to shorten the PWM signal period.

Benefits of technology

The device effectively shortens the PWM signal period by optimizing the update process of multiple setting values, facilitating the miniaturization of power supply devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2026018117_19112026_PF_FP_ABST
    Figure JP2026018117_19112026_PF_FP_ABST
Patent Text Reader

Abstract

A PWM control device (100) outputs a PWM signal for controlling a control target device (200). A PWM control device (100) comprises: a cycle setting register (11) that holds a cycle setting value among a plurality of setting values which are necessary for control using a PWM signal, and outputs the held cycle setting value; a processing circuit (20) that updates the cycle setting value held by the cycle setting register (11); an linked-setting circuit (30) that calculates and outputs remaining setting values other than the cycle setting value among the plurality of setting values in a manner linked with the cycle setting value output by the cycle setting register (11); and a signal generation circuit (40) that generates and outputs the PWM signal on the basis of at least some setting values among the remaining setting values output by the linked-setting circuit (30) and the cycle setting value output by the cycle setting register (11).
Need to check novelty before this filing date? Find Prior Art

Description

PWM control device

[0001] The present disclosure relates to a PWM control device.

[0002] As a control technology for power supply devices and the like, control using a PWM (Pulse Width Modulation) signal is known (see, for example, Patent Documents 1 and 2).

[0003] U.S. Patent Application Publication No. 2005 / 0213654 Specification U.S. Patent Application Publication No. 2008 / 0181293 Specification

[0004] In the control of devices using PWM signals, there is a demand for shortening the cycle of the PWM signals.

[0005] For example, in recent years, with the spread of AI servers and the like, power demand has increased, and miniaturization of power supply devices is required. In a power supply device controlled by a PWM signal, components such as passive elements can be miniaturized by increasing the switching frequency, so shortening the cycle of the PWM signal is effective for miniaturizing the power supply device.

[0006] Accordingly, the present disclosure provides a PWM control device capable of shortening the cycle of an output PWM signal.

[0007] A PWM control device according to one aspect of the present disclosure is a PWM control device that outputs a PWM signal for controlling a device to be controlled, the PWM control device including: a first register that holds a first set value among a plurality of set values required for control by the PWM signal, and outputs the held first set value; a processing circuit that updates the first set value held in the first register; a linked setting circuit that calculates and outputs remaining set values other than the first set value among the plurality of set values in conjunction with the first set value output from the first register; and a signal generation circuit that generates and outputs the PWM signal based on at least some of the remaining set values output from the linked setting circuit and the first set value output from the first register.

[0008] According to the present disclosure, a PWM control device capable of shortening the cycle of an output PWM signal can be provided.

[0009] Figure 1 is a block diagram showing an example of the configuration of a PWM control device according to an embodiment. Figure 2 is a block diagram showing an example of a detailed configuration of an interlocking setting circuit provided in the PWM control device according to an embodiment. Figure 3 is a timing chart for explaining the operation of the PWM control device according to an embodiment. Figure 4 is a flowchart showing an example of the operation of the PWM control device according to an embodiment. Figure 5 is a block diagram showing an example of the configuration of a PWM control device according to a modification 1 of the embodiment. Figure 6 is a block diagram showing an example of a detailed configuration of an interlocking setting circuit provided in the PWM control device according to a modification 1 of the embodiment. Figure 7 is a block diagram showing an example of the configuration of a PWM control device according to a modification 2 of the embodiment.

[0010] (Background leading to one aspect of this disclosure) Before specifically describing the embodiments of this disclosure, the inventors of this application will explain the problems they have identified.

[0011] As described above, in PWM control devices that output PWM signals for controlling power supply devices and the like, there is a need to shorten the period of the output PWM signal.

[0012] In a PWM control device, shortening the period of the PWM signal requires speeding up the processing for generating the PWM signal. The PWM control device updates several setting values ​​necessary for generating the PWM signal periodically. In conventional technology, the time required for updating the setting values ​​in the next period of the PWM signal can become a bottleneck in shortening the PWM signal period. For example, as in the technology described in Patent Documents 1 and 2, when setting values ​​output from each of several registers are used for control by the PWM signal, setting value update processing is required for each of the multiple registers, and the time required for update processing hinders the shortening of the PWM signal period.

[0013] In view of the above problems, the inventors of the present invention focused on shortening the update process of multiple setting values ​​necessary for control by a PWM signal in order to shorten the period of the PWM signal, and have come to obtain one aspect of the present disclosure.

[0014] The embodiments of this disclosure will be described in detail below with reference to the drawings.

[0015] The embodiments described below are all comprehensive or specific examples. The numerical values, shapes, components, arrangement and connection configurations of components, steps, and the order of steps shown in the following embodiments are examples only and are not intended to limit the scope of this disclosure. Furthermore, components in the following embodiments that are not described in an independent claim are described as optional components. In addition, each figure is a schematic diagram and is not necessarily a strict illustration. Furthermore, substantially identical components in each figure are denoted by the same reference numerals, and redundant explanations may be omitted or simplified.

[0016] Furthermore, in this specification, terms indicating relationships between elements, such as perpendicular, parallel, or coincident, and terms indicating the shape of elements, such as circular or rectangular, as well as numerical ranges, are not expressions that represent only strict meanings, but also expressions that include substantially equivalent ranges, such as differences of a few percent.

[0017] Furthermore, in this specification, ordinal numbers such as "first," "second," etc., unless otherwise specified, do not refer to the number or order of constituent elements, etc., but are used for the purpose of avoiding confusion and distinguishing similar constituent elements, etc.

[0018] (Embodiment) [Configuration] First, the configuration of the PWM control device according to this embodiment will be described. Figure 1 is a block diagram showing an example of the configuration of the PWM control device 100 according to this embodiment. Figure 2 is a block diagram showing a detailed example of the configuration of the interlocking setting circuit 30 provided in the PWM control device 100 according to this embodiment. In Figures 1 and 2, an example of the signal flow in the PWM control device 100 is shown by arrows.

[0019] As shown in Figure 1, the PWM control device 100 according to this embodiment includes a period setting register 11, an on-width setting register 12, a rising edge setting register 13, an AD start setting register 14, a plurality of multiplexers 12a, 13a, 14a, a processing circuit 20, an interlocking setting circuit 30, a signal generation circuit 40 including a PWM signal generation circuit 41, an AD start trigger signal generation circuit 42, and a count circuit 43, and an AD conversion circuit 70.

[0020] The PWM control device 100 outputs a PWM signal for controlling the controlled device 200. The PWM control device 100 modulates the pulse width by, for example, fixing the duty cycle of the output PWM signal and changing the period (frequency), and controls the controlled device 200 with the output PWM signal. The controlled device 200 is, for example, a power supply unit. Note that the controlled device 200 is not limited to a power supply unit, but may be, for example, a motor or an actuator. The PWM control device 100 may also output a PFM (Pulse Frequency Modulation) signal. In this case, the PWM control device 100 has a function to switch whether to control the controlled device 200 with a PWM signal or a PFM signal. In this specification, a PWM signal is a signal whose pulse width is modulated, and if the pulse width is modulated, it is a PWM signal even if the period (frequency) changes. Furthermore, in this specification, a PFM signal is a signal in which the pulse width is fixed and the period (frequency) is modulated.

[0021] The PWM control device 100 includes a period setting register 11, an on-width setting register 12, a rising edge setting register 13, and an AD start setting register 14 as a plurality of registers that hold a plurality of setting values ​​necessary for control by PWM signals. In this embodiment, the period setting register 11 is an example of a first register, and the on-width setting register 12, the rising edge setting register 13, and the AD start setting register 14 are examples of one or more second registers.

[0022] The period setting register 11 holds a period setting value PRD of the PWM signal and outputs the held period setting value PRD. The period setting value PRD is a value that indicates the length of the period of the PWM signal. The period setting value PRD output by the period setting register 11 is input to the interlocking setting circuit 30, the PWM signal generation circuit 41, and the count circuit 43. Note that the period setting value PRD output by the period setting register 11 does not necessarily have to be input to the PWM signal generation circuit 41.

[0023] The ON-Width Setting Register 12 holds the ON-Width setting value DTY of the PWM signal and outputs the held ON-Width setting value DTY. The ON-Width setting value DTY is a value that indicates the ON-Width within one cycle of the PWM signal (in other words, the ON time after the rising edge of the PWM signal). The ON-Width setting value DTY output by the ON-Width Setting Register 12 is input to the multiplexer 12a.

[0024] The rising edge setting register 13 holds the setting value TCPMP for the rising edge timing of the PWM signal and outputs the held rising edge setting value TCPMP. The rising edge setting value TCPMP is a value that indicates the rising edge time of the PWM signal pulse relative to the start of the PWM signal cycle. The rising edge setting value TCPMP output by the rising edge setting register 13 is input to the multiplexer 13a.

[0025] The AD start setting register 14 holds the start timing setting value ADST when the signal from the controlled device 200 is converted to AD (Analog-Digital) by the AD conversion circuit 70, and outputs the held start timing setting value ADST. The start timing setting value ADST is a value that indicates the start time of AD conversion based on the start of the PWM signal cycle. The start timing setting value ADST output by the AD start setting register 14 is input to the multiplexer 14a.

[0026] The period setting value PRD, the on-width setting value DTY, the rising edge timing setting value TCPMP, and the start timing setting value ADST are each setting values ​​necessary for control by a PWM signal. In this embodiment, the period setting value PRD is an example of a first setting value, and the on-width setting value DTY, the rising edge timing setting value TCPMP, and the start timing setting value ADST are examples of the remaining setting values ​​other than the first setting value.

[0027] The processing circuit 20 performs various signal processing for controlling the controlled device 200 using PWM signals. For example, the processing circuit 20 performs feedback control of the controlled device 200 using PWM signals. The processing circuit 20 is a processor that executes built-in software programs.

[0028] The processing circuit 20 updates the period setting value PRD held in the period setting register 11 for each period of the PWM signal. More specifically, the processing circuit 20 calculates the period setting value PRD for the next period of the PWM signal based on the signal output by the controlled device 200, and updates the period setting value PRD held in the period setting register 11 to the calculated value. The signal output by the controlled device 200 is converted from AD by the AD conversion circuit 70 and input to the processing circuit 20 as a digital value. The signal output by the controlled device 200 is, for example, a signal that is subject to feedback control by the processing circuit 20, and if the controlled device 200 is a power supply unit, it is the output voltage of the power supply unit.

[0029] Furthermore, depending on the control mode of the PWM control device 100, the processing circuit 20 may update the on-width setting value DTY held in the on-width setting register 12, the rising edge timing setting value TCMP held in the rising edge setting register 13, and the start timing setting value ADST held in the AD start setting register 14. Details of the control modes of the PWM control device 100 will be described later.

[0030] The interlocking setting circuit 30 calculates and outputs the ON width setting value DTY, the rising edge timing setting value TCPMP, and the start timing setting value ADST in conjunction with the period setting value PRD output by the period setting register 11. The interlocking setting circuit 30 is a dedicated logic circuit for calculating the ON width setting value DTY, the rising edge timing setting value TCPMP, and the start timing setting value ADST. In other words, the interlocking setting circuit 30 is a hardware circuit that calculates the ON width setting value DTY, the rising edge timing setting value TCPMP, and the start timing setting value ADST.

[0031] Here, an example of the configuration of the specific interlocking setting circuit 30 will be explained using Figure 2. As shown in Figure 2, the interlocking setting circuit 30 includes an ON width calculation circuit 31, a rising edge calculation circuit 32, and an AD start calculation circuit 33. The period setting value PRD output by the period setting register 11 is input to the ON width calculation circuit 31, the rising edge calculation circuit 32, and the AD start calculation circuit 33.

[0032] The ON width calculation circuit 31 calculates the ON width setting value DTY in conjunction with the period setting value PRD output by the period setting register 11, and outputs the calculated ON width setting value DTY. The ON width calculation circuit 31 calculates the ON width setting value DTY by, for example, multiplying the period setting value PRD output by the period setting register 11 by a predetermined ratio.

[0033] The ON-Width Calculation Circuit 31 includes, for example, a multiplier for multiplying the period setting value PRD by a predetermined ratio. The ON-Width Calculation Circuit 31 has a preset ratio x (0 < x < 1) of the ON-Width setting value DTY to the period setting value PRD. The ON-Width Calculation Circuit 31 calculates the ON-Width setting value DTY in conjunction with the input period setting value PRD by the set ratio x. In other words, the ON-Width Calculation Circuit 31 multiplies the input period setting value PRD by the set ratio x and outputs it. The ON-Width setting value DTY output by the ON-Width Calculation Circuit 31 is input to the multiplexer 12a.

[0034] Alternatively, the ON-Width calculation circuit 31 may calculate the ON-Width setting value DTY by multiplying the period setting value PRD output by the period setting register 11 by a predetermined ratio and adding a predetermined value to the multiplied value. In this case, the ON-Width calculation circuit 31 includes, for example, an adder in addition to a multiplier for adding a predetermined value to the multiplied value. The ON-Width calculation circuit 31 has, for example, a value α set in addition to a ratio x. The value α is an integer and may be a positive value, a negative value, or 0. The ON-Width calculation circuit 31, for example, multiplies the input period setting value PRD by the set ratio x and outputs the value after adding the value α. The value α is set to be, for example, a sufficiently small value with respect to the period setting value PRD (for example, 1 / 10 or less of the lower limit of the period setting value PRD), and the ON-Width setting value DTY is fine-tuned by the value α.

[0035] The rising edge calculation circuit 32 calculates the rising edge timing setting value TCPP in conjunction with the period setting value PRD output by the period setting register 11, and outputs the calculated rising edge timing setting value TCPP. The rising edge calculation circuit 32 calculates the rising edge timing setting value TCPP by, for example, multiplying the period setting value PRD output by the period setting register 11 by a predetermined ratio.

[0036] The rising edge calculation circuit 32 includes, for example, a multiplier for multiplying the period setting value PRD by a predetermined ratio. The rising edge calculation circuit 32 has a preset ratio y (0 < y < 1) of the rising edge timing setting value TCPMP to the period setting value PRD. The rising edge calculation circuit 32 calculates the rising edge timing setting value TCPMP in conjunction with the input period setting value PRD by the set ratio y. In other words, the rising edge calculation circuit 32 multiplies the input period setting value PRD by the set ratio y and outputs it. The rising edge timing setting value TCPMP output by the rising edge calculation circuit 32 is input to the multiplexer 13a.

[0037] Alternatively, the rising edge calculation circuit 32 may calculate the rising edge timing setting value TCPMP by multiplying the period setting value PRD output by the period setting register 11 by a predetermined ratio and adding a predetermined value to the multiplied value. In this case, the rising edge calculation circuit 32 includes, for example, an adder in addition to a multiplier for adding a predetermined value to the multiplied value. The rising edge calculation circuit 32 has, for example, a value β set in addition to a ratio y. The value β is an integer and may be a positive value, a negative value, or 0. The rising edge calculation circuit 32, for example, multiplies the input period setting value PRD by the set ratio y and outputs the value after adding the value β. The value β is set to, for example, a value that is sufficiently small with respect to the period setting value PRD (for example, 1 / 10 or less of the lower limit of the period setting value PRD), and the rising edge timing setting value TCPMP is fine-tuned by the value β.

[0038] The AD start calculation circuit 33 calculates the start timing setting value ADST in conjunction with the period setting value PRD output by the period setting register 11, and outputs the calculated start timing setting value ADST. The AD start calculation circuit 33 calculates the start timing setting value ADST by, for example, multiplying the period setting value PRD output by the period setting register 11 by a predetermined ratio.

[0039] The AD start calculation circuit 33 includes, for example, a multiplier for multiplying the period setting value PRD by a predetermined ratio. The AD start calculation circuit 33 has a preset ratio z (0 < z < 1) of the start timing setting value ADST to the period setting value PRD. The AD start calculation circuit 33 calculates the start timing setting value ADST in conjunction with the input period setting value PRD by the set ratio z. In other words, the AD start calculation circuit 33 multiplies the input period setting value PRD by the set ratio z and outputs it. The start timing setting value ADST output by the AD start calculation circuit 33 is input to the multiplexer 14a.

[0040] Alternatively, the AD start calculation circuit 33 may calculate the start timing setting value ADST by multiplying the period setting value PRD output by the period setting register 11 by a predetermined ratio and adding a predetermined value to the multiplied value. In this case, the AD start calculation circuit 33 includes, for example, an adder in addition to a multiplier for adding a predetermined value to the multiplied value. The AD start calculation circuit 33 has, for example, a value γ set in addition to the ratio z. The value γ is an integer and may be a positive value, a negative value, or 0. The AD start calculation circuit 33, for example, multiplies the input period setting value PRD by the set ratio z and outputs the value after adding the value γ. The value γ is set to, for example, a value that is sufficiently small with respect to the period setting value PRD (for example, 1 / 10 or less of the lower limit of the period setting value PRD), and the start timing setting value ADST is fine-tuned by the value γ.

[0041] In the interlocking setting circuit 30, the ratios x, y, z and values ​​α, β, γ may be set as fixed values ​​at the time of manufacturing of the PWM control device 100, or they may be changeable by input from a user or the like. Also, if the ON width calculation circuit 31, the rising edge calculation circuit 32, and the AD start calculation circuit 33 include a multiplier and an adder, it may be possible to change whether or not to enable the adder by input from a user or the like.

[0042] As shown in Figures 1 and 2, the multiplexer 12a selects and outputs either the on-width setting value DTY output by the on-width setting register 12 or the on-width setting value DTY output by the interlocking setting circuit 30. The on-width setting value DTY output by the multiplexer 12a is input to the PWM signal generation circuit 41. In other words, either the on-width setting value DTY output by the on-width setting register 12 or the on-width setting value DTY output by the interlocking setting circuit 30 is input to the PWM signal generation circuit 41 via the multiplexer 12a.

[0043] The multiplexer 13a selects and outputs one of the rising timing setting value TCMP output by the rising setting register 13 and the rising timing setting value TCMP output by the interlock setting circuit 30. The rising timing setting value TCMP output by the multiplexer 13a is input to the PWM signal generation circuit 41. That is, one of the rising timing setting value TCMP output by the rising setting register 13 and the rising timing setting value TCMP output by the interlock setting circuit 30 is input to the PWM signal generation circuit 41 via the multiplexer 13a.

[0044] The multiplexer 14a selects and outputs one of the start timing setting value ADST output by the AD start setting register 14 and the start timing setting value ADST output by the interlock setting circuit 30. The start timing setting value ADST output by the multiplexer 14a is input to the AD start trigger signal generation circuit 42. That is, one of the start timing setting value ADST output by the AD start setting register 14 and the start timing setting value ADST output by the interlock setting circuit 30 is input to the AD start trigger signal generation circuit 42 via the multiplexer 14a.

[0045] The outputs of the plurality of multiplexers 12a, 13a, and 14a are determined by, for example, a selection signal output from the processing circuit 20.

[0046] Referring back to FIG. 1, the PWM signal generation circuit 41 generates and outputs a PWM signal based on the cycle setting value PRD output by the cycle setting register 11, the on-width setting value DTY output by the multiplexer 12a, and the rising timing setting value TCMP output by the multiplexer 13a. The PWM signal output by the PWM signal generation circuit 41 is input to the controlled device 200.

[0047] The AD start trigger signal generation circuit 42 generates and outputs a trigger signal indicating the start timing when the signal from the controlled device 200 is AD-converted by the AD conversion circuit 70, based on the start timing setting value ADST output by the multiplexer 14a. The trigger signal output by the AD start trigger signal generation circuit 42 is input to the AD conversion circuit 70.

[0048] The count circuit 43 outputs a count value to the PWM signal generation circuit 41 and the AD start trigger signal generation circuit 42. The count circuit 43 resets the count value based on the cycle setting value PRD output by the cycle setting register 11. The PWM signal generation circuit 41 generates a PWM signal based on the count value output by the count circuit 43 and the input setting value. The AD start trigger signal generation circuit 42 generates a trigger signal based on the count value output by the count circuit 43 and the input setting value. The count circuit 43 is, for example, a binary counter.

[0049] The AD conversion circuit 70 receives the signal output by the controlled device 200, and performs AD conversion on the input signal. The AD conversion circuit 70 outputs the digital value obtained by AD conversion to the processing circuit 20.

[0050] [Operation] Next, the operation of the PWM control device 100 according to the present embodiment will be described.

[0051] Figure 3 is a timing chart for explaining the operation of the PWM control device 100 according to the present embodiment. In "Count Value" of Figure 3, the count value output by the count circuit 43 to the PWM signal generation circuit 41 and the AD start trigger signal generation circuit 42 is schematically indicated by hatching. In "PWM Signal" of Figure 3, the waveform of the PWM signal output by the PWM signal generation circuit 41 is shown. In "AD Conversion" of Figure 3, the timing at which the AD conversion circuit 70 starts AD conversion is shown.

[0052] As shown in Figure 3, the count circuit 43 starts counting in synchronization with the start of the PWM signal cycle.

[0053] When the count value reaches the start timing setting value ADST, the AD start trigger signal generation circuit 42 generates and outputs a trigger signal, and the AD conversion circuit 70 starts AD conversion. For example, when the AD conversion circuit 70 receives the trigger signal output from the AD start trigger signal generation circuit 42, it holds the signal output from the controlled device 200 and performs AD conversion on the held signal. In Figure 3, one AD conversion is performed within one cycle of the PWM signal, but multiple AD conversions may be performed at different timings. In this case, for example, the interlocking setting circuit 30 includes multiple AD start calculation circuits 33, and multiple start timing setting values ​​ADST corresponding to the timing of multiple AD conversions are output from each of the multiple AD start calculation circuits 33.

[0054] Furthermore, when the count value reaches the rising edge timing setting value TCPMP, the pulse of the PWM signal generated by the PWM signal generation circuit 41 rises. Also, when the count value reaches a count value corresponding to the time elapsed from the rising edge timing setting value TCPMP to the ON width setting value DTY, the pulse of the PWM signal generated by the PWM signal generation circuit 41 falls. Then, when the count value reaches the period setting value PRD, the count circuit 43 resets the count value, and the period of the PWM signal is updated. As a result, the PWM signal with the waveform shown in Figure 3 is output. Note that Figure 3 shows a PWM signal that starts at a low level, but a PWM signal that starts at a high level may also be used. In this case, the setting value of the falling edge timing of the PWM signal is used instead of the rising edge timing setting value TCPMP, and the setting value of the off-width within one period of the PWM signal (in other words, the off-time after the falling edge of the PWM signal) is used instead of the ON width setting value DTY. Furthermore, the PWM signal generation circuit 41 may generate and output two or more PWM signals. For example, the PWM signal generation circuit 41 may further output a PWM signal with a waveform complementary to the PWM signal waveform shown in Figure 3.

[0055] In the next cycle, the PWM control device 100 operates based on the updated cycle setting value PRD, the on-width setting value DTY, the rising edge timing setting value TCPMP, and the start timing setting value ADST. Thereafter, the same operation of the PWM control device 100 is repeated for each cycle of the PWM signal. In the PWM control device 100, for each cycle of the PWM signal, the cycle setting value PRD, the on-width setting value DTY, the rising edge timing setting value TCPMP, and the start timing setting value ADST are updated as multiple setting values ​​necessary for control by the PWM signal.

[0056] Next, the operation of updating multiple setting values ​​necessary for control by PWM signals in the PWM control device 100 will be described.

[0057] Figure 4 is a flowchart illustrating an example of the operation of the PWM control device 100 according to this embodiment. Figure 4 shows how the processing circuit 20 of the PWM control device 100 updates multiple set values ​​necessary for control by the PWM signal. The processing circuit 20 performs the operation shown in Figure 4 within one cycle of the PWM signal and updates the multiple set values ​​for the next cycle before the start of the next cycle. Furthermore, the operation shown in Figure 4 illustrates the operation when the PWM control device 100 performs feedback control of the controlled device 200 by outputting a PWM signal, by fixing the duty cycle of the output PWM signal and changing the period.

[0058] As shown in Figure 4, the processing circuit 20 acquires the digital value of the signal output from the controlled device 200 from the AD conversion circuit 70 (step S1). As explained above, when a trigger signal is input to the AD conversion circuit 70, it performs AD conversion on the signal output from the controlled device 200 and outputs the digital value after AD conversion. The processing circuit 20 acquires the digital value output from the AD conversion circuit 70.

[0059] Next, the processing circuit 20 calculates the period setting value PRD for the next period of the PWM signal based on the acquired digital values ​​(step S2). The processing circuit 20 calculates the period setting value PRD by, for example, performing a predetermined feedback control calculation using the acquired digital values. If multiple AD conversions are performed within one period of the PWM signal, the processing circuit 20 may calculate the period setting value PRD for the next period of the PWM signal based on the average value of multiple digital values ​​obtained by the multiple AD conversions.

[0060] Next, the processing circuit 20 updates the period setting value PRD held in the period setting register 11 to the calculated period setting value PRD (step S3). Accordingly, the PWM control device 100's interlocking setting circuit 30 calculates the on-width setting value DTY, the rising edge timing setting value TCPMP, and the start timing setting value ADST in conjunction with the updated period setting value PRD, and updates these setting values ​​to the calculated values. As a result, in the next period of the PWM signal, the PWM control device 100 operates based on the updated period setting value PRD, on-width setting value DTY, rising edge timing setting value TCPMP, and start timing setting value ADST, as shown in Figure 3.

[0061] Furthermore, in the interlocking setting circuit 30, when predetermined ratios x, y, and z are set, the ON width setting value DTY, the rising edge timing setting value TCPP, and the start timing setting value ADST are, for example, values ​​obtained by multiplying the period setting value PRD by the predetermined ratios x, y, and z, respectively. Figure 3 shows an example where x = 50%, y = 50%, and z = 25%. In other words, in Figure 3, the ON width setting value DTY and the rising edge timing setting value TCPP are 50% of the period setting value PRD, and the start timing setting value ADST is 25% of the period setting value PRD.

[0062] The interlocking setting circuit 30 only needs to calculate the ON width setting value DTY, the rising edge timing setting value TCMP, and the start timing setting value ADST in conjunction with the period setting value PRD output by the period setting register 11, and there are no particular restrictions on how each setting value is calculated. For example, the interlocking setting circuit 30 may calculate at least one of the ON width setting value DTY, the rising edge timing setting value TCMP, and the start timing setting value ADST by multiplying the period setting value PRD output by the period setting register 11 by a predetermined ratio, as described above, and adding a predetermined value to the multiplied value. This makes it possible to adjust the setting values ​​according to the waveform of the signal output from the controlled device 200. For example, if the AD start calculation circuit 33 calculates the start timing setting value ADST by multiplying the period setting value PRD output by the period setting register 11 by a ratio z and adding the value γ to the multiplied value, the start timing setting value ADST can be adjusted by a fixed count value by setting the value γ so that AD conversion is performed at the timing of the peak of the signal output from the controlled device 200.

[0063] As described above, the PWM control device 100 according to this embodiment includes an interlocking setting circuit 30. As a result, when the processing circuit 20 calculates the period setting value PRD and updates the period setting value PRD held in the period setting register 11 to the calculated period setting value PRD, the ON width setting value DTY, the rising edge timing setting value TCMP, and the start timing setting value ADST are automatically updated without any processing being performed by the processing circuit 20. Therefore, the number of setting values ​​that the processing circuit 20 calculates and writes to the register is reduced, and the processing time can be shortened by reducing the processing of setting values ​​by the processing circuit 20 for each period of the PWM signal. The period of the PWM signal cannot be made shorter than the processing time for updating the setting values ​​by the processing circuit 20 for each period of the PWM signal, but since the PWM control device 100 can shorten the processing time, it can shorten the period of the output PWM signal.

[0064] Furthermore, in this embodiment, the PWM control device 100 may have a plurality of switchable control modes. For example, the PWM control device 100 may have a plurality of control modes, such as an interlocking setting control mode and an individual setting control mode.

[0065] The linked setting control mode is a control mode that performs the operation described using Figure 4 above. In the linked setting control mode, the processing circuit 20 updates the period setting value PRD held in the period setting register 11 for each period of the PWM signal. In the linked setting control mode, the signal generation circuit 40 generates and outputs a PWM signal based on the period setting value PRD output by the period setting register 11, and the on-width setting value DTY and rising edge timing setting value TCPP output by the linked setting circuit 30. The signal generation circuit 40 also generates and outputs a trigger signal based on the start timing setting value ADST output by the linked setting circuit 30. Therefore, the multiple multiplexers 12a, 13a, and 14a each select and output the output from the linked setting circuit 30. In the linked setting control mode, the processing circuit 20 does not calculate the on-width setting value DTY, the rising edge timing setting value TCPP, and the start timing setting value ADST for the next period of the PWM signal. Furthermore, in the linked setting control mode, the processing circuit 20 does not update the ON width setting value DTY held in the ON width setting register 12, the rising edge timing setting value TCMP held in the rising edge setting register 13, or the start timing setting value ADST held in the AD start setting register 14.

[0066] On the other hand, in individual setting control mode, the processing circuit 20 updates the period setting value PRD held in the period setting register 11, the on-width setting value DTY held in the on-width setting register 12, the rising edge timing setting value TCPMP held in the rising edge setting register 13, and the start timing setting value ADST held in the AD start setting register 14, for each period of the PWM signal. Also in individual setting control mode, the signal generation circuit 40 generates and outputs a PWM signal based on the period setting value PRD output by the period setting register 11, the on-width setting value DTY output by the on-width setting register 12, and the rising edge timing setting value TCPMP output by the rising edge setting register 13. The signal generation circuit 40 also generates and outputs a trigger signal based on the start timing setting value ADST output by the AD start setting register 14. Therefore, multiplexer 12a selects and outputs the output from the ON width setting register 12, multiplexer 13a selects and outputs the output from the rising edge setting register 13, and multiplexer 14a selects and outputs the output from the AD start setting register 14.

[0067] In the individual setting control mode, in step S2 above, the processing circuit 20 further calculates not only the period setting value PRD for the next cycle of the PWM signal, but also the on-width setting value DTY, the rising edge timing setting value TCPMP, and the start timing setting value ADST. In this case, the processing circuit 20 may individually calculate the period setting value PRD, the on-width setting value DTY, the rising edge timing setting value TCPMP, and the start timing setting value ADST based on the digital values ​​acquired in step S1. Alternatively, the processing circuit 20 may calculate at least one of these setting values ​​based on the digital values ​​acquired in step S1, and then use the calculated setting value to calculate the remaining setting values. For example, the processing circuit 20 may calculate the remaining setting values ​​in a predetermined ratio to the calculated setting value.

[0068] In the individual setting control mode, in step S3 above, the processing circuit 20 updates not only the period setting value PRD held in the period setting register 11, but also the on-width setting value DTY held in the on-width setting register 12, the rising edge timing setting value TCPMP held in the rising edge setting register 13, and the start timing setting value ADST held in the AD start setting register 14. In the individual setting control mode, the degree of freedom in setting the period setting value PRD, the on-width setting value DTY, the rising edge timing setting value TCPMP, and the start timing setting value ADST can be increased. For example, in the individual setting control mode, the PWM control device 100 may switch the output signal from a PWM signal to a PFM signal.

[0069] The PWM control device 100 may switch between linked setting control mode and individual setting control mode based on user input, or it may switch when predetermined conditions are met.

[0070] The PWM control device 100, for example, in the linked setting control mode, fixes the duty cycle of the output PWM signal and changes its period, and in the individual setting control mode, fixes the period of the output PWM signal and changes its duty cycle. In this case, the PWM control device 100 operates in the linked setting control mode when the period of the PWM signal is within a predetermined range, and operates in the individual setting control mode when the period of the PWM signal is outside the predetermined range. The control method using the PWM signal in the individual setting control mode of the PWM control device 100 and the conditions for switching between the linked setting control mode and the individual setting control mode are not limited to the above example and are not particularly restricted.

[0071] The PWM control device 100 may be a device capable of operating only in the interlocking setting control mode. In this case, the PWM control device 100 does not need to have an on-width setting register 12, a rising edge setting register 13, an AD start setting register 14, and multiple multiplexers 12a, 13a, and 14a. In this case, the on-width setting value DTY and the rising edge timing setting value TCMP output by the interlocking setting circuit 30 are directly input to the PWM signal generation circuit 41, and the start timing setting value ADST output by the interlocking setting circuit 30 is directly input to the AD start trigger signal generation circuit 42.

[0072] [Modification 1] Next, Modification 1 of the embodiment will be described. In the following description of Modification 1, the differences from the embodiment will be the main focus, and the similarities will be omitted or simplified.

[0073] Figure 5 is a block diagram showing an example of the configuration of the PWM control device 100A according to this modified example. Figure 6 is a block diagram showing a detailed example of the configuration of the interlocking setting circuit 30A provided in the PWM control device 100A according to this modified example. In Figures 5 and 6, an example of the signal flow in the PWM control device 100A is indicated by arrows.

[0074] As shown in Figure 5, the PWM control device 100A according to this modified example differs from the PWM control device 100 according to the embodiment mainly in that it includes an interlocking setting circuit 30A instead of the interlocking setting circuit 30. Furthermore, as shown in Figure 6, the interlocking setting circuit 30A is a dedicated logic circuit that, in addition to the configuration of the interlocking setting circuit 30, further includes a period limit setting circuit 34, an on-width correction circuit 35, and an AD start limit setting circuit 36.

[0075] In the PWM control device 100A, the period setting value PRD output by the period setting register 11 is input to the PWM signal generation circuit 41 and the count circuit 43 via the interlocking setting circuit 30A.

[0076] The interlocking setting circuit 30A restricts the period setting value PRD output by the period setting register 11 to within a predetermined range (in other words, if it is outside the predetermined range) and outputs it. In this case, the interlocking setting circuit 30A calculates and outputs the ON width setting value DTY in conjunction with the period setting value PRD output by the period setting register 11, rather than the period setting value PRD restricted to the predetermined range. Therefore, when the period setting value PRD output by the period setting register 11 exceeds the predetermined range, the PWM control device 100A outputs a PWM signal that fixes the period and changes the duty cycle.

[0077] Furthermore, if the calculated start timing setting value ADST exceeds a predetermined range (in other words, is outside the predetermined range), the interlocking setting circuit 30A limits the start timing setting value ADST to within that predetermined range and outputs it. The start timing setting value ADST calculated by the interlocking setting circuit 30A is, for example, a value obtained by multiplying the period setting value PRD by a predetermined ratio z.

[0078] Here, an example of the configuration of the specific interlocking setting circuit 30A will be explained using Figure 6. As shown in Figure 6, the interlocking setting circuit 30A includes an ON width calculation circuit 31, a rising edge calculation circuit 32, an AD start calculation circuit 33, a period limit setting circuit 34, an ON width correction circuit 35, and an AD start limit setting circuit 36. In the interlocking setting circuit 30A, the period setting value PRD output by the period setting register 11 is input to the period limit setting circuit 34 and the ON width correction circuit 35.

[0079] The period limit setting circuit 34 limits the input period setting value PRD to a predetermined limit value LIM_P. In the example shown in Figure 6, the period limit setting circuit 34 limits and outputs the period setting value PRD so that it is greater than or equal to the predetermined limit value LIM_P. Specifically, if the input period setting value PRD is greater than or equal to the predetermined limit value LIM_P, the period limit setting circuit 34 outputs the input period setting value PRD as is. Also, if the input period setting value PRD is less than the predetermined limit value LIM_P, the period limit setting circuit 34 limits the input period setting value PRD to the predetermined limit value LIM_P and outputs it. In other words, in this case, the period limit setting circuit 34 outputs the predetermined limit value LIM_P as the period setting value PRD. This automatically prevents the period of the output PWM signal from becoming shorter than the period achievable by the PWM control device 100, without requiring any processing in the processing circuit 20.

[0080] In the period limit setting circuit 34, in addition to a predetermined limit value LIM_P that defines the lower limit of the period setting value PRD, or alternatively, a predetermined limit value that defines the upper limit of the period setting value PRD may be set. This makes it possible to automatically avoid the period of the PWM signal output by the PWM control device 100 becoming longer than a predetermined length without any processing being performed in the processing circuit 20.

[0081] The period setting value PRD output by the period limit setting circuit 34 is input to the ON width calculation circuit 31, the rising edge calculation circuit 32, and the AD start calculation circuit 33. Therefore, in the interlocking setting circuit 30A, if the period setting value PRD output by the period setting register 11 is smaller than a predetermined limit value LIM_P, the ON width calculation circuit 31, the rising edge calculation circuit 32, and the AD start calculation circuit 33 each calculate and output setting values ​​that, for example, are predetermined ratios x, y, and z with respect to the predetermined limit value LIM_P. On the other hand, if the period setting value PRD output by the period setting register 11 is greater than or equal to the predetermined limit value LIM_P, the ON width calculation circuit 31, the rising edge calculation circuit 32, and the AD start calculation circuit 33 each calculate and output setting values ​​that, for example, are predetermined ratios x, y, and z with respect to the period setting value PRD output by the period setting register 11. The period setting value PRD output by the period limit setting circuit 34 is also input to the PWM signal generation circuit 41 and the count circuit 43. As described above, the ON width calculation circuit 31, the rising edge calculation circuit 32, and the AD start calculation circuit 33 may each add values ​​α, β, and γ to the value obtained by multiplying the ratios x, y, and z when calculating the setting value and output it.

[0082] In the interlocking setting circuit 30A, the ON width setting value DTY output by the ON width calculation circuit 31 is input to the ON width correction circuit 35. Also, the start timing setting value ADST output by the AD start calculation circuit 33 is input to the AD start limit setting circuit 36.

[0083] The ON-Width Correction Circuit 35 corrects and outputs the ON-Width setting value DTY input from the ON-Width Calculation Circuit 31 according to the period setting value PRD output by the period setting register 11. If the period setting value PRD output by the period setting register 11 is greater than or equal to a predetermined limit value LIM_P, the ON-Width Correction Circuit 35 outputs the ON-Width setting value DTY input from the ON-Width Calculation Circuit 31 as is. On the other hand, if the period setting value PRD output by the period setting register 11 is less than a predetermined limit value LIM_P, the ON-Width Correction Circuit 35 corrects and outputs the ON-Width setting value DTY input from the ON-Width Calculation Circuit 31. In this case, for example, the ON-Width Correction Circuit 35 corrects and outputs the ON-Width setting value DTY so that it becomes a predetermined ratio x with respect to the period setting value PRD output by the period setting register 11. The ON-Width Correction Circuit 35 may also add a value α to the value after multiplying by the ratio x and output it. The ON-width setting value DTY output by the ON-width correction circuit 35 is input to the multiplexer 12a.

[0084] The AD start limit setting circuit 36 ​​limits the input start timing setting value ADST to a predetermined limit value LIM_A. In the example shown in Figure 6, the AD start limit setting circuit 36 ​​limits the start timing setting value ADST to be less than or equal to the predetermined limit value LIM_A. Specifically, if the input start timing setting value ADST is less than or equal to the predetermined limit value LIM_A, the AD start limit setting circuit 36 ​​outputs the input start timing setting value ADST as is. Also, if the input start timing setting value ADST is greater than the predetermined limit value LIM_A, the AD start limit setting circuit 36 ​​limits the input start timing setting value ADST to the predetermined limit value LIM_A and outputs it. In other words, in this case, the AD start limit setting circuit 36 ​​outputs the predetermined limit value LIM_A as the start timing setting value ADST. This automatically avoids delays in the start of AD conversion, which is the starting point for the setting value update process by the processing circuit 20, without requiring any processing by the processing circuit 20. The start timing setting value ADST output by the AD start limit setting circuit 36 ​​is input to the multiplexer 14a.

[0085] In the AD start limit setting circuit 36, in addition to a predetermined limit value LIM_A that defines the upper limit of the start timing setting value ADST, or alternatively, a predetermined limit value that defines the lower limit of the start timing setting value ADST may be set. This makes it possible to delay the start of AD conversion by a predetermined amount from the start of the PWM signal cycle, thereby suppressing the effect of switching noise caused by voltage fluctuations of the PWM signal at the start of the PWM signal cycle on AD conversion.

[0086] In addition, in the interlocking setting circuit 30A, the rising timing setting value TCMP may be corrected according to the period setting value PRD output by the period setting register 11, similar to the ON width setting value DTY. Furthermore, the interlocking setting circuit 30A does not need to have one of the following functions: a function to limit the output period setting value PRD to a predetermined range, or a function to limit the output start timing setting value ADST to a predetermined range.

[0087] Furthermore, the PWM control device 100A may, for example, have multiple control modes, such as an interlocking setting control mode and an individual setting control mode, similar to the PWM control device 100 described above, but may also be a device capable of operating only in the interlocking setting control mode.

[0088] [Modified Example 2] Next, Modified Example 2 of the embodiment will be described. In the following description of Modified Example 2, the differences from the embodiment and Modified Example 1 will be explained in detail, and the explanation of the common points will be omitted or simplified. In this modified example, an example will be described in which the remaining setting values ​​are calculated in conjunction with the setting values ​​other than the period setting value PRD among the period setting value PRD, the ON width setting value DTY, the rising timing setting value TCMP, and the start timing setting value ADST.

[0089] Figure 7 is a block diagram showing an example of the configuration of the PWM control device 100B according to this modified example. In Figure 7, an example of the signal flow in the PWM control device 100B is indicated by arrows.

[0090] As shown in Figure 7, the PWM control device 100B according to this modified example differs from the PWM control device 100 according to the embodiment mainly in that it is equipped with an interlocking setting circuit 30B instead of the interlocking setting circuit 30, and a multiplexer 11a instead of a multiplexer 12a. In this modified example, the on-width setting register 12 is an example of a first register, and the period setting register 11, rising edge setting register 13, and AD start setting register 14 are examples of one or more second registers. Also in this modified example, the on-width setting value DTY is an example of a first setting value, and the period setting value PRD, the rising edge timing setting value TCMP, and the start timing setting value ADST are examples of the remaining setting values ​​other than the first setting value.

[0091] In the PWM control device 100B, the period setting value PRD output by the period setting register 11 is not input to the interlocking setting circuit 30B, while the on-width setting value DTY output by the on-width setting register 12 is input to the interlocking setting circuit 30B. In addition, the on-width setting value DTY output by the on-width setting register 12 is also input to the PWM signal generation circuit 41.

[0092] The interlocking setting circuit 30B calculates and outputs the period setting value PRD, the rising edge timing setting value TCPMP, and the start timing setting value ADST in conjunction with the on-width setting value DTY output by the on-width setting register 12. The interlocking setting circuit 30B is a dedicated logic circuit (hardware circuit) for calculating the period setting value PRD, the rising edge timing setting value TCPMP, and the start timing setting value ADST.

[0093] The interlocking setting circuit 30B calculates, for example, the period setting value PRD, the rising edge timing setting value TCMP, and the start timing setting value ADST, so that they are each set to a predetermined ratio with respect to the ON width setting value DTY. Alternatively, the interlocking setting circuit 30B may calculate at least one of the period setting value PRD, the rising edge timing setting value TCMP, and the start timing setting value ADST by multiplying the ON width setting value DTY output by the ON width setting register 12 by a predetermined ratio and adding a predetermined value to the multiplied value.

[0094] In the PWM control device 100B, the period setting value PRD output by the interlocking setting circuit 30B and the period setting value PRD output by the period setting register 11 are input to the multiplexer 11a. The multiplexer 11a selects and outputs one of the period setting value PRD output by the period setting register 11 and the period setting value PRD output by the interlocking setting circuit 30B. The period setting value PRD output by the multiplexer 11a is input to the PWM signal generation circuit 41 and the count circuit 43. The output of the multiplexer 11a is determined, for example, by a selection signal output from the processing circuit 20.

[0095] In the PWM control device 100B, the processing circuit 20 updates the ON-width setting value DTY held in the ON-width setting register 12 for each period of the PWM signal. More specifically, the processing circuit 20 calculates the ON-width setting value DTY for the next period of the PWM signal based on the signal output by the controlled device 200, and updates the ON-width setting value DTY held in the ON-width setting register 12 to the calculated value.

[0096] In the PWM control device 100B, in the linked setting control mode, the processing circuit 20 updates the on-width setting value DTY held in the on-width setting register 12 at each cycle of the PWM signal. Also in the linked setting control mode, the signal generation circuit 40 generates and outputs a PWM signal based on the on-width setting value DTY output by the on-width setting register 12, and the cycle setting value PRD and rising edge timing setting value TCMP output by the linked setting circuit 30B. The signal generation circuit 40 also generates and outputs a trigger signal based on the start timing setting value ADST output by the linked setting circuit 30B. Therefore, the multiple multiplexers 11a, 13a, and 14a select and output the output from the linked setting circuit 30B.

[0097] On the other hand, in the PWM control device 100B, in individual setting control mode, the processing circuit 20 updates the period setting value PRD held in the period setting register 11, the on-width setting value DTY held in the on-width setting register 12, the rising edge timing setting value TCPMP held in the rising edge setting register 13, and the start timing setting value ADST held in the AD start setting register 14, for each period of the PWM signal. Also in individual setting control mode, the signal generation circuit 40 generates and outputs a PWM signal based on the period setting value PRD output by the period setting register 11, the on-width setting value DTY output by the on-width setting register 12, and the rising edge timing setting value TCPMP output by the rising edge setting register 13. The signal generation circuit 40 also generates and outputs a trigger signal based on the start timing setting value ADST output by the AD start setting register 14. Therefore, the multiple multiplexers 11a, 13a, and 14a select and output the output from the period setting register 11, the rising edge setting register 13, and the AD start setting register 14.

[0098] Furthermore, in the PWM control device 100B, the interlocking setting circuit 30B may output at least one of the period setting value DTY and the start timing setting value ADST within a predetermined range, as described in the interlocking setting circuit 30A above. Also, the PWM control device 100B may be a device capable of operating only in interlocking setting control mode.

[0099] Furthermore, the above describes an example in which the remaining setting values ​​are calculated in conjunction with the on-width setting value DTY, one of the period setting value PRD, on-width setting value DTY, rising-point timing setting value TCPMP, and start timing setting value ADST, but this is not limited to this example. The interlocking setting circuit 30B may calculate the remaining setting values ​​in conjunction with any of the period setting value PRD, on-width setting value DTY, rising-point timing setting value TCPMP, and start timing setting value ADST, other than the period setting value PRD.

[0100] For example, the interlocking setting circuit 30B may calculate and output the period setting value PRD, the on-width setting value DTY, and the start timing setting value ADST in conjunction with the rising timing setting value TCPMP output by the rising timing setting register 13. In this case, the on-width setting register 12 and the rising timing setting register 13 are swapped from the example shown in Figure 7, and a multiplexer 12a is provided instead of a multiplexer 13a. In this case, the rising timing setting value TCPMP is an example of a first setting value, and the period setting value PRD, the on-width setting value DTY, and the start timing setting value ADST are examples of the remaining setting values ​​other than the first setting value.

[0101] Alternatively, for example, the interlocking setting circuit 30B may calculate and output the period setting value PRD, the on-width setting value DTY, and the rising edge timing setting value TCPP in conjunction with the start timing setting value ADST output by the AD start setting register 14. In this case, the on-width setting register 12 and the AD start setting register 14 are swapped from the example shown in Figure 7, the output of the AD start setting register 14 is input to the interlocking setting circuit 30B and the AD start trigger signal generation circuit 42, and a multiplexer 12a is provided instead of a multiplexer 14a. In this case, the start timing setting value ADST is an example of a first setting value, and the period setting value PRD, the on-width setting value DTY, and the rising edge timing setting value TCPP are examples of the remaining setting values ​​other than the first setting value.

[0102] (Other) The PWM control devices according to one or more embodiments of this disclosure have been described above based on embodiments, but this disclosure is not limited to embodiments. Without departing from the spirit of this disclosure, various modifications that a person skilled in the art can conceive of may be applied to each embodiment, and forms constructed by combining components from different embodiments may also be included within the scope of one or more embodiments of this disclosure.

[0103] Furthermore, in the above embodiment, the multiple setting values ​​set in the PWM control device included, but are not limited to, the period setting value PRD, the on-width setting value DTY, the rising edge timing setting value TCMP, and the start timing setting value ADST. The multiple setting values ​​set in the PWM control device may include setting values ​​other than these, and may not include all of these setting values. For example, the multiple setting values ​​set in the PWM control device may not include the on-width setting value DTY. In this case, the on-width of the PWM signal is set by the period setting value PRD and the rising edge timing setting value TCMP.

[0104] Furthermore, the PWM control device according to this disclosure does not need to include all of the components described in the above embodiments, and may consist only of components necessary to perform the desired operation.

[0105] Furthermore, the general or specific embodiments of this disclosure may be implemented as a system, apparatus, method, integrated circuit, computer program, or recording medium such as a computer-readable CD-ROM. They may also be implemented as any combination of a system, apparatus, method, integrated circuit, computer program, and recording medium.

[0106] For example, this disclosure may be implemented as a PWM control device of the above embodiment, as a method for updating setting values ​​including steps (processing) performed by the processing circuit of the PWM control device, as a program for causing a computer to execute such an update method, or as a computer-readable non-temporary recording medium on which such a program is recorded.

[0107] The following are examples of PWM control devices according to the present disclosure, as described based on the embodiments described above. The PWM control devices according to the present disclosure are not limited to the following examples.

[0108] For example, a PWM control device according to a first aspect of the present disclosure is a PWM control device that outputs a PWM signal for controlling a device to be controlled, and comprises: a first register that holds a first setting value among a plurality of setting values ​​necessary for control by the PWM signal and outputs the held first setting value; a processing circuit that updates the first setting value held in the first register; an interlocking setting circuit that calculates and outputs the remaining setting values ​​among the plurality of setting values ​​other than the first setting value in conjunction with the first setting value output by the first register; and a signal generation circuit that generates and outputs the PWM signal based on the remaining setting values ​​output by the interlocking setting circuit and at least a portion of the setting values ​​among the first setting value output by the first register.

[0109] As a result, the processing circuit only needs to update the first setting value, and the linked setting circuit automatically updates the remaining setting values ​​without any further processing by the processing circuit. Therefore, the number of setting values ​​that the processing circuit writes to the register is reduced, and the processing time can be shortened by reducing the processing time required to update the setting values ​​by the processing circuit. Although the period of the PWM signal cannot be shortened to be shorter than the processing time required to update the setting values ​​by the processing circuit, the PWM control device according to this embodiment can shorten the period of the output PWM signal because it can shorten the processing time.

[0110] Furthermore, for example, the PWM control device according to the second aspect of this disclosure is the PWM control device according to the first aspect, wherein the first setting value is a setting value for the period of the PWM signal.

[0111] This allows the remaining settings to be updated in conjunction with the set value of the PWM signal period.

[0112] Furthermore, for example, the PWM control device according to the third aspect of this disclosure is the PWM control device according to the first aspect, wherein the first setting value is a setting value for the on-width or off-width of the PWM signal.

[0113] This allows the remaining settings to be updated in conjunction with the on-width or off-width setting of the PWM signal.

[0114] Furthermore, for example, the PWM control device according to the fourth aspect of this disclosure is the PWM control device according to the first aspect, wherein the signal generation circuit generates and outputs a trigger signal indicating the start timing when the signal output from the controlled device is converted to AD, and the first set value is the set value of the start timing.

[0115] This allows the remaining settings to be updated in conjunction with the setting for the start timing during AD conversion.

[0116] Furthermore, for example, the PWM control device according to the fifth aspect of this disclosure is the PWM control device according to the first aspect, wherein the first setting value is a setting value for the rising or falling timing of the PWM signal.

[0117] This allows the remaining settings to be updated in conjunction with the setting value for the rising or falling edge timing of the PWM signal.

[0118] Furthermore, for example, a PWM control device according to a sixth aspect of the present disclosure is a PWM control device according to a first or second aspect, wherein the first setting value is a setting value for the period of the PWM signal, and the remaining setting values ​​include setting values ​​for the on-width or off-width of the PWM signal, and the interlocking setting circuit outputs the setting value for the period limited to a predetermined range when the setting value for the period held in the first register exceeds a predetermined range, and calculates and outputs the setting value for the on-width or off-width in conjunction with the setting value for the period held in the first register.

[0119] This allows the PWM signal period to be automatically limited within a predetermined range without any processing in the processing circuit, and if the period exceeds the predetermined range, the control changes to one that changes the duty cycle of the PWM signal.

[0120] Furthermore, for example, a PWM control device according to a seventh aspect of the present disclosure is a PWM control device according to any one of the first to third aspects, fifth aspect, and sixth aspect, wherein the signal generation circuit generates and outputs a trigger signal indicating the start timing when the signal output from the controlled device is AD converted, the remaining setting value includes the setting value of the start timing, the interlocking setting circuit limits the setting value of the start timing to within a predetermined range when the setting value of the start timing, calculated to be a predetermined ratio with respect to the first setting value, exceeds a predetermined range, and outputs the signal generation circuit generates and outputs the trigger signal based on the setting value of the start timing output by the interlocking setting circuit.

[0121] This allows the start timing of the AD conversion to be automatically limited to a predetermined range without any processing being performed in the processing circuit.

[0122] Furthermore, for example, a PWM control device according to the eighth aspect of the present disclosure is a PWM control device according to any one of the first to seventh aspects, further comprising one or more second registers that hold the remaining setting values ​​and output the held remaining setting values, and having a plurality of switchable control modes, including an interlocked setting control mode and an individual setting control mode, wherein in the interlocked setting control mode, the processing circuit updates the first setting value held in the first register, and the signal generation circuit generates and outputs the PWM signal based on at least some of the setting values ​​of the remaining setting values ​​output by the interlocked setting circuit and the first setting value output by the first register, and in the individual setting control mode, the processing circuit updates the first setting value held in the first register and the remaining setting values ​​held in the one or more second registers, and the signal generation circuit generates and outputs the PWM signal based on at least some of the setting values ​​of the remaining setting values ​​output by the one or more second registers and the first setting value output by the first register.

[0123] This allows switching between a linked setting control mode, which shortens the period of the output PWM signal, and an individual setting control mode, which increases the flexibility of setting multiple values, as needed.

[0124] Furthermore, for example, a PWM control device according to the ninth aspect of this disclosure is a PWM control device according to any one of the first to eighth aspects, wherein the interlocking setting circuit calculates at least one of the remaining setting values ​​by multiplying the first setting value by a predetermined ratio.

[0125] This allows for the implementation of an interlocking setting circuit with a simple circuit configuration.

[0126] Furthermore, for example, a PWM control device according to a tenth aspect of the present disclosure is a PWM control device according to any one of the first to eighth aspects, wherein the interlocking setting circuit calculates at least one of the remaining setting values ​​by multiplying the first setting value by a predetermined ratio and adding a predetermined value to the multiplied value.

[0127] This allows for adjustment of the remaining setting values ​​according to the waveform of the signal output from the controlled device.

[0128] The PWM control device described herein can be used to control various devices, such as power supply units.

[0129] 11 Period setting registers 11a, 12a, 13a, 14a Multiplexer 12 On-width setting register 13 Rising edge setting register 14 AD start setting register 20 Processing circuits 30, 30A, 30B Interlocking setting circuits 31 On-width calculation circuit 32 Rising edge calculation circuit 33 AD start calculation circuit 34 Period limit setting circuit 35 On-width correction circuit 36 ​​AD start limit setting circuit 40 Signal generation circuit 41 PWM signal generation circuit 42 AD start trigger signal generation circuit 43 Counting circuit 70 AD conversion circuit 100, 100A, 100B PWM control device 200 Controlled device

Claims

1. A PWM control device that outputs a PWM signal for controlling a device to be controlled, comprising: a first register that holds a first setting value among a plurality of setting values ​​necessary for control by the PWM signal and outputs the held first setting value; a processing circuit that updates the first setting value held in the first register; an interlocking setting circuit that calculates and outputs the remaining setting values ​​other than the first setting value among the plurality of setting values ​​in conjunction with the first setting value output by the first register; and a signal generation circuit that generates and outputs the PWM signal based on the remaining setting values ​​output by the interlocking setting circuit and at least a portion of the setting values ​​among the first setting value output by the first register.

2. The PWM control device according to claim 1, wherein the first setting value is a setting value for the period of the PWM signal.

3. The PWM control device according to claim 1, wherein the first setting value is a setting value for the on-width or off-width of the PWM signal.

4. The signal generation circuit generates and outputs a trigger signal indicating the start timing when the signal output from the controlled device is converted to AD, and the first set value is the set value of the start timing, as described in claim 1.

5. The PWM control device according to claim 1, wherein the first setting value is a setting value for the rising or falling timing of the PWM signal.

6. The PWM control device according to claim 1 or 2, wherein the first setting value is a setting value for the period of the PWM signal, the remaining setting values ​​include setting values ​​for the on-width or off-width of the PWM signal, and the interlocking setting circuit outputs the setting value for the period limited to a predetermined range when the setting value for the period held in the first register exceeds a predetermined range, and calculates and outputs the setting value for the on-width or off-width in conjunction with the setting value for the period held in the first register.

7. The PWM control device according to any one of claims 1 to 3, 5 and 6, wherein the signal generation circuit generates and outputs a trigger signal indicating the start timing when the signal output from the controlled device is converted to AD, the remaining setting value includes the setting value of the start timing, the interlocking setting circuit limits the setting value of the start timing to within a predetermined range when the calculated setting value of the start timing exceeds a predetermined range and outputs it, and the signal generation circuit generates and outputs the trigger signal based on the setting value of the start timing output by the interlocking setting circuit.

8. A PWM control device according to any one of claims 1 to 7, further comprising one or more second registers that hold and output the remaining setting values, having a plurality of switchable control modes, including an interlocked setting control mode and an individual setting control mode, wherein in the interlocked setting control mode, the processing circuit updates the first setting value held in the first register, and the signal generation circuit generates and outputs the PWM signal based on at least some of the setting values ​​of the remaining setting values ​​output by the interlocked setting circuit and the first setting value output by the first register, wherein in the individual setting control mode, the processing circuit updates the first setting value held in the first register and the remaining setting values ​​held in the one or more second registers, and the signal generation circuit generates and outputs the PWM signal based on at least some of the setting values ​​of the remaining setting values ​​output by the one or more second registers and the first setting value output by the first register.

9. The PWM control device according to any one of claims 1 to 8, wherein the interlocking setting circuit calculates at least one of the remaining setting values ​​by multiplying the first setting value by a predetermined ratio.

10. The PWM control device according to any one of claims 1 to 8, wherein the interlocking setting circuit calculates at least one of the remaining setting values ​​by multiplying the first setting value by a predetermined ratio and adding a predetermined value to the multiplied value.