Pulse width modulation control circuit and control method of pulse width modulation signal
10924094 ยท 2021-02-16
Assignee
Inventors
Cpc classification
H03K5/05
ELECTRICITY
H03K5/22
ELECTRICITY
H03K19/20
ELECTRICITY
International classification
H03K5/22
ELECTRICITY
H03K5/05
ELECTRICITY
Abstract
A pulse width modulation control circuit and a control method of a pulse width modulation signal are provided. A counter circuit generates a count value according to a phase-locked loop clock, and resets the count value according to a transition point of a synchronization signal. A comparison circuit compares the count value with a duty ratio set value, and sets the pulse width modulation signal to a high level while the count value is less than the duty ratio set value.
Claims
1. A pulse width modulation control circuit, comprising: a phase-locked loop clock generating circuit, generating a phase-locked loop clock according to a display synchronization signal; a counter circuit, coupled to the phase-locked loop clock generating circuit and generating a count value according to the phase-locked loop clock, wherein the counter circuit is not coupled to an edge detector, and the counter circuit automatically resets the count value by presetting a reset period of the counter circuit equal to a signal cycle of the display synchronization signal, wherein the reset period of the counter circuit meets a form of 2{circumflex over ()}N, and N=3; and a comparison circuit, coupled to the counter circuit and generating a pulse width modulation signal to control a display period of a display frame by comparing a difference between the count value associated with the display synchronization signal and a duty ratio set value associated with the display period of the display frame, wherein the comparison circuit determines whether the count value associated with the display synchronization signal is less than the duty ratio set value associated with the display period of the display frame, wherein the comparison circuit sets the pulse width modulation signal to a high level while the count value associated with the display synchronization signal is less than the duty ratio set value associated with the display period of the display frame.
2. The pulse width modulation control circuit according to claim 1, wherein the counter circuit periodically resets the count value according to the transition point of the display synchronization signal.
3. The pulse width modulation control circuit according to claim 1, wherein the display synchronization signal is a vertical synchronization signal.
4. The pulse width modulation control circuit according to claim 1, wherein the count value is reset according to a rising edge of the display synchronization signal.
5. A control method of a pulse width modulation signal, comprising: generating a phase-locked loop clock according to a display synchronization signal; generating a count value by a counter circuit according to the phase-locked loop clock, wherein the counter circuit is not coupled to an edge detector, and the counter circuit automatically resets the count value by presetting a reset period of the counter circuit equal to a signal cycle of the display synchronization signal, wherein the reset period of the counter circuit meets a form of 2{circumflex over ()}N, and N=3; comparing a difference between the count value associated with the display synchronization signal and a duty ratio set value associated with a display period of the display frame to generate the pulse width modulation signal so as to control a display period of a display frame; judging whether the count value associated with the display synchronization signal is less than the duty ratio set value associated with a display period of the display frame or not; when the count value associated with the display synchronization signal is less than the duty ratio set value associated with a display period of the display frame, setting the pulse width modulation signal to a high level; and when the count value associated with the display synchronization signal is not less than the duty ratio set value associated with a display period of the display frame, setting the pulse width modulation signal to a low level.
6. The control method of the pulse width modulation signal according to claim 5, further comprising: periodically resetting the count value according to the transition point of the display synchronization signal.
7. The control method of the pulse width modulation signal according to claim 5, wherein the display synchronization signal is a vertical synchronization signal.
8. The control method of the pulse width modulation signal according to claim 5, wherein the count value is reset according to a rising edge of the display synchronization signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
DESCRIPTION OF THE EMBODIMENTS
(7)
(8) The comparison circuit 106 is used for generating a pulse width modulation signal PWM1 according to the count value C1 and a duty ratio set value. The pulse width modulation signal output by the comparison circuit 106 when the count value C1 is less than the duty ratio set value is at a high level, while the pulse width modulation signal PWM1 output by the comparison circuit 106 when the count value C1 is not less than the duty ratio set value is at a low level. The comparison circuit 106 can be made to output the pulse width modulation signal PWM1 converted between the high level and the low level under the coordination of resetting the count value C1 by utilizing the reset signal Sr1 generated by the edge detector 108. The duty ratio of the pulse width modulation signal PWM1 is decided by the duty ratio set value.
(9) The pulse width modulation signal PWM1 may be, for example, transmitted to a driving circuit for driving a backlight module of a display, since the synchronization signal Sync1 may be the vertical synchronization signal, the backlight module can be made to provide a backlight source in a display period of each frame by resetting the count value C1 according to the synchronization signal Sync1 and cooperating with the appropriate duty ratio set value, so that a screen is displayed.
(10) Therefore, if the count value C1 is reset by virtue of the reset signal Sr1 generated according to the transition point of the synchronization signal Sync1 detected by the edge detector 108, a register circuit for storing periodic data of the pulse width modulation signal and a comparator circuit for comparing the periodic data with the count value in a known technology can be omitted, and the circuit area used by the pulse width modulation control circuit can be effectively reduced.
(11) Furthermore, the implementation of the edge detector 108 can be as shown in
(12)
(13)
(14) Based on the above, the counter circuit according to the embodiments of the present invention is capable of generating the count value according to the phase-locked loop clock and resetting the count value according to the transition point of the synchronization signal, so that circuits for resetting the count value can be saved, and furthermore, the circuit area used by the pulse width modulation control circuit can be effectively reduced.
(15) Although the invention is described with reference to the above embodiments, the embodiments are not intended to limit the invention. A person of ordinary skill in the art may make variations and modifications without departing from the spirit and scope of the invention. Therefore, the protection scope of the invention should be subject to the appended claims.