Patent ID: 11949422
Assignee: BOE TECHNOLOGY GROUP CO., LTD.
Field: Basic communication processes (Electrical engineering)
Classification: CPC H | IPC H

Claim 12:
13. An electronic device, comprising a controlled circuit and a PWM circuit, wherein
the PWM circuit comprises a control word providing circuit and a pulse generation circuit, and the control word providing circuit is connected to the pulse generation circuit;
the control word providing circuit is configured to: obtain a target duty cycle, generate a first target frequency control word and a second target frequency control word based on the target duty cycle, and output the first target frequency control word and the second target frequency control word to the pulse generation circuit, wherein a ratio of the first target frequency control word to the second target frequency control word is the target duty cycle;
the pulse generation circuit is configured to output, in response to the first target frequency control word and the second target frequency control word, a target pulse signal whose duty cycle is the target duty cycle;
the PWM circuit is connected to the controlled circuit, and the controlled circuit is configured to operate in response to a target pulse signal output by the PWM circuit;
the pulse generation circuit comprises a comparison sub-circuit, a pulse generation sub-circuit and an output selection sub-circuit;
the comparison sub-circuit is respectively connected to the control word providing circuit, the pulse generation sub-circuit and the output selection sub-circuit, the control word providing circuit is configured to output the first target frequency control word and the second target frequency control word to the comparison sub-circuit; and the comparison sub-circuit is configured to: determine whether the first target frequency control word is equal to the second target frequency control word; if the first target frequency control word is not equal to the second target frequency control word, output the first target frequency control word and the second target frequency control word to the pulse generation sub-circuit and output a first control signal to the output selection sub-circuit; and the first target frequency control word is equal to the second target frequency control word, output a second control signal to the output selection sub-circuit;
the pulse generation sub-circuit is connected to the output selection sub-circuit, and the pulse generation sub-circuit is configured to: generate the target pulse signal and output the target pulse signal to the output selection sub-circuit in response to the first target frequency control word and the second target frequency control word; and
the output selection sub-circuit is configured to: output, in response to the first control signal, the target pulse signal provided by the pulse generation sub-circuit, and output, in response to the second control signal, a target pulse signal whose duty cycle is 1.