IP Library › Granted Patent US 8,908,719
Granted Patent B2
US 8,908,719 · App. 13/713,017 · Granted Dec 9, 2014

Clock rate controller and method thereof and electronic device thereof

Inventors: Jung-Fu Liao (Taipei, TW); Hung-Chi Huang (New Taipei, TW)
Assignee: C-Media Electronics Inc.
H04L41/081H01N5/0736H04J3/0635G06F5/06G06F13/40
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,908,719
App. No.
13/713,017
Granted
Dec 9, 2014
Kind
B2
Abstract

An exemplary embodiment of the present disclosure illustrates a clock rate control method. Firstly, a usage of a first input first output (FIFO) buffer in an electronic device is detected. Then, whether the usage falls within a first specific interval is determined, wherein the first specific interval has a first upper limit value and a first lower limit value. When the usage is larger than the first upper limit value, a clock rate of the inner device of the electronic device is increased; when the usage is less than the first lower limit value, the clock rate is decreased.

Claims (41)

1. A clock rate control method, comprising:

detecting a usage of a first-input-first-output (FIFO) buffer in an electronic device;

determining whether the usage falls within a first specific interval, wherein the first specific interval has a first upper limit value and a first lower limit value;

when the usage is larger than the first upper limit value, increasing a clock rate of an internal device of the electronic device;

when the usage is less than the first lower limit value, decreasing the clock rate;

when the usage falls within the first specific interval, calculating a deviation value between a current differential value and a previous differential value, and determining whether the deviation value falls within a second specific interval, wherein the differential value is a difference between a write pointer and a read pointer of the FIFO buffer, and the second specific interval has a second upper limit value and a second lower limit value;

when the deviation value is larger than the second upper limit value, increasing the clock rate;

when the deviation value is less than the second lower limit value, decreasing the clock rate; and

when the deviation value falls within the second specific interval, maintaining the clock rate.

2. The clock rate control method according to claim 1 , further comprising:

when the usage falls within the first specific interval, maintaining the clock rate.

3. The clock rate control method according to claim 1 , wherein the first upper limit value is the half of packet buffer number of the FIFO buffer adding a first specific value, and the first lower limit value is the half of packet buffer number of the FIFO buffer subtracting a second specific value, wherein the first specific value and the second specific value are positive integers.

4. The clock rate control method according to claim 1 , wherein the second upper limit value is a positive integer, and the second lower limit value is a negative integer.

5. A clock rate controller, comprising:

a usage detection unit, electrically connected to a FIFO buffer of an electronic device, used to detect a usage of the FIFO buffer; and

a speed up/down determining unit, electrically connected to the usage detection unit and an internal device of the electronic device, used to detect whether the usage falls within a first specific interval, wherein the first specific interval has a first upper limit value and a first lower limit value;

a deviation value calculating unit, electrically connected to the FIFO buffer and the speed up/down determining unit, used to calculate a deviation value between a current differential value and a previous differential value, wherein the differential value is a difference between a write pointer and a read pointer of the FIFO buffer;

wherein when the usage is larger than the first upper limit value, the speed up/down determining unit increases a clock rate of the internal device of the electronic device; when the usage is less than the first lower limit value, the speed up/down determining unit decreases the clock rate;

wherein when the usage falls within the first specific interval, the speed up/down determining unit determines whether the deviation value falls within a second specific interval, wherein the second specific interval has a second upper limit value and a second lower limit value; when the deviation value is larger than the second upper limit value, the speed up/down determining unit increases the clock rate; when the deviation value is less than the second lower limit value, the speed up/down determining unit decreases the clock rate; when the deviation value falls within the second specific interval, the speed up/down determining unit maintains the clock rate.

6. The clock rate controller according to claim 5 , wherein when the usage falls within the first specific interval, the speed up/down determining unit maintains the clock rate.

7. The clock rate controller according to claim 5 , wherein the first upper limit value is the half of packet buffer number of the FIFO buffer adding a first specific value, and the first lower limit value is the half of packet buffer number of the FIFO buffer subtracting a second specific value, wherein the first specific value and the second specific value are positive integers.

