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

Claim 8:
9. A method for PWM, comprising:
obtaining, by a control word providing circuit, a target duty cycle, generating a first target frequency control word and a second target frequency control word based on the target duty cycle, and outputting the first target frequency control word and the second target frequency control word to a 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; and
outputting, by the pulse generation circuit 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;
wherein the pulse generation circuit comprises: a comparison sub-circuit, a pulse generation sub-circuit and an output selection sub-circuit; outputting the first target frequency control word and the second target frequency control word to the pulse generation circuit comprises:
outputting the first target frequency control word and the second target frequency control word to the comparison sub-circuit; and
outputting, by the pulse generation circuit in response to the first target frequency control word and the second target frequency control word, the target pulse signal whose duty cycle is the target duty cycle comprises:
determining, by the comparison sub-circuit, whether the first target frequency control word is equal to the second target frequency control word; and
if the first target frequency control word is not equal to the second target frequency control word, outputting, by the comparison sub-circuit, the first target frequency control word and the second target frequency control word to the pulse generation sub-circuit, and outputting a first control signal to the output selection sub-circuit; generating, by the pulse generation sub-circuit, the target pulse signal in response to the first target frequency control word and the second target frequency control word, and outputting the target pulse signal to the output selection sub-circuit; and outputting, by the output selection sub-circuit in response to the first control signal, the target pulse signal generated by the pulse generation sub-circuit; and
the method further comprises: if the first target frequency control word is equal to the second target frequency control word, outputting, by the comparison sub-circuit, a second control signal to the output selection sub-circuit, and outputting, by the output selection sub-circuit in response to the second control signal, a target pulse signal whose duty cycle is 1.