TWI748659B - Device and method for LED display control in charging and discharging system - Google Patents
Device and method for LED display control in charging and discharging system Download PDFInfo
- Publication number
- TWI748659B TWI748659B TW109132777A TW109132777A TWI748659B TW I748659 B TWI748659 B TW I748659B TW 109132777 A TW109132777 A TW 109132777A TW 109132777 A TW109132777 A TW 109132777A TW I748659 B TWI748659 B TW I748659B
- Authority
- TW
- Taiwan
- Prior art keywords
- charging
- display code
- signal
- display
- code
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/22—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
- G09G3/30—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
- G09G3/32—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
- H02J7/0048—Detection of remaining charge capacity or state of charge [SOC]
- H02J7/0049—Detection of fully charged condition
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
公開了用於充放電系統中的發光二極體(Light-Emitting Diode,LED)顯示控制的裝置和方法。該裝置包括顯示代碼生成器,被配置為基於充放電系統中的電池的電壓訊號和充電狀態訊號、LED顯示使能訊號、以及多個預設電壓閾值訊號,來生成充電顯示代碼或放電顯示代碼;以及解碼驅動器,被配置為根據充電狀態訊號來對充電顯示代碼或放電顯示代碼進行解碼以生成驅動訊號,該驅動訊號用於驅動LED進行顯示。 Disclosed are a device and method for display control of a light-emitting diode (LED) in a charging and discharging system. The device includes a display code generator configured to generate a charge display code or a discharge display code based on the voltage signal and charge status signal of the battery in the charging and discharging system, the LED display enable signal, and a plurality of preset voltage threshold signals ; And a decoding driver, configured to decode the charging display code or the discharging display code according to the charging state signal to generate a driving signal, the driving signal is used to drive the LED for display.
Description
本發明總體涉及充放電技術領域,更具體地涉及用於充放電系統中的發光二極體(Light-Emitting Diode,LED)顯示控制的裝置和方法。 The present invention generally relates to the field of charging and discharging technology, and more specifically to a device and method for controlling a light-emitting diode (LED) display in a charging and discharging system.
在大多數充放電系統中,經常使用LED燈來直觀地顯示充放電系統的工作狀態和電池電量。 In most charging and discharging systems, LED lights are often used to visually display the working status and battery power of the charging and discharging system.
目前主流的LED顯示控制方案有兩種:一種是通過利用電池電壓、電池電流、以及電池內阻資訊做精確運算生成其電量曲線來控制LED顯示,但這種方案較為複雜、耗費大量資源;另一種是只根據電池電壓做粗略的顯示,該方案雖然耗費的資源較少,但實際應用時由於感測到的電池電壓在不同的狀態、不同的電流下會有不同,引起了很多顯示問題。常見的問題包括:在充電狀態下顯示電量遞減變化而在放電狀態下顯示電量遞增變化,在充電和放電狀態互相切換時發生跳燈,即亮燈和/或閃燈的數目發生變化,其中“亮燈”指LED燈保持亮的狀態,而“閃燈”指LED燈忽亮忽暗。 At present, there are two mainstream LED display control solutions: one is to control the LED display by using battery voltage, battery current, and battery internal resistance information to do accurate calculations to generate its power curve, but this solution is more complicated and consumes a lot of resources; the other is One is to make a rough display based only on the battery voltage. Although this solution consumes less resources, in actual applications, the sensed battery voltage is different under different states and currents, causing many display problems. Common problems include: displaying a decreasing change in the power level in the charging state and displaying an increasing change in the power level in the discharging state. When the charging and discharging states are switched between each other, the light jumps, that is, the number of lights and/or flashing lights changes. "Lighting" refers to the state where the LED light stays on, while "flashing light" refers to the LED light turning on and off.
鑒於以上所述的一個或多個問題,本發明提供了新穎的用於充放電系統中的LED顯示控制的裝置和方法。 In view of one or more of the above-mentioned problems, the present invention provides a novel device and method for LED display control in a charging and discharging system.
根據本發明實施例的一方面,公開了用於充放電系統中的LED顯示控制的裝置,該裝置包括顯示代碼生成器,被配置為基於充放電系統中的電池的電壓訊號和充電狀態訊號、LED顯示使能訊號、以及多個預設電壓閾值訊號,來生成充電顯示代碼或放電顯示代碼;以及解碼驅動器,被配置為根據充電狀態訊號來對充電顯示代碼或放電顯示代碼進行 解碼以生成驅動訊號,該驅動訊號用於驅動LED進行顯示。 According to an aspect of the embodiments of the present invention, a device for LED display control in a charging and discharging system is disclosed. The device includes a display code generator configured to be based on a voltage signal and a charging state signal of a battery in the charging and discharging system, LED display enable signal and multiple preset voltage threshold signals to generate charge display code or discharge display code; and a decoding driver configured to perform charging display code or discharge display code according to the charge status signal Decode to generate a driving signal, which is used to drive the LED for display.
根據本發明實施例的另一方面,公開了用於充放電系統中的LED顯示控制的方法,該方法包括:基於充放電系統中的電池的電壓訊號和充電狀態訊號、LED顯示使能訊號、以及多個預設電壓閾值訊號,來生成充電顯示代碼或放電顯示代碼;並且根據充電狀態訊號來對充電顯示代碼或放電顯示代碼進行解碼以生成驅動訊號,該驅動訊號用於驅動LED進行顯示。 According to another aspect of the embodiments of the present invention, a method for LED display control in a charging and discharging system is disclosed. The method includes: based on a voltage signal and a charging state signal of a battery in the charging and discharging system, an LED display enable signal, And a plurality of preset voltage threshold signals to generate a charging display code or a discharging display code; and according to the charging state signal, the charging display code or the discharging display code is decoded to generate a driving signal, and the driving signal is used to drive the LED for display.
100:充放電系統 100: charge and discharge system
110:充電控制電路 110: Charging control circuit
120:電池 120: battery
200:LED顯示控制的裝置 200: LED display control device
210,300:顯示代碼生成器 210,300: Display code generator
220:解碼驅動器 220: Decoding drive
310:基礎時鐘訊號生成模組 310: Basic clock signal generation module
320,400A:充電顯示代碼生成模組 320,400A: Charging display code generation module
330,400B:放電顯示代碼生成模組 330, 400B: discharge display code generation module
410,440:第一顯示代碼比特生成單元 410, 440: first display code bit generation unit
411,421,431,441,451,461,471,481:比較訊號 411,421,431,441,451,461,471,481: comparison signal
412,422,432,442,452,462,472,482:經延遲訊號 412,422,432,442,452,462,472,482: delayed signal
420,450:第二顯示代碼比特生成單元 420, 450: Second display code bit generation unit
430,460:第三顯示代碼比特生成單元 430, 460: third display code bit generation unit
470:第四顯示代碼比特生成單元 470: Fourth display code bit generation unit
480:第五顯示代碼比特生成單元 480: Fifth display code bit generating unit
600:方法 600: method
610,620:步驟 610,620: steps
COMP:電壓感測比較器 COMP: Voltage Sensing Comparator
Charge_ena 202:充電狀態訊號 Charge_ena 202: charge status signal
Charge_code 211,Charge_code 321:充電顯示代碼
DBS:延遲組件 DBS: Delay component
DCLK 311:基礎時鐘訊號 DCLK 311: basic clock signal
Discharge_code 212,Discharge_code 322:放電顯示代碼
LATCH:栓鎖組件 LATCH: Latch assembly
LED_ena 203,LED_ena 303:LED顯示使能訊號
LED_drive 221:驅動訊號 LED_drive 221: drive signal
Icharge:充電電流 I charge : charging current
Idischarge:放電電流 I discharge : discharge current
Vbat,Vbat_det:電池電壓 V bat ,V bat_det : battery voltage
Vth1_chg,Vth2_chg,Vth3_chg,Vth1_dischg,Vth2_dischg,Vth3_dischg,Vth4_dischg,Vth5_dischg:電壓閾值 V th1_chg , V th2_chg , V th3_chg , V th1_dischg , V th2_dischg , V th3_dischg , V th4_dischg , V th5_dischg : voltage threshold
Vbat_det 201,Vbat_det 301:電壓訊號
Vth* 204,Vth1_chg 304-1,Vth2_chg 304-2,Vth3_chg 304-3,Vth1_dischg 304-8,Vth2_dischg 304-4,Vth2_dischg 304-7,Vth3_dischg 304-6,Vth4_dischg 304-4,Vth5_dischg 304-4:預設電壓閾值訊號 V th* 204,V th1_chg 304-1,V th2_chg 304-2,V th3_chg 304-3,V th1_dischg 304-8,V th2_dischg 304-4,V th2_dischg 304-7,V th3_dischg 304-6,V th4_dischg 304 -4,V th5_dischg 304-4: preset voltage threshold signal
從下面結合圖式對本發明的具體實施方式的描述中可以更好地理解本發明。為了圖式的簡單和清晰,圖式中圖示的元素不一定是按比例繪製的。例如,為了清晰,一些元素的尺寸相對於其他元素可被誇大。另外,在認為適當時,圖式標記在圖式之間被重複以指示出對應的或相似的元素。在圖式中: The present invention can be better understood from the following description of the specific embodiments of the present invention in conjunction with the drawings. For the simplicity and clarity of the diagram, the elements illustrated in the diagram are not necessarily drawn to scale. For example, the size of some elements may be exaggerated relative to other elements for clarity. In addition, when deemed appropriate, schema marks are repeated between the schemas to indicate corresponding or similar elements. In the scheme:
圖1A示出了充放電系統在充電狀態下的示意框圖; Figure 1A shows a schematic block diagram of the charging and discharging system in a charging state;
圖1B示出了充放電系統在放電狀態下的示意框圖; Figure 1B shows a schematic block diagram of the charging and discharging system in a discharging state;
圖2示出了根據本發明的實施例的用於充放電系統中的LED顯示控制的裝置的示意圖。 Fig. 2 shows a schematic diagram of a device for LED display control in a charging and discharging system according to an embodiment of the present invention.
圖3示出了根據本發明的實施例的示例顯示代碼生成器的示意圖。 Fig. 3 shows a schematic diagram of an example display code generator according to an embodiment of the present invention.
圖4A示出了根據本發明的實施例的示例充電顯示代碼生成模組的內部結構的框圖。 4A shows a block diagram of the internal structure of an exemplary charging display code generation module according to an embodiment of the present invention.
圖4B示出了根據本發明的實施例的示例放電顯示代碼生成模組的內部結構的框圖。 4B shows a block diagram of the internal structure of an exemplary discharge display code generation module according to an embodiment of the present invention.
圖5A示出了根據本發明的實施例的示例充電顯示狀態到放電顯示狀態轉換的示意圖。 FIG. 5A shows a schematic diagram of the transition from an exemplary charging display state to a discharging display state according to an embodiment of the present invention.
圖5B示出了根據本發明的實施例的示例放電顯示狀態到充電顯示狀態轉換的示意圖。 FIG. 5B shows a schematic diagram of an exemplary transition from a discharging display state to a charging display state according to an embodiment of the present invention.
圖6示出了根據本發明的實施例的用於充放電系統中的LED顯示控制 的方法的簡化流程圖。 Figure 6 shows the LED display control used in the charging and discharging system according to an embodiment of the present invention Simplified flow chart of the method.
下面將詳細描述本發明的各個方面的特徵和示例性實施例。在下面的詳細描述中,提出了許多具體細節,以便提供對本發明的全面理解。但是,對於本領域技術人員來說很明顯的是,本發明可以在不需要這些具體細節中的一些細節的情況下實施。下面對實施例的描述僅僅是為了通過示出本發明的示例來提供對本發明的更好的理解。本發明絕不限於下面所提出的任何具體配置和演算法,而是在不脫離本發明的精神的前提下覆蓋了元素、部件和演算法的任何修改、替換和改進。在圖式和下面的描述中,沒有示出公知的結構和技術,以便避免對本發明造成不必要的模糊。 The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In the following detailed description, many specific details are proposed in order to provide a comprehensive understanding of the present invention. However, it is obvious to those skilled in the art that the present invention can be implemented without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by showing examples of the present invention. The present invention is by no means limited to any specific configuration and algorithm proposed below, but covers any modification, replacement and improvement of elements, components and algorithms without departing from the spirit of the present invention. In the drawings and the following description, well-known structures and technologies are not shown in order to avoid unnecessary obscurity of the present invention.
需要指出的是,在下面的描述中提到的“裝置”、“模組”、“單元”、“組件”等都可以指電路或電路的一部分。 It should be pointed out that the "device", "module", "unit", "component", etc. mentioned in the following description can all refer to a circuit or a part of a circuit.
圖1A和圖1B分別示出了充放電系統100在充電狀態和放電狀態下的示意框圖。當充放電系統100連接到電源以進行充電時,電池部分120中產生充電電流Icharge;而當充放電系統100連接到負載以給負載供電時,電池部分120中產生放電電流Idischarge。假設在充放電系統100在充電狀態和放電狀態之間相互切換的瞬間電池電壓Vbat保持不變,由於充電電流Icharge和放電電流Idischarge之間的轉變,會使得充電控制電路110感測到的電池電壓Vbat_det發生變化。這種變化可能導致在只根據電池電壓來控制LED的顯示時出現諸如跳燈之類的問題。以使用四顆LED燈的情況為例,目前行業內對四顆LED燈的通用定義如下:在充電模式下1閃→1亮1閃→2亮1閃→3亮1閃;在放電模式下4亮→3亮→2亮→1亮→1閃→全滅。例如,跳燈問題可能體現為:在從充電模式切換到放電模式時,從充電狀態的2亮1閃跳到放電狀態的1亮,或者在從放電模式切換到充電模式時,從放電狀態的2亮跳到充電狀態的3亮1閃,等等。
1A and 1B show schematic block diagrams of the charging and discharging
本發明提供的新穎的用於充放電系統中的LED顯示控制的裝置和方法能夠只需根據電池電壓資訊,通過定義充電/放電各模式亮燈 的時序來滿足實際的充放電系統電量顯示的需求,同時還避免了上面提到的LED顯示控制中遇到的常見問題。 The novel device and method for LED display control in the charging and discharging system provided by the present invention can light up the lights by defining the charging/discharging modes only according to the battery voltage information The time sequence to meet the actual charging and discharging system power display needs, while also avoiding the above-mentioned common problems encountered in the LED display control.
需要說明的是,為清楚和簡潔起見,在下面的描述中以上面提到的四顆LED燈的情況為例進行描述,但是本領域普通技術人員應該清楚本發明的原理可以適用於任何適當數目的LED燈,而不僅限於所描述的四顆LED燈的情況。因此,這種描述僅僅是說明性的而非限制性的。 It should be noted that, for the sake of clarity and conciseness, the four LED lights mentioned above are used as an example for description in the following description, but those of ordinary skill in the art should understand that the principles of the present invention can be applied to any suitable The number of LED lights is not limited to the four LED lights described. Therefore, this description is only illustrative and not restrictive.
圖2示出了根據本發明的實施例的用於充放電系統中的LED顯示控制的裝置200的示意圖。例如,該LED顯示控制的裝置200可以被佈置在圖1的充電控制電路110中以用於對充放電系統100的LED燈的顯示進行控制。
FIG. 2 shows a schematic diagram of a
如圖所示,LED顯示控制的裝置200可以包括顯示代碼生成器210和解碼驅動器220。顯示代碼生成器210接收所感測到的充放電系統中的電池(例如,圖1充放電系統100中的電池120)的電壓訊號Vbat_det 201和充電狀態訊號Charge_ena 202、LED顯示使能訊號LED_ena203、以及多個預設電壓閾值訊號Vth* 204,並且基於上述訊號來生成充電顯示代碼Charge_code 211或放電顯示代碼Discharge_code 212。
As shown in the figure, the LED
Charge_ena 202指示電池正在充電還是放電,例如,當Charge_ena 212為高位準時,指示電池正在充電,而Charge_ena 202為低位準時,指示正在放電;或反之。當然,其他指示方式也是可以的,只要能夠實現相應的功能即可,在此不作一一描述。當Charge_ena 202指示電池正在充電時,顯示代碼生成器210生成Charge_code 211,而當Charge_ena 202指示電池正在放電時,顯示代碼生成器210生成Discharge_code 212。
LED_ena 203指示充放電系統是否啟用LED顯示來指示其工作狀態或電池電量。例如,當Charge_ena 202為高位準時,指示已啟用LED顯示;相反地,也可以設置Charge_ena 202為低位準時,指示已啟用LED顯示。當然,其他指示方式也是可以的,只要能夠實現相應的功能即可,在此不作一一描述。
Vth* 204指示預設的一組電壓閾值,其數量與所採用的LED燈的數量有關,具體地,其數量可以與預定義的LED燈在充電過程中的顯示狀態和在放電過程中的顯示狀態的總和有關。例如,在上面的使用四顆LED燈的情況中,在充電模式下共有四種顯示狀態,即1閃→1亮1閃→2亮1閃→3亮1閃,在放電模式下共有六種顯示狀態,即4亮→3亮→2亮→1亮→1閃→全滅,從而Vth* 204的數量可以為(4-1)+(6-1)=8個。
解碼驅動器220接收Charge_ena 202,以參考該訊號來對從顯示代碼生成器210接收的Charge_code 211或Discharge_code 212進行解碼,以生成用於驅動LED燈進行顯示的驅動訊號LED_drive 221。
The decoding driver 220 receives the
下面將參考圖3和圖4來詳細描述顯示代碼生成器210的結構和功能。需要說明的是,為清楚和簡潔起見,在圖3和圖4以及相關描述中以上面提到的四顆LED燈的情況為例進行說明,但是本領域普通技術人員應該清楚本發明的原理可以適用於任何適當數目的LED燈,而不僅限於所描述的四顆LED燈的情況。 The structure and function of the display code generator 210 will be described in detail below with reference to FIGS. 3 and 4. It should be noted that, for the sake of clarity and conciseness, the four LED lights mentioned above are taken as an example in Figures 3 and 4 and related descriptions. However, those of ordinary skill in the art should understand the principle of the present invention. It can be applied to any suitable number of LED lights, not limited to the four LED lights described.
圖3示出了根據本發明的實施例的示例顯示代碼生成器300的示意圖。示例顯示代碼生成器300例如可以是上面結合圖2描述的顯示代碼生成器210。
FIG. 3 shows a schematic diagram of an example
顯示代碼生成器300可以包括,例如,基礎時鐘訊號生成模組310、充電顯示代碼生成模組320、以及放電顯示代碼生成模組330。
The
如圖所示,基礎時鐘訊號生成模組310接收LED顯示使能訊號LED_ena 303,來在LED_ena 303指示LED顯示被啟用時生成基礎時鐘訊號DCLK 311。每當充放電系統開機啟用LED顯示時,基礎時鐘訊號生成模組310以較高頻率輸出基礎時鐘訊號DCLK 311,該基礎時鐘訊號DCLK 311被提供給後面將會介紹的延遲組件DBS用於進行數字延遲,這樣使得初始LED顯示能夠迅速地感測到電池電壓而進行顯示。隨後,基礎時鐘訊號生成模組310切換到以較低頻率輸出基礎時鐘訊號DCLK 311,以使得LED顯示的更新不受能夠感測到的短時間電池電壓波動的影響。
As shown in the figure, the basic clock signal generating module 310 receives the LED display enable
充電顯示代碼生成模組320和放電顯示代碼生成模組330分別接收充電狀態訊號Charge_ena 302。當Charge_ena 302指示充放電系統的電池正在充電時,充電顯示代碼生成模組320被啟用,而當Charge_ena 302指示電池正在放電時,放電顯示代碼生成模組330被啟用。
The charging display code generating module 320 and the discharging display code generating module 330 respectively receive the charging
當被啟用時,充電顯示代碼生成模組320接收感測到的電池電壓訊號Vbat_det 301、由基礎時鐘訊號生成模組310生成的DCLK 311、以及預設電壓閾值訊號Vth1_chg 304-1、Vth2_chg 304-2和Vth3_chg 304-3,並基於這些訊號生成充電顯示代碼Charge_code 321。在此需要說明的是,在上面的使用四顆LED燈的情況中,在充電模式下共有四種顯示狀態,即1閃→1亮1閃→2亮1閃→3亮1閃,因此,在此實施例中針對充電模式設置了Vth1_chg、Vth2_chg和Vth3_chg共三個電壓閾值,但是在其他實施例中,當使用不同數量的LED燈時和/或當定義不同數量的顯示狀態時,可以根據需要設置其他數量的電壓閾值,在此不做具體限定。
When enabled, the charging display code generation module 320 receives the sensed battery
當被啟用時,放電顯示代碼生成模組330接收感測到的電池電壓訊號Vbat_det 301、由基礎時鐘訊號生成模組310生成的DCLK 311、以及預設電壓閾值訊號Vth5_dischg 304-4、Vth4_dischg 304-4、Vth3_dischg 304-6、Vth2_dischg 304-4和Vth1_dischg 304-8,並基於這些訊號生成放電顯示代碼Discharge_code 322。在此需要說明的是,在上面的使用四顆LED燈的情況中,放電模式下共有六種顯示狀態,即4亮→3亮→2亮→1亮→1閃→全滅,因此,在此實施例中針對放電模式設置了Vth5_dischg、Vth4_dischg、Vth3_dischg、Vth2_dischg和Vth1_dischg共五個電壓閾值,但是在其他實施例中,當使用不同數量的LED燈時和/或當定義不同數量的顯示狀態時,可以根據需要設置其他數量的電壓閾值,在此不做具體限定。
When enabled, the discharge display code generation module 330 receives the sensed battery
充電顯示代碼生成模組320還從放電顯示代碼生成模組330接收Discharge_code 322,同樣,放電顯示代碼生成模組330還從充電顯示代碼生成模組320接收Charge_code 321,以使得充電顯示代碼生成模組320和放電顯示代碼生成模組330能夠在發生充電/放電狀態切換時根據預定義的規則切換到生成指定的顯示代碼。這將在下面進行詳細描述。
The charge display code generation module 320 also receives
在圖4A和圖4B中詳細示出了示例充電顯示代碼生成模組400A和示例放電顯示代碼生成模組400B的內部結構。示例充電顯示代碼生成模組400A可以是上面結合圖3描述的充電顯示代碼生成模組320,並且示例放電顯示代碼生成模組400B可以是上面結合圖3描述的放電顯示代碼生成模組330。
The internal structure of the example charging display
如圖4A所示,示例充電顯示代碼生成模組400A包括多個並列的顯示代碼比特生成單元,例如,第一到第三顯示代碼比特生成單元410、420和430。顯示代碼比特生成單元的數量可以與預定義的LED燈在充電過程中的顯示狀態的數量有關。例如,在上面的使用四顆LED燈的情況中,在充電模式下共有四種顯示狀態,即1閃→1亮1閃→2亮1閃→3亮1閃,因此,在此實施例中採用3個並列的顯示代碼比特生成單元410、420和430。每個顯示代碼比特生成單元生成一個高位準或低位準,該高/低位準例如被轉換成數字代碼(0,1),從而表示二進位數字的一個比特。三個有序排列的顯示代碼比特生成單元410、420和430所產生的比特被按照從最高有效比特到最低有效比特的順序排列,組成一個二進位碼,也即充電顯示代碼,這將在下面進行論述。
As shown in FIG. 4A, the example charging display
第一到第三顯示代碼比特生成單元410、420和430中的每一者分別包括電壓感測比較器COMP、延遲組件DBS、以及栓鎖組件LATCH。
Each of the first to third display code
每個COMP分別接收感測到的電池電壓訊號Vbat_det 301和相應的預設電壓閾值訊號Vth1_chg 304-1、Vth2_chg 304-2和Vth3_chg 304-3。在此實施例中,按照遞增的順序設置預設電壓閾值訊號Vth1_chg 304-1、Vth2_chg 304-2和Vth3_chg 304-3;在其他實施例中也可以滿足要求的其他方式進行設置。
Each COMP receives the sensed battery
第一顯示代碼比特生成單元410的COMP將Vbat_det 301與Vth1_chg 304-1進行比較以生成比較訊號411,例如,高位準或低位準。在此為描述方便,以二進位數字1來表示高位準,二進位數字0來表示低位準;在實際使用中也可能存在相反的情況,本發明的原理同樣適用。第
一顯示代碼比特生成單元410的DBS接收基礎時鐘訊號DCLK 311(例如,上面結合圖3描述的由基礎時鐘訊號生成模組310生成的DCLK 311),並基於DCLK 311對比較訊號411進行延遲以生成經延遲訊號412。第一顯示代碼比特生成單元410的LATCH對經延遲訊號412進行鎖定,以保證充電顯示的單調性。第一顯示代碼比特生成單元410最終輸出一個二進位數字0或1,其表示充電顯示代碼的最高有效比特。
The COMP of the first display code
第二顯示代碼比特生成單元420的COMP將Vbat_det 301與Vth2_chg 304-2進行比較以生成比較訊號421,例如,高位準或低位準。第二顯示代碼比特生成單元420的DBS接收基礎時鐘訊號DCLK 311(例如,上面結合圖3描述的由基礎時鐘訊號生成模組310生成的DCLK 311),並基於DCLK 311對比較訊號421進行延遲以生成經延遲訊號422。第二顯示代碼比特生成單元420的LATCH對經延遲訊號422進行鎖定,以保證充電顯示的單調性。第二顯示代碼比特生成單元420最終輸出一個二進位數字0或1,其表示充電顯示代碼的次高有效比特。
The COMP of the second display code
第三顯示代碼比特生成單元430的COMP將Vbat_det 301與Vth3_chg 304-3進行比較以生成比較訊號431,例如,高位準或低位準。第三顯示代碼比特生成單元430的DBS接收基礎時鐘訊號DCLK 311(例如,上面結合圖3描述的由基礎時鐘訊號生成模組310生成的DCLK 311),並基於DCLK 311對比較訊號431進行延遲以生成經延遲訊號422。第三顯示代碼比特生成單元430的LATCH對經延遲訊號432進行鎖定,以保證充電顯示的單調性。第三顯示代碼比特生成單元430最終輸出一個二進位數字0或1,其表示充電顯示代碼的最低有效比特。
The COMP of the third display code
可選地,按照以上順序在前的顯示代碼比特生成單元輸出的訊號可以用於後續顯示代碼比特生成單元的使能,例如,當第一顯示代碼比特生成單元410的輸出為1時,所有後續顯示代碼比特生成單元的功能被啟用(即,按照以上描述進行所述比較、延遲及鎖定操作),否則,所有後續顯示代碼比特生成單元輸出0;依此類推。
Optionally, the signal output by the preceding display code bit generating unit in the above order can be used to enable the subsequent display code bit generating unit. For example, when the output of the first display code
所有顯示代碼比特生成單元輸出的二進位數字按照上面
提到的順序組合成一個二進位碼,也即充電顯示代碼Charge_code 321,以供充電顯示代碼生成模組400A輸出。
All the binary digits output by the display code bit generation unit follow the above
The mentioned sequence is combined into a binary code, that is, the charging
在第一到第三顯示代碼比特生成單元410、420和430中,COMP將感測到的電池電壓(即,Vbat_det 301)與相應的閾值進行比較,以生成比較訊號,DBS對該比較訊號進行延遲後再更新到輸出訊號,這種設計保證了當感測到的電池電壓被短時間擾動時(通常時間小於4秒),其結果會被濾除,不更新到最終輸出訊號,而真實的訊號產生的比較訊號則會被保留並更新到最終輸出訊號;同時,通過LATCH實現了最終由充電顯示代碼生成模組400A輸出的充電顯示代碼Charge_code的單向遞增變化,即000→100→110→111,這對應於LED燈的顯示狀態1閃→1亮1閃→2亮1閃→3亮1閃。
In the first to third display code
如圖4B所示,示例放電顯示代碼生成模組400B包括多個並列的顯示代碼比特生成單元,例如,第一到第五顯示代碼比特生成單元440、450、460、470和480。顯示代碼比特生成單元的數量可以與預定義的LED燈在放電過程中的顯示狀態的數量有關。例如,在上面的使用四顆LED燈的情況中,在放電模式下共有六種顯示狀態,即4亮→3亮→2亮→1亮→1閃→全滅,因此,在此實施例中採用5個並列的顯示代碼比特生成單元440、450、460、470和480。每個顯示代碼比特生成單元生成一個高位準或低位準,該高/低位準例如被轉換成數字代碼(0,1),從而表示二進位數字的一個比特。五個有序排列的顯示代碼比特生成單元440、450、460、470和480所產生的比特被按照從最低有效比特到最高有效比特的順序排列,組成一個二進位碼,也即放電顯示代碼,這將在下面進行論述。
As shown in FIG. 4B, the exemplary discharge display
第一到第五顯示代碼比特生成單元440、450、460、470和480中的每一者分別包括電壓感測比較器COMP、延遲組件DBS、以及栓鎖組件LATCH。
Each of the first to fifth display code
每個COMP分別接收感測到的電池電壓訊號Vbat_det 301和相應的預設電壓閾值訊號Vth5_dischg 304-4、Vth4_dischg 304-5、Vth3_dischg 304-
6、Vth2_dischg 304-7和Vth1_dischg 304-8。在此實施例中,按照遞減的順序設置預設電壓閾值訊號Vth5_dischg 304-4、Vth4_dischg 304-5、Vth3_dischg 304-6、Vth2_dischg 304-7和Vth1_dischg 304-8;在其他實施例中也可以滿足要求的其他方式進行設置。
Each COMP receives the sensed battery
第一顯示代碼比特生成單元440的COMP將Vbat_det 301與Vth5_dischg 304-4進行比較以生成比較訊號441,例如,高位準或低位準。第一顯示代碼比特生成單元440的DBS接收基礎時鐘訊號DCLK 311(例如,上面結合圖3描述的由基礎時鐘訊號生成模組310生成的DCLK 311),並基於DCLK 311對比較訊號441進行延遲以生成經延遲訊號442。第一顯示代碼比特生成單元440的LATCH對經延遲訊號442進行鎖定,以保證放電顯示的單調性。第一顯示代碼比特生成單元440最終輸出一個二進位數字0或1,其表示放電顯示代碼的最低有效比特。
The COMP of the first display code
第二顯示代碼比特生成單元450的COMP將Vbat_det 301與Vth4_dischg 304-5進行比較以生成比較訊號451,例如,高位準或低位準。第二顯示代碼比特生成單元450的DBS接收基礎時鐘訊號DCLK 311(例如,上面結合圖3描述的由基礎時鐘訊號生成模組310生成的DCLK 311),並基於DCLK 311對比較訊號451進行延遲以生成經延遲訊號452。第二顯示代碼比特生成單元450的LATCH對經延遲訊號452進行鎖定,以保證放電顯示的單調性。第二顯示代碼比特生成單元450最終輸出一個二進位數字0或1,其表示放電顯示代碼的次低有效比特。
The COMP of the second display code
第三顯示代碼比特生成單元460的COMP將Vbat_det 301與Vth3_dischg 304-6進行比較以生成比較訊號461,例如,高位準或低位準。第三顯示代碼比特生成單元460的DBS接收基礎時鐘訊號DCLK 311(例如,上面結合圖3描述的由基礎時鐘訊號生成模組310生成的DCLK 311),並基於DCLK 311對比較訊號461進行延遲以生成經延遲訊號462。第三顯示代碼比特生成單元460的LATCH對經延遲訊號462進行鎖定,以保證放電顯示的單調性。第三顯示代碼比特生成單元460最終輸出一個二進位數字0或1,其表示放電顯示代碼的下一個有效比特。
The COMP of the third display code
第四顯示代碼比特生成單元470的COMP將Vbat_det 301與Vth2_dischg 304-7進行比較以生成比較訊號471,例如,高位準或低位準。第四顯示代碼比特生成單元470的DBS接收基礎時鐘訊號DCLK 311(例如,上面結合圖3描述的由基礎時鐘訊號生成模組310生成的DCLK 311),並基於DCLK 311對比較訊號471進行延遲以生成經延遲訊號472。第四顯示代碼比特生成單元470的LATCH對經延遲訊號472進行鎖定,以保證放電顯示的單調性。第四顯示代碼比特生成單元470最終輸出一個二進位數字0或1,其表示放電顯示代碼的次高有效比特。
The COMP of the fourth display code
第五顯示代碼比特生成單元480的COMP將Vbat_det 301與Vth1_dischg 304-8進行比較以生成比較訊號481,例如,高位準或低位準。第四顯示代碼比特生成單元480的DBS接收基礎時鐘訊號DCLK 311(例如,上面結合圖3描述的由基礎時鐘訊號生成模組310生成的DCLK 311),並基於DCLK 311對比較訊號481進行延遲以生成經延遲訊號482。第五顯示代碼比特生成單元480的LATCH對經延遲訊號482進行鎖定,以保證放電顯示的單調性。第五顯示代碼比特生成單元480最終輸出一個二進位數字0或1,其表示放電顯示代碼的最高有效比特。
The COMP of the fifth display code
可選地,按照以上順序在前的顯示代碼比特生成單元輸出的訊號可以用於後續顯示代碼比特生成單元的使能,例如,當第一顯示代碼比特生成單元440的輸出為0時,所有後續顯示代碼比特生成單元(即,第二到第五顯示代碼比特生成單元)的功能被啟用(即,按照以上描述進行所述比較、延遲及鎖定操作),否則,所有後續顯示代碼比特生成單元輸出1;當第二顯示代碼比特生成單元450的輸出也為0時,所有後續顯示代碼比特生成單元(即,第三到第五顯示代碼比特生成單元)的功能被啟用,否則,所有後續顯示代碼比特生成單元輸出1;依此類推。
Optionally, the signal output by the preceding display code bit generating unit in the above order can be used to enable the subsequent display code bit generating unit. For example, when the output of the first display code
所有顯示代碼比特生成單元輸出的二進位數字按照上面提到的順序組合成一個二進位碼,也即放電顯示代碼Discharge_code 322,以供放電顯示代碼生成模組400B輸出。
All the binary numbers output by the display code bit generating unit are combined into a binary code in the order mentioned above, that is, the discharge
在第一到第五顯示代碼比特生成單元440、450、460、
470和480中,COMP將感測到的電池電壓(即,Vbat_det 301)與相應的閾值進行比較,以生成比較訊號,DBS對該比較訊號進行延遲後再更新到輸出訊號,這種設計保證了當感測到的電池電壓被短時間擾動時(通常時間小於4秒),其結果會被濾除,不更新到最終輸出訊號,而真實的訊號產生的比較訊號則會被保留並更新到最終輸出訊號;同時,通過LATCH實現了最終由放電顯示代碼生成模組400B輸出的放電顯示代碼Discharge_code的單向遞減變化,即11111→11110→11100→11000→10000→00000,這對應於LED燈的顯示狀態4亮→3亮→2亮→1亮→1閃→全滅。
In the first to fifth display code
返回到上面結合圖3提到的,充電顯示代碼生成模組320還從放電顯示代碼生成模組330接收Discharge_code 322,同樣,放電顯示代碼生成模組330還從充電顯示代碼生成模組320接收Charge_code 321,以使得充電顯示代碼生成模組320和放電顯示代碼生成模組330能夠在發生充電/放電狀態切換時根據預定義的規則切換到生成指定的顯示代碼,這在圖4A和圖4B中體現為:
Returning to what was mentioned above in conjunction with FIG. 3, the charge display code generation module 320 also receives
(1)當充放電系統的電池從放電狀態切換到充電狀態時,充電顯示代碼生成模組400A的第一到第三顯示代碼比特生成單元410、420和430中的每一者的LATCH還接收由放電顯示代碼生成模組400B生成的Discharge_code 322,以按照預定義的規則根據Discharge_code 322輸出指定的訊號,例如,指定的位準或二進位數字;
(1) When the battery of the charging and discharging system is switched from the discharging state to the charging state, the LATCH of each of the first to third display code
(2)當充放電系統的電池從充電狀態切換到放電狀態時,放電顯示代碼生成模組400B中的每個顯示代碼比特生成單元440、450、460、470和480中的每一者的LATCH還接收由充電顯示代碼生成模組400A生成的Charge_code 321,以按照預定義的規則根據Charge_code 321輸出指定的訊號,例如,指定的位準或二進位數字。
(2) When the battery of the charging and discharging system is switched from the charging state to the discharging state, the discharge displays the LATCH of each of the display code
下面將對所提到的“預定義的規則”進行詳細的描述。 The "predefined rules" mentioned will be described in detail below.
表1描述了在使用四顆LED燈的情況下的充電顯示代碼Charge_code和放電顯示代碼Discharge_code的示例。 Table 1 describes an example of the charge display code Charge_code and the discharge display code Discharge_code when four LED lights are used.
結合圖4A來看,在充電模式下,當感測到的電池電壓小於Vth1_chg 304-1時,第一到第三顯示代碼比特生成單元410、420和430都輸出0,即Charge_code為000,4顆LED燈中有一顆LED燈閃爍;隨著電池電量的增加,當感測到的電池電壓大於Vth1_chg 304-1但小於Vth2_chg 304-2時,第一顯示代碼比特生成單元410輸出1,而第二和第三顯示代碼比特生成單元420和430輸出0,Charge_code為100,4顆LED燈中有一顆LED燈亮起另有一顆LED燈閃爍;隨著電池電量繼續增加,當感測到的電地電壓大於Vth2_chg 304-2但小於Vth3_chg 304-3時,第一顯示代碼比特生成單元410輸出1,第二顯示代碼比特生成單元420也輸出1,而第三顯示代碼比特生成單元430輸出0,Charge_code為110,4顆LED燈中有兩顆LED燈亮起另有一顆LED燈閃爍;隨著電池電量繼續增加,當感測到的電池電壓大於Vth3_chg 304-3時,第一顯示代碼比特生成單元410輸出1,第二顯示代碼比特生成單元420也輸出1,第三顯示代碼比特生成單元430也輸出1,Charge_code為111,4顆LED燈中有三顆LED燈亮起另有一顆LED燈閃爍。
4A, in the charging mode, when the sensed battery voltage is less than V th1_chg 304-1, the first to third display code
結合圖4B來看,在放電模式下,當感測到的電池電壓大於Vth5_dischg 304-4時,第一到第五顯示代碼比特生成單元440、450、460、470和480都輸出1,即Discharge_code為11111,4顆LED燈全部亮起;隨著電池放電使得感測到的電壓減小,當感測到的電池電壓大於Vth4_dischg 304-5但小於Vth5_dischg 304-4時,第一顯示代碼比特生成單元440輸出0,而第二到第五顯示代碼比特生成單元450、460、470和480都輸出1,即Discharge_code為11110,4顆LED燈中有三顆LED燈亮起、一顆LED燈熄滅;隨著電池放電使得感測到的電壓進一步減小,當感測到的電池電壓大於Vth3_dischg 304-6但小於Vth4_dischg 304-5時,第一和第二顯示代碼比特生成單元440和450輸出0,而第三到第五顯示代碼比特生成單元460、470和480都輸出1,即Discharge_code為11100,4顆LED燈中有兩顆LED燈亮起、兩顆LED燈熄滅;隨著電池放電使得感測到的電壓進一步減小,當感測到的電池電壓大於Vth2_dischg 304-7但小於Vth3_dischg 304-6時,第一到第三顯示代碼比特生成單元440、450和460輸出0,而第四和第五顯示代碼比特生成單元470和480都輸出1,即Discharge_code為11000,4顆LED燈中有一顆LED燈亮起、三顆LED燈熄滅;隨著電池放電使得感測到的電壓進一步減小,當感測到的電池電壓大於Vth1_dischg 304-8但小於Vth2_dischg 304-7時,第一到第四顯示代碼比特生成單元440、450、460和470輸出0,而第五顯示代碼比特生成單元480輸出1,即Discharge_code為10000,4顆LED燈中有一顆LED燈閃爍、其餘熄滅;隨著電池放電使得感測到的電壓進一步減小,當感測到的電池電壓小於Vth1_dischg 304-8時,第一到第五顯示代碼比特生成單元440、450、460、470和480都輸出0,即Discharge_code為00000,4顆LED燈全部熄滅。
4B, in the discharge mode, when the sensed battery voltage is greater than V th5_dischg 304-4, the first to fifth display code
需要指出的是,以上提及的LED燈的數量、充放電過程中的顯示狀態、以及對應的顯示代碼,都僅僅是示例,在其他實施例中,可以根據實際需要設置不同數量的LED燈、不同的放電過程中的顯示狀態、以及不同的顯示代碼,在此不做具體限定。 It should be pointed out that the number of LED lights mentioned above, the display status during charging and discharging, and the corresponding display code are just examples. In other embodiments, different numbers of LED lights can be set according to actual needs. The different display states during the discharge process and the different display codes are not specifically limited here.
圖5A示出了根據本發明的實施例的示例充電顯示狀態到
放電顯示狀態轉換的示意圖。同樣地,以上面提到的使用四顆LED燈的情況為例,當充電時,LED燈可能的顯示狀態如下:1閃→1亮1閃→2亮1閃→B亮1閃,對應於充電顯示代碼000→100→110→111;當放電時,LED燈可能的顯示狀態如下:4亮→3亮→2亮→1亮→1閃→全滅,對應於放電顯示代碼11111→11110→11100→11000→10000→00000。參照圖5A所示,當充放電系統從充電模式轉換到放電模式時:在LED燈處於充電顯示狀態1閃(000)時,對應地轉換到放電顯示狀態1閃(10000);在LED燈處於充電顯示狀態1亮1閃(100)時,對應地轉換到放電顯示狀態1亮(11000);在LED燈處於充電顯示狀態2亮1閃(110)時,對應地轉換到放電顯示狀態2亮(11100);在LED燈處於充電顯示狀態3亮1閃(111)時,對應地轉換到放電顯示狀態3亮(11110)。下面在表2中示出了充電顯示狀態到放電顯示狀態轉換的代碼轉換關係。
FIG. 5A shows an example charging display state according to an embodiment of the present invention to
Schematic diagram of discharge display state transition. Similarly, taking the case of using four LED lights mentioned above as an example, when charging, the possible display states of the LED lights are as follows: 1 flash → 1 on and 1 flash → 2 on and 1 flash → B on and 1 flash, corresponding to Charging
結合上面針對圖4A和圖4B所描述的,當充放電系統的電池從充電狀態切換到放電狀態時,放電顯示代碼生成模組400B中的每個顯示代碼比特生成單元440、450、460、470和480中的每一者的LATCH還接收由充電顯示代碼生成模組400A生成的Charge_code 321,以按照預定義的規則根據Charge_code 321輸出指定的訊號,例如,指定的位準或二進位數字。當充放電系統的電池從充電狀態向放電狀態轉換時,例如,充電顯示代碼生成模組400A生成的Charge_code 321為“000”,則放電顯示代碼生成模組400B中的每個顯示代碼比特生成單元440、450、460、470和480中的每一者的LATCH接收到代碼“000”,並且根據表2所
示的預定義的規則鎖定到對應的二進位數字,例如,“0”、“0”、“0”、“0”、“1”,從而放電顯示代碼生成模組400B輸出放電顯示代碼“10000”;例如,充電顯示代碼生成模組400A生成的Charge_code 321為“111”,則放電顯示代碼生成模組400B中的每個顯示代碼比特生成單元440、450、460、470和480中的每一者的LATCH接收到代碼“111”,並且根據表2所示的預定義的規則鎖定到對應的二進位數字,例如,“0”、“1”、“1”、“1”、“1”,從而放電顯示代碼生成模組400B輸出放電顯示代碼“11110”;其他情況類似,在此不作一一描述。
In conjunction with the description of FIGS. 4A and 4B above, when the battery of the charging and discharging system is switched from the charging state to the discharging state, each display code
在充放電系統的電池完成充電顯示狀態到放電顯示狀態轉換的轉換後,放電顯示代碼生成模組400B的各個顯示代碼比特生成單元440、450、460、470和480按照各自的模式正常工作以更新放電顯示代碼。這樣一來,在完成顯示狀態轉換後,不會出現跳燈情況。
After the battery of the charging and discharging system completes the conversion from the charging display state to the discharging display state, the display code
圖5B示出了根據本發明的實施例的示例放電顯示狀態到充電顯示狀態轉換的示意圖。同樣地,以上面提到的使用四顆LED燈的情況為例,當放電時,LED燈可能的顯示狀態如下:4亮→3亮→2亮→1亮→1閃→全滅;當充電時,LED燈可能的顯示狀態如下:1閃→1亮1閃→2亮1閃→3亮1閃,對應於充電顯示代碼000→100→110→111。參照圖5B所示,當充放電系統從放電模式轉換到充電模式時:在LED燈處於放電顯示狀態全滅(00000)或1閃(10000)時,對應地轉換到充電顯示狀態1閃(000);在LED燈處於放電顯示狀態1亮(11000)時,對應地轉換到充電顯示狀態1亮1閃(100);在LED燈處於放電顯示狀態2亮(11100)時,對應地轉換到充電顯示狀態2亮1閃(110);在LED燈處於放電顯示狀態3亮(11110)或4亮(11111)時,對應地轉換到充電顯示狀態3亮1閃(111)。下面在表3中示出了放電顯示狀態到充電顯示狀態轉換的代碼轉換關係。
FIG. 5B shows a schematic diagram of an exemplary transition from a discharging display state to a charging display state according to an embodiment of the present invention. Similarly, taking the case of using four LED lights mentioned above as an example, when discharging, the possible display states of the LED lights are as follows: 4 on → 3 on → 2 on → 1 on → 1 flash → all off; when charging , The possible display states of the LED light are as follows: 1 flash→1 on and 1 flash→2 on and 1 flash→3 on and 1 flash, corresponding to the charging
結合上面針對圖4A和圖4B所描述的,當充放電系統的電池從放電狀態切換到充電狀態時,充電顯示代碼生成模組400A的第一到第三顯示代碼比特生成單元410、420和430中的每一者的LATCH還接收由放電顯示代碼生成模組400B生成的Discharge_code 322,以按照預定義的規則根據Discharge_code 322輸出指定的訊號,例如,指定的位準或二進位數字。當充放電系統的電池從放電狀態向充電狀態轉換時,例如,放電顯示代碼生成模組400B生成的Discharge_code 322“00000”或“10000”,則充電顯示代碼生成模組400A的第一到第三顯示代碼比特生成單元410、420和430中的每一者的LATCH接收到代碼“00000”或“10000”,並且根據表3所示的預定義的規則鎖定到對應的二進位數字,例如,“0”、“0”、“0”,從而充電顯示代碼生成模組400A輸出充電顯示代碼“000”;例如,放電顯示代碼生成模組400B生成的Discharge_code 322“11110”或“11111”,則充電顯示代碼生成模組400A的第一到第三顯示代碼比特生成單元410、420和430中的每一者的LATCH接收到代碼“11110”或“11111”,並且根據表3所示的預定義的規則鎖定到對應的二進位數字,例如,“1”、“1”、“1”,從而充電顯示代碼生成模組400A輸出充電顯示代碼“111”;其他情況類似,在此不作一一描述。
In conjunction with the description of FIGS. 4A and 4B above, when the battery of the charging and discharging system is switched from the discharging state to the charging state, the first to third display code
在充放電系統的電池完成放電顯示狀態到充電顯示狀態轉換的轉換後,充電顯示代碼生成模組400A的各個顯示代碼比特生成單元410、420和430按照各自的模式正常工作以更新充電顯示代碼。這樣一來,在完成顯示狀態轉換後,不會出現跳燈情況。
After the battery of the charging and discharging system completes the conversion from the discharging display state to the charging display state, the display code
需要指出的是,上面示出的充電/放電LED顯示狀態相互轉換的預定義規則僅僅是為了形象地說明本發明的基本原理而不用於限制本發明的範圍,在其他實施例中,可以根據實際需要定義不同的轉換規則, 在此不做具體限定。 It should be pointed out that the pre-defined rules for the mutual conversion of charging/discharging LED display states shown above are only used to illustrate the basic principles of the present invention and not to limit the scope of the present invention. In other embodiments, it can be based on actual conditions. Need to define different conversion rules, There is no specific limitation here.
下面參考圖6來描述根據本發明的實施例的用於充放電系統中的LED顯示控制的示例方法600。
Hereinafter, an
方法600包括,在步驟610,基於充放電系統中的電池的電壓訊號(Vbat_det)和充電狀態訊號(Charge_ena)、LED顯示使能訊號(Charge_ena)、以及多個預設電壓閾值訊號(Vth*),來生成充電顯示代碼(Charge_code)或放電顯示代碼(Discharge_code)。該步驟可以由例如圖2所示的顯示代碼生成器210來實現。
The
方法600還包括,在步驟620,根據充電狀態訊號(Charge_ena)來對充電顯示代碼(Charge_code)或放電顯示代碼(Discharge_code)進行解碼以生成驅動訊號(LED_drive),該驅動訊號(LED_drive)用於驅動充放電系統的LED燈進行顯示。該步驟可以由例如圖2所示的解碼驅動器220來實現。
The
本發明的實施例提供的用於充放電系統中的LED顯示控制的裝置和方法能夠實現充放電系統在充電模式下單調亮燈並且在放電模式下單調滅燈,而且在充電模式和放電模式相互轉換時不發生跳燈。此外,本發明的實施例提供的用於充放電系統中的LED顯示控制的裝置和方法還能夠使得充放電系統在開機時能夠快速捕捉電池電壓以進行LED顯示,並且在進行顯示更新時不受能夠感測到的短時間電池電壓波動的影響。 The device and method for LED display control in the charging and discharging system provided by the embodiments of the present invention can realize that the charging and discharging system monotonically lights up the lights in the charging mode and turns off the lights monotonously in the discharging mode, and the charging mode and the discharging mode interact with each other. No light bounce occurs during conversion. In addition, the device and method for LED display control in the charging and discharging system provided by the embodiments of the present invention can also enable the charging and discharging system to quickly capture the battery voltage for LED display when the charging and discharging system is turned on, and it is not affected when the display is updated. The impact of short-term battery voltage fluctuations that can be sensed.
本發明可以以其他的具體形式實現,而不脫離其精神和本質特徵。例如,特定實施例中所描述的演算法可以被修改,而系統體系結構並不脫離本發明的基本精神。因此,當前的實施例在所有方面都被看作是示例性的而非限定性的,本發明的範圍由所附申請專利範圍而非上述描述定義,並且,落入申請專利範圍的含義和等同物的範圍內的全部改變從而都被包括在本發明的範圍之中。 The present invention can be implemented in other specific forms without departing from its spirit and essential characteristics. For example, the algorithm described in the specific embodiment can be modified, and the system architecture does not deviate from the basic spirit of the present invention. Therefore, the current embodiments are regarded as illustrative rather than restrictive in all aspects, and the scope of the present invention is defined by the scope of the appended patent application rather than the above description, and falls within the meaning and equivalent of the scope of the patent application. All changes within the scope of things are thus included in the scope of the present invention.
200:LED顯示控制的裝置 200: LED display control device
210:顯示代碼生成器 210: Display code generator
220:解碼驅動器 220: Decoding drive
Charge_ena 202:充電狀態訊號 Charge_ena 202: charge status signal
Charge_code 211:充電顯示代碼 Charge_code 211: Charging display code
Discharge_code 212:放電顯示代碼 Discharge_code 212: Discharge display code
LED_ena 203:LED顯示使能訊號 LED_ena 203: LED display enable signal
LED_drive 221:驅動訊號 LED_drive 221: drive signal
Vbat_det 201:電壓訊號 V bat_det 201: Voltage signal
Vth* 204:預設電壓閾值訊號 V th* 204: preset voltage threshold signal
Claims (20)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010793599.4A CN111951719B (en) | 2020-08-10 | 2020-08-10 | Apparatus and method for LED display control in charge-discharge system |
CN202010793599.4 | 2020-08-10 |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI748659B true TWI748659B (en) | 2021-12-01 |
TW202207756A TW202207756A (en) | 2022-02-16 |
Family
ID=73332672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW109132777A TWI748659B (en) | 2020-08-10 | 2020-09-22 | Device and method for LED display control in charging and discharging system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111951719B (en) |
TW (1) | TWI748659B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114617594B (en) * | 2020-12-11 | 2023-12-08 | 江苏风和医疗器材股份有限公司 | Electric anastomat and electric quantity display method thereof |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103368193A (en) * | 2012-03-30 | 2013-10-23 | 中国电力科学研究院 | Method for distribution real-time power of battery energy storage power station for tracking planned output |
TWI435194B (en) * | 2011-03-29 | 2014-04-21 | Univ Nat Kaohsiung 1St Univ Sc | Lighting monitoring system |
TW201521324A (en) * | 2013-11-28 | 2015-06-01 | Univ Nan Kai Technology | Programmable charging system and method thereof |
CN106385076A (en) * | 2016-10-26 | 2017-02-08 | 珠海市魅族科技有限公司 | Charging input and output control devices, terminal, charging equipment and control method |
CN107852028A (en) * | 2015-07-24 | 2018-03-27 | Lg伊诺特有限公司 | Wireless charging device for vehicle |
US20180267586A1 (en) * | 2017-03-14 | 2018-09-20 | Samsung Electronics Co., Ltd. | Charge control method and electronic device based on voltage of battery |
CN110126716A (en) * | 2019-06-17 | 2019-08-16 | 上汽大众汽车有限公司 | Indicate the circuit for lamp of charge capacity |
Family Cites Families (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1050355A (en) * | 1996-07-31 | 1998-02-20 | Technical Design Syst:Kk | Battery charge capacity display device |
CN1219218C (en) * | 1999-10-18 | 2005-09-14 | 神基科技股份有限公司 | Charge or discharge state indicator of battery for protable electronic products |
JP2001197675A (en) * | 2000-01-11 | 2001-07-19 | Nitsuko Corp | Charging method for portable terminal with bar code reader and device therefor |
CN1146771C (en) * | 2000-09-01 | 2004-04-21 | 英业达股份有限公司 | Method and device for indicating battery energy by LEDs on computer |
US7279958B1 (en) * | 2006-02-27 | 2007-10-09 | National Semiconductor Corporation | Synthesized resonation for an EL driver circuit |
WO2012114374A1 (en) * | 2011-02-23 | 2012-08-30 | パイオニア株式会社 | Remaining battery level detecting method, remaining battery level detecting apparatus, and audio signal reproducing apparatus |
US10314123B1 (en) * | 2012-06-15 | 2019-06-04 | Aleddra Inc. | Solid-state lighting with multiple control voltages |
CN103887856A (en) * | 2014-03-21 | 2014-06-25 | 浪潮电子信息产业股份有限公司 | Charging and discharging strategy and electric quantity display method of battery of Feiteng portable computer made in China |
CN203747479U (en) * | 2014-03-21 | 2014-07-30 | 深圳天源中芯半导体有限公司 | Battery electric quantity indicating circuit used for portable power supply |
CN203859565U (en) * | 2014-05-23 | 2014-10-01 | 无锡英诺浦斯微电子有限公司 | Detection display device for electric quantity of battery |
CN204886324U (en) * | 2015-08-27 | 2015-12-16 | 山西省交通科学研究院 | Power management and battery indicator system |
US9841466B2 (en) * | 2015-12-30 | 2017-12-12 | Thunder Power New Energy Vehicle Development Company Limited | Dynamic battery level indicator |
CN205595823U (en) * | 2016-03-04 | 2016-09-21 | 厦门芯阳科技股份有限公司 | Battery power manages circuit |
CN206673634U (en) * | 2017-04-06 | 2017-11-24 | 广州必备电子科技有限公司 | One kind collection discharge and recharge multifunctional circuit |
CN107196374B (en) * | 2017-07-04 | 2019-10-08 | 南京矽力杰半导体技术有限公司 | Battery capacity indicating circuit and method and battery management integrated circuit |
CN109301887A (en) * | 2018-08-08 | 2019-02-01 | 深圳市德赛微电子技术有限公司 | A kind of unidirectional single lattice indicating circuit of battery capacity and method with internal resistance compensation |
CN209282864U (en) * | 2018-12-05 | 2019-08-20 | 上海钛米机器人科技有限公司 | A kind of electric quantity detection apparatus and power supply system |
CN110165746A (en) * | 2019-06-11 | 2019-08-23 | 深圳市傲天汇鑫科技有限公司 | The battery capacity monitoring method and system of single-chip microcontroller based on built-in voltage comparator |
CN210957879U (en) * | 2019-12-26 | 2020-07-07 | 江苏紫米电子技术有限公司 | Electric quantity display device and electronic equipment |
CN111030250B (en) * | 2019-12-27 | 2021-06-25 | 北京锐安科技有限公司 | Battery state indicating circuit and indicating method |
-
2020
- 2020-08-10 CN CN202010793599.4A patent/CN111951719B/en active Active
- 2020-09-22 TW TW109132777A patent/TWI748659B/en active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI435194B (en) * | 2011-03-29 | 2014-04-21 | Univ Nat Kaohsiung 1St Univ Sc | Lighting monitoring system |
CN103368193A (en) * | 2012-03-30 | 2013-10-23 | 中国电力科学研究院 | Method for distribution real-time power of battery energy storage power station for tracking planned output |
TW201521324A (en) * | 2013-11-28 | 2015-06-01 | Univ Nan Kai Technology | Programmable charging system and method thereof |
CN107852028A (en) * | 2015-07-24 | 2018-03-27 | Lg伊诺特有限公司 | Wireless charging device for vehicle |
CN106385076A (en) * | 2016-10-26 | 2017-02-08 | 珠海市魅族科技有限公司 | Charging input and output control devices, terminal, charging equipment and control method |
US20180267586A1 (en) * | 2017-03-14 | 2018-09-20 | Samsung Electronics Co., Ltd. | Charge control method and electronic device based on voltage of battery |
CN110126716A (en) * | 2019-06-17 | 2019-08-16 | 上汽大众汽车有限公司 | Indicate the circuit for lamp of charge capacity |
Also Published As
Publication number | Publication date |
---|---|
CN111951719B (en) | 2023-05-23 |
CN111951719A (en) | 2020-11-17 |
TW202207756A (en) | 2022-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20140361695A1 (en) | Led lighting device | |
CN108633126B (en) | Linear high-power-factor constant-current non-stroboscopic LED driving circuit and method | |
US7482761B2 (en) | Light emitting diode lamp assembly | |
WO2016095648A1 (en) | Coloured lamp apparatus based on edge signal control over power line | |
JP6723064B2 (en) | Ground fault detection circuit, abnormality detection circuit, light emitting device, vehicle | |
CN107660026B (en) | L ED constant current driving circuit and lamp | |
CN103533705A (en) | LED (Light Emitting Diode) driving and dimming circuit | |
TWI748659B (en) | Device and method for LED display control in charging and discharging system | |
CN103929854A (en) | LED drive device and LED dimming controller thereof | |
US10470265B1 (en) | PWM signal control circuit for driving chip and LED driving chip for automotive reading lamp | |
TW200937369A (en) | The circuit and method for driving strings of light emitting diode | |
CN103974501A (en) | Holding current circuit of light emitting diode driving device and operation method thereof | |
US9055639B2 (en) | Apparatus for driving a plurality of segments of LED-based lighting units | |
JP6009205B2 (en) | Semiconductor light source lighting circuit | |
CN102098823A (en) | Light emitting device | |
CN106804081B (en) | Light adjusting circuit and dimming controlling method | |
CN105576951A (en) | Current limiting method, current limiting-constant current combined power circuit and control method thereof | |
CN107710872B (en) | LED light source with improved aura reduction | |
TW201311045A (en) | Light source device and dimming control circuit thereof | |
TW201442554A (en) | LED driver | |
CN210579375U (en) | Voltage control device | |
US9301351B2 (en) | Driving circuit and driving method for light-emitting diode | |
DE602005004167D1 (en) | Electrical circuit for LED signal lamps with a switching threshold for switching between daytime and nighttime operation | |
KR100537749B1 (en) | Luminance control system for led signal lamp | |
WO2020195478A1 (en) | Light-emitting element drive device |