8. The clock rate controller according to claim 5 , wherein the second upper limit value is a positive integer, and the second lower limit value is a negative integer.

9. An electronic device, used to connect a host, comprising:

a FIFO buffer, electrically connected to the host, used to store a plurality of packet from the host;

a clock rate controller, electrically connected to the FIFO buffer, used to determines whether a usage of the FIFO buffer falls within a first specific interval, wherein the first specific interval has a first upper limit value and a first lower limit value; and

an internal device, electrically connected to the clock rate controller and the FIFO buffer, used to process the packet from the FIFO buffer according to a clock rate;

wherein when the usage is larger than the first upper limit value, the clock rate controller increases the clock rate; when the usage is less than the first lower limit value, the clock rate controller decreases the clock rate;

wherein when the usage falls within the first specific interval, the clock rate controller maintains the clock rate;

wherein the clock rate controller determines whether a deviation value between a current differential value and a previous differential value falls within a second specific interval, wherein the differential value is a difference between a write pointer and a read pointer of the FIFO buffer, and the second specific interval has a second upper limit value and a second lower limit value; when the usage falls within the first specific interval, the speed up/down determining unit determines whether the deviation value falls within a second specific interval, wherein the second specific interval has a second upper limit value and a second lower limit value; when the deviation value is larger than the second upper limit value, the clock rate controller increases the clock rate; when the deviation value is less than the second lower limit value, the clock rate controller decreases the clock rate; when the deviation value falls within the second specific interval, the clock rate controller maintains the clock rate.

10. The electronic device according to claim 9 , wherein the clock rate controller comprises:

a usage detection unit, electrically connected to the FIFO buffer, used to detect the usage; and

a speed up/down determining unit, electrically connected to the usage detection unit and the internal device, used to detect whether the usage falls within the first specific interval;

wherein when the usage is larger than the first upper limit value, the speed up/down determining unit increases the clock rate; when the usage is less than the first lower limit value, the speed up/down determining unit decreases the clock rate.

11. The electronic device according to claim 10 , wherein when the usage falls within the first specific interval, the speed up/down determining unit maintains the clock rate.

12. The electronic device according to claim 10 , wherein the clock rate controller further comprising:

a deviation value calculating unit, electrically connected to the FIFO buffer and the speed up/down determining unit, used to calculate a deviation value between a current differential value and a previous differential value, wherein the differential value is a difference between a write pointer and a read pointer of the FIFO buffer;

wherein when the usage falls within the first specific interval, the speed up/down determining unit determines whether the deviation value falls within a second specific interval, wherein the second specific interval has a second upper limit value and a second lower limit value; when the deviation value is larger than the second upper limit value, the speed up/down determining unit increases the clock rate; when the deviation value is less than the second lower limit value, the speed up/down determining unit decreases the clock rate; when the deviation value falls within the second specific interval, the speed up/down determining unit maintains the clock rate.

13. The electronic device according to claim 12 , wherein the second upper limit value is a positive integer, and the second lower limit value is a negative integer.

14. The electronic device according to claim 10 , wherein the first upper limit value is the half of packet buffer number of the FIFO buffer adding a first specific value, and the first lower limit value is the half of packet buffer number of the FIFO buffer subtracting a second specific value, wherein the first specific value and the second specific value are positive integers.

15. The electronic device according to claim 9 , wherein the first upper limit value is the half of packet buffer number of the FIFO buffer adding a first specific value, and the first lower limit value is the half of packet buffer number of the FIFO buffer subtracting a second specific value, wherein the first specific value and the second specific value are positive integers.

16. The electronic device according to claim 6 , wherein the second upper limit value is a positive integer, and the second lower limit value is a negative integer.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 13, 2012
From: LIAO, JUNG-FU; HUANG, HUNG-CHI
To: C-MEDIA ELECTRONICS INC.
Reel/Frame 029458/0918 →
Priority Claims (1)
TW 101100353 A · Jan 4, 2012 · national
Continuity (1)
Related Publication 20130170369A1 · Jul 4, 2013