US Pat. No. 9,276,431

POWER MANAGEMENT FOR ELECTRIC VEHICLES

O2MICRO INC., Santa Clar...

1. An apparatus for managing power in an electric vehicle, comprising;
a control circuit configured to generate a first control signal based on a current of a battery operable for powering said
electric vehicle, and generate a second control signal based on a voltage of said battery; and

a first switch, coupled to said control circuit, configured to control connection of said battery to a power source and a
load in said electric vehicle according to said first control signal,

wherein said first control signal controls a voltage at a terminal of said first switch to maintain said current of said battery
to be substantially equal to a current setting, and wherein said second control signal controls said battery to switch between
a first state and a second state.

US Pat. No. 9,112,763

DEVICE, SYSTEM AND METHOD FOR BI-PHASE MODULATION DECODING

O2MICRO INC., Santa Clar...

1. A bi-phase modulation decoding device, comprising:
a sliding-window module configured to:
receive a baseband signal corresponding to a bi-phase modulated signal, and
generate a filtered data packet by filtering the baseband signal using sliding-window digital filtering, wherein the filtered
data packet comprises a series of sliding-window output values; and

a determination module configured to determine a bitstream corresponding to the bi-phase modulated signal based on the filtered
data packet,

wherein the determination module determines a bit value of a first bit cycle of the bi-phase modulated signal based on a sign
of a sliding-window output value of the first bit cycle and a sign of a sliding-window output value of a next bit cycle.

US Pat. No. 9,130,381

SYSTEMS AND METHODS FOR IDENTIFYING AND MONITORING A BATTERY CHARGER

O2MICRO INC., Santa Clar...

1. A charger, comprising:
a first terminal and a second terminal configured for providing an output power to a battery module;
a signal generation unit configured for generating an identity signal which indicates an identity of the charger; and
a third terminal configured for outputting the identity signal to the battery module.

US Pat. No. 9,151,623

METHOD AND APPARATUS FOR CONTROLLING AN ELECTRICAL DEVICE AND A WIRELESS CHARGING DEVICE

O2MICRO INC., Santa Clar...

11. An apparatus comprising:
an electrical device including one or more modules;
a wireless charging device including one or more modules, wherein the electrical device and the wireless charging device share
at least one module; and

a controlling unit coupled to the electrical device and the wireless charging device, comprising:
a monitoring module configured to:
receive an interrupt signal, and
determine a type of the interrupt signal, and
an activating module coupled to the monitoring module and configured to activate a first module shared by the electrical device
and the wireless charging device to perform one or more functions, based on the type of the interrupt signal.

US Pat. No. 9,496,723

SYSTEMS AND METHODS FOR BATTERY BALANCING

O2Micro Inc., Santa Clar...

1. A system comprising:
a balancing control circuit configured to monitor a cell voltage of a battery cell of a plurality of battery cells and also
configured to determine whether said battery cell operates outside of a flat voltage region in a constant current charging
mode by comparing said cell voltage with a first voltage threshold and a second voltage threshold less than said first voltage
threshold, enable balancing of said battery cells if said battery cell operates outside of said flat voltage region, and disable
balancing of said battery cells if said battery cells operate in said flat voltage region,

wherein an increasing rate of said cell voltage when said battery cell operates in said flat voltage region is less than an
increasing rate of said cell voltage when said battery cell operates outside of said flat voltage region; and

a balancing circuit coupled to said balancing control circuit that performs said balancing under control of said balancing
control circuit.

US Pat. No. 9,232,591

CIRCUITS AND METHODS FOR DRIVING LIGHT SOURCES

O2Micro Inc., Santa Clar...

1. A dimming controller for a light-emitting diode (LED) light source, said dimming controller comprising:
a voltage control terminal configured to provide a pulse signal when said dimming controller operates in a first mode, wherein
said pulse signal operates a control switch in a first state and a second state alternately, wherein a first current path
is enabled to enable a first current to flow through said LED light source in said first mode, wherein the value of said first
current increases during operation of said control switch in said first state and decreases during operation of said control
switch in said second state, wherein said voltage control terminal provides a control signal to maintain said control switch
in said second state to cut off said first current path when said dimming controller operates in a second mode;

a current control terminal configured to enable a second current path to enable a second current to flow through said LED
light source when said dimming controller operates in said second mode;

a monitoring terminal configured to receive a switch monitoring signal indicative of a conductance status of a power switch
coupled between a power source and a power converter;

a dimmer comprising a counter configured to provide a count value that varies according to said switch monitoring signal,
said dimmer configured to select an operation mode from said first mode and said second mode, wherein said operation mode
is selected according to said count value; and

a current source coupled to said current control terminal, configured to provide said second current to flow through said
LED light source when said dimmer controller operates in said second mode.

US Pat. No. 9,157,963

METHOD AND SYSTEM FOR CALIBRATING BATTERY PACK VOLTAGE BASED ON COMMON-MODE CALIBRATION PARAMETER AND DIFFERENTIAL-MODE CALIBRATION PARAMETER

O2MICRO INC., Santa Clar...

1. A method for calibrating battery pack voltage, the battery pack having a plurality of cells connected in series, the method
comprising:
changing a negative terminal voltage of one of the plurality of cells from a first negative terminal voltage to a second negative
terminal voltage so that an output voltage indicative of cell voltage is changed from a first output voltage to a second output
voltage,

wherein a positive terminal voltage of the cell is substantially constant; calculating a voltage difference between the first
output voltage and the second output voltage;

calculating a differential-mode calibration parameter that is to be used to calibrate the cell voltage, based on the voltage
difference between the first output voltage and the second output voltage and a voltage difference between the first negative
terminal voltage and the second negative terminal voltage,

wherein the differential-mode calibration parameter is equal to the voltage difference between the first output voltage and
the second output voltage divided by the voltage difference between the first negative terminal voltage and the second negative
terminal voltage;

changing the negative terminal voltage of the cell from the first negative terminal voltage to the second negative terminal
voltage so that the positive terminal voltage of the cell is changed from a first positive terminal voltage to a second positive
terminal voltage and the output voltage indicative of the cell voltage is changed from a third output voltage to a fourth
output voltage, wherein the cell voltage is substantially constant; and

calculating a common-mode calibration parameter based on the differential-mode calibration parameter and a voltage difference
between the third output voltage and the fourth output voltage and a voltage difference between the first positive terminal
voltage and the second positive terminal voltage, wherein the differential-mode calibration parameter and common-mode calibration
parameter are used to calibrate the cell voltage.

US Pat. No. 9,209,702

FLYBACK CONVERTER AND METHOD FOR CONTROLLING A FLYBACK CONVERTER

O2Micro Inc., Santa Clar...

1. A flyback converter, comprising:
a transformer having a primary winding coupled to a power source; and
a controller operable for controlling a switch coupled in series with said primary winding,
wherein said controller is configured to operate in a plurality modes comprising a burst mode and a standby mode,
wherein in said burst mode, said controller generates a first plurality of discrete pulse groups to turn on said switch and
a duration of each pulse in said first plurality of discrete pulse groups is determined by a first reference signal having
a first predetermined voltage,

wherein in said standby mode, said controller generates a second plurality of discrete pulse groups to turn on said switch
and a duration of each pulse in said second plurality of discrete pulse groups is determined by a second reference signal
having a second predetermined voltage which is greater than said first predetermined voltage of said first reference signal,
and

wherein said controller further comprises a counter operable for counting a number of said first plurality of discrete pulse
groups in said burst mode, and wherein said controller exits said burst mode and enters said standby mode if said number of
said first plurality of discrete pulse groups is increased to a predetermined value.

US Pat. No. 9,766,295

COULOMB COUNTING USING ANALOG-TO-FREQUENCY CONVERSION

O2Micro Inc., Santa Clar...

1. An analog-to-frequency converting circuit comprising:
a first plurality of switches operable for receiving a first sense signal indicative of a current and providing a second sense
signal that alternates between an original version of said first sense signal and a reversed version of said first sense signal,
under control of a switching signal;

an integral comparing circuit, coupled to said first plurality of switches, operable for integrating said second sense signal
to generate an integral value, and operable for generating a train of trigger signals at a frequency indicative of said current,
wherein each trigger signal of said trigger signals is generated when said integral value reaches a preset reference;

a compensation circuit, coupled to said integral comparing circuit, operable for compensating for said integral value with
a predetermined value in response to each trigger signal of said trigger signals, wherein said compensation circuit comprises:

a capacitive component; and
a second plurality of switches, coupled to said capacitive component, operable for selectively connecting a voltage source
to said capacitive component to charge said capacitive component so that said capacitive component has a voltage level of
said voltage source, and selectively connecting said capacitive component to said integral comparing circuit so that said
compensation circuit provides a compensation signal to compensate for said integral value, wherein said control circuit controls
said second plurality of switches according to said trigger signals such that said compensation signal is selectively at said
voltage level and a reversed level of said voltage level; and

a control circuit, coupled to said first plurality of switches, operable for generating said switching signal such that a
first time interval during which said second sense signal is said original version and a second time interval during which
said second sense signal is said reversed version have substantially the same time length.

US Pat. No. 9,291,680

CIRCUITS AND METHODS FOR MEASURING A CELL VOLTAGE IN A BATTERY

O2Micro Inc., Santa Clar...

1. A circuit for measuring a cell voltage of a cell in a battery, said circuit comprising:
a measurement circuit that comprises a first terminal selectively coupled to a positive terminal of said cell via a first
resistive element and comprises a second terminal selectively coupled to a negative terminal of said cell via a second resistive
element, and that consumes a first current flowing from said positive terminal through said first resistive element to said
first terminal while said first terminal is coupled to said positive terminal; and

a current generator, selectively coupled to said positive terminal of said battery via said first terminal and said first
resistive element, that generates a first compensation current according to said first current, wherein said first compensation
current flows from said positive terminal through said first resistive element to said first terminal,

wherein said measurement circuit obtains a first value indicative of a first voltage difference between said first terminal
and said second terminal when said first compensation current is disabled, obtains a second value indicative of a second voltage
difference between said first terminal and said second terminal when said first compensation current is enabled, calculates
a third value proportional to said first value, and calculates said cell voltage by subtracting said second value from said
third value.

US Pat. No. 9,402,286

CIRCUITS AND METHODS FOR DRIVING A LIGHT SOURCE

O2Micro Inc, Satna Clara...

1. A circuit for driving a light source, said circuit comprising:
a bridge circuit coupled to a switch through a first power line and a second power line, and configured to receive power from
said first and second power lines and generate a rectified voltage, wherein said switch operates in a plurality of operation
states comprising a first state, a second state, and a third state, wherein in said first state said switch conducts power
to said first power line but not said second power line, wherein in said second state said switch conducts power to said second
power line but not said first power line, and wherein in said third state said switch conducts power to both said first and
second power lines;

a converter coupled to said bridge circuit and configured to convert said rectified voltage to an output voltage to drive
said light source, and control a current through said light source according to a driving signal; and

a controller coupled to said converter and configured to monitor said operation state of said switch and generate said driving
signal based on said operation state to control the light level of said light source,

wherein said controller further comprises:
a signal generator configured to receive a first detection signal indicating a power voltage on said first power line, receive
a second detection signal indicating a power voltage on said second power line, and generate a reference signal indicating
a target level for an average current through said light source according to said first and second detection signals; and

a driver coupled to said signal generator and configured to generate said driving signal according to said reference signal
to adjust said average current to said target level.

US Pat. No. 9,368,981

SYSTEM AND METHODS FOR CURRENT BALANCING

O2Micro, Inc., Santa Cla...

13. A method comprising:
operating a first control unit of a battery module with a first consumed current, the battery module further comprising a
plurality of cells and a plurality of control circuits;

operating a second control unit of the battery module with a second consumed current;
detecting a difference between the first consumed current and the second consumed current based on a detection signal;
generating a compensation current based on the detection signal; and
repeating the detecting and generating operations until the battery module enters a balanced working state, wherein in the
balanced working state there is no current flowing through a plurality of paths between the plurality of cells and the plurality
of control circuits.

US Pat. No. 9,368,979

SYSTEM AND METHODS FOR BATTERY BALANCING

O2Micro Inc, Santa Clara...

1. A battery system comprising:
a plurality of battery cells having a plurality of cell voltages; and
a balancing module coupled to said plurality of battery cells and configured to specify a first voltage threshold and a second
voltage threshold less than said first voltage threshold according to an amount of a charging current supplied to said battery
cells in a constant current charging mode, determine whether a battery cell of said battery cells operates outside of a voltage
range, said voltage range ranging from said second voltage threshold to said first voltage threshold and comprising a flat
voltage region determined by said amount of said charging current, by comparing a cell voltage of said battery cell with said
first and second voltage thresholds, perform balancing of said battery cells if said balancing module determines that said
battery cell operates outside of said voltage range, and disable balancing of said battery cells if said balancing module
determines that said battery cells operate in said voltage range, wherein an increasing rate of said cell voltage when said
battery cell operates in said flat voltage region is less than an increasing rate of said cell voltage when said battery cell
operates outside of said flat voltage region.

US Pat. No. 9,106,134

POWER TRANSFER DEVICES

O2Micro, Inc., Santa Cla...

1. A device comprising:
an input terminal configured to receive an input voltage;
an output terminal configured to provide an output voltage;
a control unit, coupled to said output terminal, configured to control a first switch that is coupled between said input and
output terminals to adjust said output voltage according to said input voltage and a reference voltage, wherein said control
unit is deactivated if a level of said reference voltage reaches a level of said input voltage; and

a drive unit, coupled to said control unit, configured to provide a connection between said control unit and said first switch
if said control unit is activated, and configured to maintain a level of said output voltage at or near said level of said
input voltage if said control unit is deactivated.

US Pat. No. 9,888,544

DRIVING CIRCUITS AND METHODS FOR CONTROLLING LIGHT SOURCE

O2Micro Inc., Santa Clar...

1. A light source driving circuit, comprising:
a power converter configured for receiving input voltage and providing output power to a load; and
a controller, coupled to the power converter, configured for acquiring a first sensing signal indicative of an average current
flowing through the load, generating a first temperature detecting signal indicative of an ambient temperature of the light
source driving circuit and adjusting the average current flowing through the load based on the first temperature detecting
signal and the first sensing signal,

wherein the controller decreases the average current of the load based on the first temperature detecting signal and the first
sensing signal when the ambient temperature of the light source driving circuit keeps rising after the ambient temperature
rises above a first temperature threshold,

wherein the power converter comprises:
a current monitor configured for providing a second sensing signal indicative of an instant current flowing through the load,
wherein the first sensing signal is acquired based on the second sensing signal; and

a switch, coupled to the current monitor, wherein the controller generates a driving signal to control the switch based on
the first temperature detecting signal and the first sensing signal,

wherein the controller comprises:
a bandgap voltage generator, configured for generating the first temperature detecting signal;
an error signal generator, coupled to the bandgap voltage generator, configured for generating an error signal based on the
first temperature detecting signal and the first sensing signal;

a saw-tooth signal generator, configured for generating a saw tooth signal;
a first comparator, coupled to the error signal generator and the saw-tooth signal generator, configured for comparing the
error signal and the saw-tooth signal; and

a pulse-width modulation signal generator, coupled to the first comparator, configured for generating the driving signal based
on an output of the first comparator, and

wherein when the ambient temperature of the light source driving circuit is greater than the first temperature threshold,
then a voltage of the error signal decreases in response to a rise of the ambient temperature of the light source driving
circuit, and the driving signal controls the switch to decrease the average current flowing through the load.

US Pat. No. 9,071,049

SYSTEM AND METHODS FOR PROTECTION OF BATTERY MODULES

O2Micro, Inc., Santa Cla...

1. A system comprising:
a shunt circuit; and
control circuitry, coupled to said shunt circuit, said control circuitry operable for detecting a fault in a plurality of
battery modules, operable for controlling said shunt circuit to shunt a first current flowing from a negative terminal of
a battery module of said plurality of battery modules to a positive terminal of said battery module if said fault is associated
with said battery module and occurs during a discharging process of said battery modules, and operable for controlling said
shunt circuit to shunt a second current flowing from said positive terminal to said negative terminal if said fault is associated
with said battery module and occurs during a charging process of said battery modules.

US Pat. No. 10,153,700

POWER CONVERTERS

O2Micro, Inc., Santa Cla...

1. A power converter comprising:a first primary winding;
a first secondary winding magnetically coupled to said first primary winding;
a second primary winding coupled to said first primary winding;
a second secondary winding magnetically coupled to said second primary winding;
a first diode, coupled to said first secondary winding, that allows a first current to flow through said first secondary winding to an output terminal of said power converter when said first diode is turned on;
a second diode, coupled to said second secondary winding, that allows a second current to flow through said second secondary winding to said output terminal when said second diode is turned on; and
output circuitry that suppresses imbalance between said first and second currents,
wherein said output circuitry comprises a first resistive component, coupled to said first diode and said output terminal, that passes at least a part of said first current to provide negative feedback to said first current, and wherein said negative feedback circuitry further comprises a second resistive component, coupled to said second diode and said output terminal, that passes at least a part of said second current to provide negative feedback to said second current.

US Pat. No. 9,647,556

DC TO DC CONVERTERS AND CONTROLLERS THEREOF

O2Micro, Inc., Santa Cla...

15. A DC to DC converter comprising:
a plurality of switching circuits, each switching circuit of said switching circuits operable for allowing a current to flow
through an inductive component if said inductive component is coupled to said switching circuit; and

a controller coupled to said switching circuits and operable for generating a plurality of PWM signals phase-shifted relative
to one another, each PWM signal of said PWM signals having on-time state and an off-time state and operable for controlling
a switching circuit of said switching circuits, wherein said controller comprises:

ramp signal generating circuitry operable for generating a plurality of ramp signals having substantially the same ramp slope,
each ramp signal of said ramp signals generated in response to detecting an on-time state of a corresponding PWM signal of
said PWM signals; and

a comparing circuit, coupled to said ramp signal generating circuitry, operable for alternately comparing said ramp signals
with a preset reference to generate a plurality of control signals, a corresponding control signal of said control signals
operable for controlling said corresponding PWM signal from said on-time state to an off-time state,

wherein said controller generates a plurality of trigger signals and controls said corresponding PWM signal to be in said
on-time state on detection of a corresponding trigger signal in said trigger signals, and wherein each trigger signal of said
trigger signals indicates a situation in which an output voltage of said DC to DC converter is less than a reference voltage.

US Pat. No. 9,298,909

DETECTING STATUS OF AN APPLICATION PROGRAM RUNNING IN A DEVICE

O2Micro, Inc., Santa Cla...

1. A detecting system comprising:
a sense terminal that receives an indicative signal indicative of a supply current, wherein said supply current is provided
to power a device to run a first application program residing on a computer-readable medium in said device; and

detecting circuitry that is coupled to said sense terminal, that calculates variation in said supply current based on said
indicative signal, that estimates power consumption of said first application program according to said variation, and that
detects whether an abnormal condition occurs by comparing the estimated power consumption with a reference indicative of average
power consumption of said first application program,

wherein said detecting circuitry determines that said abnormal condition occurs to said first application program if a difference
between said estimated power consumption and said reference is greater than a predetermined threshold, and determines that
said first application program is in a normal condition if a difference between said estimated power consumption and said
reference is less than said predetermined threshold, wherein said detecting circuitry checks whether said first application
program contains a computer virus if said detecting circuitry detects that said abnormal condition occurs to said first application
program, and wherein said detecting circuitry updates said reference based on said estimated power consumption if said detecting
circuitry detects that said first application program is in said normal condition.

US Pat. No. 9,118,238

CHARGE PUMP SYSTEMS WITH ADJUSTABLE FREQUENCY CONTROL

O2Micro, Inc., Santa Cla...

1. An electronic system comprising:
a charge pump driver operable for generating an output to control a switch;
a clock generator, coupled to said charge pump driver, operable for generating a clock signal to control said charge pump
driver, operable for adjusting a frequency of said clock signal to a first value thereby increasing said output of said charge
pump driver to turn on said switch, and operable for adjusting, in response to sensing that said output is greater than a
predetermined voltage level, said frequency to a second value that is less than said first value and keeps said switch turned
on; and

a sensor, coupled to said switch and said charge pump driver, operable for sensing said output of said charge pump driver
and a source voltage at a source terminal of said switch, generating a control signal indicative of a voltage difference between
said output and said source voltage, and controlling said clock generator according to said control signal.

US Pat. No. 9,083,237

CIRCUITS AND METHODS FOR CONTROLLING A DC/DC CONVERTER

O2Micro, Inc., Santa Cla...

1. A converter circuit comprising:
a converter operable for converting an input voltage to an output voltage; and
a controller coupled to said converter and operable for receiving a reference voltage at a first terminal, generating a slew
voltage at a second terminal, controlling a current flowing through said first and second terminals to change said slew voltage
at a substantially constant first slew rate if said reference voltage changes from a first level to a second level, and controlling
said converter based on said slew voltage to cause said output voltage to change from a third level to a fourth level at a
second slew rate, wherein said controller comprises:

a resistor coupled between a first node and a second node;
a first transistor coupled between said first node and said first terminal;
a second transistor coupled between said second node and said second terminal; and
a control circuit operable for controlling said current to flow through said resistor and said first and second transistors
by controlling node voltages on said first node and said second node, and by controlling gate voltages of said first transistor
and said second transistor, and wherein said controller adjusts said slew voltage according to said current.

US Pat. No. 10,075,074

DC TO DC CONVERTERS AND CONTROLLERS THEREOF

O2Micro, Inc., Santa Cla...

1. A controller for a direct-current (DC) to DC converter, comprising:pulse width modulated (PWM) signal generating circuitry that generates a plurality of PWM signals comprising a first PWM signal and a second PWM signal that are phase-shifted relative to one another, each PWM signal in said plurality of PWM signals having an on-time state and an off-time state;
ramp signal generating circuitry, coupled to said PWM signal generating circuitry, that generates a plurality of ramp signals comprising a first ramp signal and a second ramp signal, and generates an output signal selected from said plurality of ramp signals, wherein said first ramp signal is generated in response to detecting said on-time state of said first PWM signal, and said second ramp signal is generated in response to detecting said on-time state of said second PWM signal, wherein said ramp signal generating circuitry increases said first and second ramp signals in parallel if said first and second PWM signals are overlapped with each other, and wherein said ramp signal generating circuitry comprises:
a select circuit that selects said first ramp signal to be said output signal, and changes said output signal from said first ramp signal to said second ramp signal if a first control signal is generated; and
a comparing circuit, coupled to said ramp signal generating circuitry, that compares said output signal with a preset reference, generates said first control signal to control said first PWM signal to be in said off-time state when said first ramp signal is selected to be said output signal and said output signal increases to said preset reference, and generates a second control signal to control said second PWM signal to be in said off-time state when said second ramp signal is selected to be said output signal and said output signal increases to said preset reference.

US Pat. No. 9,397,579

FULL-BRIDGE SWITCHING DC/DC CONVERTERS AND CONTROLLERS THEREOF

O2Micro Inc, Santa Clara...

1. A controller for a DC/DC converter, said controller comprising:
a signal generator operable for transferring pulses of a PWM (pulse width modulation) signal to a first channel and a second
channel alternately thereby generating a first pulse signal at said first channel and a second pulse signal at said second
channel alternately, and operable for controlling said PWM signal to regulate an output of said DC/DC converter; and

control circuitry, coupled to said signal generator, operable for controlling a plurality of switches including a first switch,
a second switch, a third switch, and a fourth switch according to said first and second pulse signals,

wherein said controlling comprises:
turning off said third switch in response to detecting a first edge of said first pulse signal, and turning on said first
switch after a predetermined delay from said detecting of said first edge,

turning off said fourth switch in response to detecting a second edge of said first pulse signal, and turning on said second
switch after a predetermined delay from said detecting of said second edge,

turning off said first switch in response to detecting a third edge of said second pulse signal and turning on said third
switch after a predetermined delay from said detecting of said third edge, and

turning off said second switch in response to detecting a fourth edge of said second pulse signal and turning on said fourth
switch after a predetermined delay from detecting of said fourth edge,

wherein said control circuitry is operable for generating a plurality of driving signals according to said first and second
pulse signals, and each driving signal of said driving signals has a turn-on status to turn on a corresponding switch in said
switches and a turn-off status to turn off said corresponding switch,

and wherein said control circuitry further comprises:
a plurality of delay units, comprising a first delay unit, a second delay unit, a third delay unit, and a fourth delay unit,
operable for generating said driving signals according to a plurality of logic outputs, each logic output of said logic outputs
having a first level and a second level,

wherein said first delay unit is operable for setting a first driving signal of said driving signals to said turn-on status
after a predetermined delay from detecting that a first logic output of said logic outputs is at said first level, and setting
said first driving signal to said turn-off status in response to detecting that said first logic output is at said second
level,

wherein said second delay unit is operable for setting a second driving signal of said driving signals to said turn-on status
after a predetermined delay from detecting that a second logic output of said logic outputs is at said first level, and setting
said second driving signal to said turn-off status in response to detecting that said second logic output is at said second
level,

wherein said third delay unit is operable for setting a third driving signal of said driving signals to said turn-on status
after a predetermined delay from detecting that a third logic output of said logic outputs is at said first level, and setting
said third driving signal to said turn-off status in response to detecting that said third logic output is at said second
level,

and wherein said fourth delay unit is operable for setting a fourth driving signal of said driving signals to said turn-on
status after a predetermined delay from detecting that a fourth logic output of said logic outputs is at said first level,
and setting said fourth driving signal to said turn-off status in response to detecting that said fourth logic output is at
said second level.

US Pat. No. 9,130,378

SYSTEMS AND METHODS FOR BALANCING BATTERY CELLS

O2Micro, Inc., Santa Cla...

1. A system comprising:
a transformer circuit that includes a primary winding and a plurality of secondary windings coupled to a battery pack having
a plurality of cells, and that is operable for transforming an input power of said system into a plurality of output currents
from said secondary windings to said cells, wherein an input current through said primary winding corresponds to said input
power; and

a control circuit, coupled to said transformer circuit, that is operable for controlling a level of said input current to
increase if a voltage of said battery pack increases, and operable for controlling a level of said input current to decrease
if said voltage of said battery pack decreases, so as to maintain a summation of said output currents at a predetermined value.

US Pat. No. 9,704,858

INTEGRATED DEVICE HAVING MULTIPLE TRANSISTORS

O2Micro, Inc., Santa Cla...

1. An integrated device comprising:
a semiconductor well formed in an epitaxial layer, wherein said epitaxial layer comprises a first type of semiconductor, and
said semiconductor well comprises a second type of semiconductor that is different from said first type of semiconductor;

a first guard ring formed in said epitaxial layer and surrounding said semiconductor well, wherein said first guard ring comprises
said second type of semiconductor;

an insulating layer formed atop said first guard ring; and
a plurality of gate electrodes formed on a top surface of said insulating layer, overlapping said first guard ring and surrounding
said semiconductor well,

wherein said gate electrodes comprise a first gate electrode and a second gate electrode separated by a gap, wherein said
first gate electrode comprises a first side wall above said first guard ring and facing said gap, wherein said second gate
electrode comprises a second side wall above said first guard ring and facing said gap, wherein said gap is formed between
said first and second side walls above said first guard ring, wherein said gap is shaped so that a first intersecting line
between said top surface and said first side wall partially overlaps a first area of said top surface above said first guard
ring, and wherein said first area is defined by a second intersecting line between said top surface and said second side wall
and by a straight line through said gap and between a first point of said second intersecting line and a second point of said
second intersecting line.

US Pat. No. 9,497,812

CIRCUITS FOR DRIVING LIGHT SOURCES

O2Micro, Inc., Santa Cla...

1. A light source driving circuit for powering a first light source and a second light source by a DC (direct current) voltage,
comprising:
a first current regulator, coupled to said first light source, operable for controlling a first switch coupled to said first
light source based on a first current reference and a first sensing signal indicating a current flowing through said first
light source;

a second current regulator, coupled to said second light source, operable for controlling a second switch coupled to said
second light source based on a second current reference and a second sensing signal indicating a current flowing through said
second light source;

a controller operable for regulating said current flowing through said first light source and said current flowing through
said second light source by controlling said first current regulator and said second current regulator,

wherein if said DC voltage is within a first range, then said controller turns on said first light source, and if said DC
voltage is within a second range, then said controller turns on said first light source and said second light source,

a first current sensor operable for providing said first sensing signal, wherein said first current sensor comprises a first
resistor having a first resistance; and

a second current sensor operable for providing said second sensing signal, wherein said second current sensor comprises a
second resistor having a second resistance,

wherein said first current reference is equal to said second current reference, said first light source comprises a first
number of light emitting diodes having a first forward voltage and said second light source comprises a second number of light
emitting diodes having a second forward voltage, and a ratio of said first resistance to said second resistance is equal to
a ratio of said first forward voltage to a sum of said first forward voltage and said second forward voltage.

US Pat. No. 9,660,473

CONTROLLERS FOR DC/DC CONVERTER

O2Micro Inc, Santa Clara...

1. A DC/DC converter, operable for converting a DC input voltage to a DC output voltage and for charging a battery, wherein
the DC/DC converter comprises:
a DC/DC controller, operable for generating a driving signal according to a target value for the output voltage and a first
detection signal indicative of the output voltage level to control a switching circuitry and to adjust the output voltage
level; and

a battery charging controller, coupled to the DC/DC controller and the battery, that is operable for receiving the first detection
signal indicative of the output voltage level and a second detection signal indicative of a battery voltage level, and for
generating a loop control signal according to the first detection signal and the second detection signal to adjust the target
value for the output voltage, wherein the difference between the first detection signal and the second detection signal indicates
an amount of a battery charging current, wherein the battery charging controller comprises:

a first error amplifier, operable for comparing the difference between the first detection signal and the second detection
signal and a reference current signal indicative of a target value for the battery charging current;

a second error amplifier, operable for comparing the second detection signal and a reference voltage signal indicative of
a target value for the battery voltage; and

a bias current source, coupled to the first error amplifier and the second error amplifier, that is operable for adjusting
the loop control signal according to the comparison results of the first error amplifier and the second error amplifier, thus
adjusting the target value for the output voltage.

US Pat. No. 9,386,653

CIRCUITS AND METHODS FOR DRIVING LIGHT SOURCES

O2Micro Inc, Santa Clara...

1. A driving circuit for driving a light source having an adjustable color temperature, the driving circuit comprising:
a power converter, coupled between a power source and the light source and operable for receiving power from the power source
and for providing a regulated power to the light source; and

a color temperature controller, coupled to the power converter and operable for receiving a switch monitoring signal indicative
of an operation of a power switch coupled between the power source and the power converter, and for adjusting the color temperature
of the light source based on the switch monitoring signal,

wherein the light source comprises a first light element having a first color temperature level and a second light element
having a second color temperature level, wherein the color temperature controller comprises a control unit for generating
a first control signal and a second control signal according to the switch monitoring signal, wherein the first control signal
selectively turns on a first control switch coupled between the color temperature controller and the first light element so
that the color temperature of the light source is adjusted to the first color temperature level, and wherein the second control
signal selectively turns on a second control switch coupled between the color temperature controller and the second light
element so that the color temperature of the light source is adjusted to the second color temperature level,

wherein the control unit comprises:
a timer, operable for receiving the switch monitoring signal, for beginning timing if the switch monitoring signal has a falling
edge, and for generating a pulse signal after a predefined time interval;

a first D flip-flop, coupled to the pulse signal; and
a second D flip-flop, coupled to the switch monitoring signal and the first D flip-flop,
wherein the first control signal and the second control signal are generated based on the output of the second D flip-flop.

US Pat. No. 10,216,210

DUAL INPUT POWER MANAGEMENT METHOD AND SYSTEM

O2MICRO INC., Santa Clar...

1. A dual input power management method, comprising:monitoring whether a first input terminal has a power supply and whether a second input terminal has a power supply, and accordingly generating a first monitor signal and a second monitor signal;
generating a priority signal based on the first monitor signal, the second monitor signal, and an enable signal, to determine an input priority of the first input terminal and the second input terminal;
generating a control signal based on a feedback signal indicative of an output voltage and a reference signal; and
regulating the output voltage based on the priority signal and the control signal.

US Pat. No. 9,059,632

CONTROLLERS FOR DC TO DC CONVERTERS

O2Micro, Inc., Santa Cla...

1. A controller comprising:
a ramp signal generator operable for providing a control current through a resistive component to control charging of and
discharging of a capacitive component, said capacitive component operable for generating a ramp signal based on said charging
and said discharging; and

control circuitry coupled to said ramp signal generator and operable for controlling a voltage across said resistive component
to indicate a voltage across an inductive component thereby controlling said control current to indicate said voltage across
said inductive component, and operable for controlling a current through said inductive component into a first predetermined
range by controlling said ramp signal of said capacitive component into a second predetermined range,

wherein said ramp signal generator charges said capacitive component if said current through said inductive component varies
from a first level to a second level, and discharges said capacitive component if said current through said inductive component
varies from said second level to said first level, and wherein a ripple magnitude of said current through said inductive component
is determined by a difference between said first and second levels.

US Pat. No. 9,698,611

SYSTEMS AND METHODS FOR COMPENSATING CURRENT IN A BATTERY MODULE

O2Micro, Inc., Santa Cla...

1. A battery module, comprising:
a battery pack comprising a plurality of cells; and
a plurality of control circuits corresponding to the plurality of cells, each control circuit comprising:
a control unit, operable for managing the corresponding cell, the control unit operating with a corresponding consumed current;
and

a compensation unit, coupled to the control unit, that is operable for generating a corresponding compensation current such
that the sum of the corresponding consumed current and the corresponding compensation current is equal to a target total current.

US Pat. No. 10,348,101

SYSTEMS AND METHODS FOR CONTROLLING BATTERY CURRENT

O2MICRO INC., Santa Clar...

1. A battery system comprising a plurality of battery packs, wherein a battery pack of said battery packs comprises:a battery;
voltage sense circuitry that senses a battery voltage of said battery and an input voltage of said battery pack;
a control circuit, coupled to said voltage sense circuitry, operable for adjusting a level of a reference signal based on attribute data associated with said battery pack and a difference between said battery voltage and said input voltage;
a control switch operable for passing a battery current flowing through said battery; and
current regulation circuitry, coupled to said control circuit and said control switch, operable for controlling said control switch to regulate said battery current according to said reference signal.

US Pat. No. 10,553,915

SYSTEMS AND METHODS FOR CONFIGURING PARAMETERS FOR CHARGING A BATTERY PACK

O2Micro Inc., Santa Clar...

1. A charging system comprising:a charger operable for providing a charging current to a battery pack, wherein said charger comprises:
a charging switch coupled between a power source and said battery pack; and
a controller operable for controlling said charging switch and comprising a voltage sensing pin coupled to said battery pack,
wherein said controller is operable for measuring a battery voltage of said battery pack via said voltage sensing pin during a plurality of discrete time slots, and is operable for adjusting a length of a time interval between two consecutive time slots of said plurality of discrete time slots based on said battery voltage, and
wherein said controller is operable for determining an identity of said battery pack and configuring charging parameters for charging said battery pack according to said identity, wherein said charging parameters comprise a level of said charging current.

US Pat. No. 10,537,000

CONTROLLER, LIGHT SOURCE DRIVING CIRCUIT AND METHOD FOR CONTROLLING LIGHT SOURCE MODULE

O2Micro Inc., Santa Clar...

1. A controller operable for controlling a light source module, said controller comprising:a current input terminal, coupled to a power source through a rectifier, operable for receiving electric power from said power source;
a switch monitoring terminal, coupled to a power switch, operable for receiving a switch monitoring signal indicating the on/off state of said power switch, wherein said power switch is coupled between said rectifier and said power source;
a first control terminal, operable for turning on a first light source in said light source module and operable for turning off said first light source, based on said switch monitoring signal;
a second control terminal, operable for turning on a second light source in said light source module and operable for turning off said second light source, based on said switch monitoring signal; and
a current monitoring terminal, operable for monitoring a current flowing through said first light source and a current flowing through said second light source.

US Pat. No. 9,929,573

MODULES, SYSTEMS, AND METHODS FOR BATTERY BALANCING

O2Micro Inc, Santa Clara...

1. A balancing module comprising:an analog to digital converter that converts a monitoring signal, indicative of a cell voltage of a battery cell of a plurality of battery cells, to a digital signal; and
a processor, coupled to said analog to digital converter, that controls balancing of said battery cells according to said digital signal, accesses a plurality of data sets associated with a plurality of currents, selects a data set, from said data sets, associated with a charging current that charges said battery cells, sets a first voltage threshold and a second voltage threshold according to the selected data set, enables balancing of said battery cells if said battery cell operates outside of a voltage range ranging from said second voltage threshold to said first voltage threshold, and disables balancing of said battery cells if said battery cells operate in said voltage range.

US Pat. No. 9,515,508

BATTERY MANAGEMENT SYSTEM

O2Micro Inc, Santa Clara...

1. A system comprising:
detecting circuitry that detects cell voltages of a first plurality of battery cells of a battery pack; and
first control circuitry, coupled to said detecting circuitry, that selectively operates in a state that is one of a normal
state and a charging prohibition state based on a predetermined overcharge threshold, a predetermined overcharge-released
threshold less than said predetermined overcharge threshold, and a balance threshold less than said predetermined overcharge-released
threshold,

wherein in said normal state, charging of said first plurality of battery cells is enabled and each of said cell voltages
keeps increasing during the entire period of said normal state, said first control circuitry balances said first plurality
of battery cells by decreasing a rate of voltage increase of a battery cell of said first plurality of battery cells if a
voltage of said battery cell of said first plurality of battery cells is greater than said balance threshold, and said first
control circuitry transitions from said normal state to said charging prohibition state if a first voltage of a first battery
cell of said first plurality of battery cells exceeds said predetermined overcharge threshold,

wherein in said charging prohibition state, charging of said first plurality of battery cells is disabled, and if a second
battery cell of said first plurality of battery cells has a voltage greater than said balance threshold and a third battery
cell of said first plurality of battery cells has a voltage less than said balance threshold, then said first control circuitry
enables discharging of said first battery cell and said second battery cell,

and wherein in said charging prohibition state, if said first voltage of said first battery cell falls to said predetermined
overcharge-released threshold, then said first control circuitry transitions from said charging prohibition state to said
normal state and enables charging of said first plurality of battery cells.

US Pat. No. 10,277,052

CONTROLLING POWER DELIVERY TO A BATTERY

O2Micro Inc., Santa Clar...

1. A method for controlling power delivery to a battery, said method comprising:determining whether a first adapter or a second adapter is connected to an interface, wherein a maximum output power of said second adapter is less than a maximum output power of said first adapter;
enabling a conversion circuit, coupled between said interface and said battery, to convert input power from said second adapter to output power to charge said battery if said second adapter is connected to said interface;
enabling a bypass path, coupled between said interface and said battery, to deliver power from said first adapter to charge said battery if said first adapter is connected to said interface; and
providing a request to said first adapter through said interface if said first adapter is connected to said interface, wherein said request comprises information indicative of a target level of an output power of said first adapter and further comprises an instruction that, when executed by said first adapter, causes said first adapter to provide output power at said target level to said interface.

US Pat. No. 9,819,271

POWER CONVERTERS

O2Micro, Inc., Santa Cla...

1. A power converter for converting input power to output power, said power converter comprising:
a first transformer circuit comprising a first primary winding operable for receiving a first part of said input power and
a first secondary winding operable for generating a first part of said output power, wherein said first secondary winding
comprises a first upper section coupled to a first terminal of said first secondary winding and also comprises a first lower
section coupled between said first upper section and a second terminal of said first secondary winding;

a second transformer circuit comprising a second primary winding operable for receiving a second part of said input power
and a second secondary winding operable for generating a second part of said output power, wherein said second secondary winding
comprises a second upper section coupled to a third terminal of said second secondary winding and also comprises a second
lower section coupled between said second upper section and a fourth terminal of said second secondary winding;

a first diode, coupled to said first upper section, operable for allowing a first current to flow through said first diode,
through at least a part of said first secondary winding, and to an output terminal of said power converter;

a second diode, coupled to said second upper section, operable for allowing a second current to flow through said second diode,
through at least a part of said second secondary winding, and to said output terminal;

a third diode coupled to said first lower section;
a fourth diode coupled to said second lower section;
a first resistive component, coupled to said first and third diodes, operable for passing at least a part of said first current
flowing through said first diode to provide negative feedback to said first current, and operable for passing at least a part
of a third current flowing through said third diode to provide a negative feedback to said third current;

a second resistive component, coupled to said second and fourth diodes, operable for passing at least a part of said second
current flowing through said second diode to provide a negative feedback to said second current, and operable for passing
at least a part of a fourth current flowing through said fourth diode to provide a negative feedback to said fourth current;
and

balance circuitry, coupled to said first terminal and said third terminal, operable for passing a signal between said first
and third terminals to reduce voltage imbalance between said first and second diodes, thereby balancing said first and second
parts of said output power, wherein said first and third terminals have the same polarity,

wherein said balance circuitry comprises a first capacitive component having a first end coupled to said first terminal and
having a second end coupled to said third terminal, and comprises a second capacitive component having a first end coupled
to said second terminal and a second end coupled to said fourth terminal.

US Pat. No. 10,534,037

DEVICES WITH BATTERY REMAINING CAPACITY ESTIMATING FUNCTIONS

O2Micro Inc., Santa Clar...

1. A method for estimating a remaining capacity of a battery, said method comprising:charging said battery via a host device;
measuring, with said host device, a battery voltage of said battery during said charging;
determining, using said host device, whether said battery is defined as being close to being fully charged based on said battery voltage and a condition that defines when said battery is close to being fully charged; and
when said battery is defined as being close to being fully charged, then performing a plurality of operations using said host device, wherein said operations comprise:
counting charges passing in said battery to estimate a calculated remaining capacity of said battery by monitoring a charging current of said battery;
calculating a calculated capacity ratio of said calculated remaining capacity to a capacity reference of said battery;
comparing said charging current with a current reference to generate a first comparison result;
comparing said calculated capacity ratio with a ratio reference to generate a second comparison result;
setting an amount according to said first and second comparison results;
providing a calibrated remaining capacity by increasing said calculated remaining capacity by said amount if said charging current is less than said current reference and if said calculated capacity ratio is less than said ratio reference;
calculating a calibrated capacity ratio in percentage form of said calibrated remaining capacity to said capacity reference; and
controlling a screen to display said calibrated capacity ratio in percentage form to a user.

US Pat. No. 10,660,176

SYSTEM AND METHOD FOR DRIVING LIGHT SOURCE COMPRISING VOLTAGE FEEDBACK CIRCUIT AND CURRENT FEEDBACK CIRCUIT

O2Micro Inc., Santa Clar...

1. A light-source driving system, comprising:a power converter operable for converting an input power to an output voltage to power a light source, and
a control circuitry, coupled to said power converter, operable for sensing said output voltage and current of said light source, generating a control signal based on a voltage feedback signal indicative of a combination of said output voltage and said current of said light source, and controlling said power converter by said control signal to adjust said output voltage, wherein said control circuitry comprises:
a voltage feedback circuit coupled to said power converter; and
a current feedback circuit coupled to said light source,
wherein said voltage feedback circuit is operable for generating said voltage feedback signal based on said output voltage,
wherein said current feedback circuit is operable for generating an adjusting current indicative of a difference between said current of said light source and a target current level,
wherein said current feedback circuit is further operable for adjusting said voltage feedback signal by said adjusting current,
wherein said current feedback circuit generates said adjusting current to increase said voltage feedback signal if said current of said light source is greater than said target current level, wherein said current feedback circuit generates said adjusting current to decrease said voltage feedback signal if said current of said light source is less than said target current level.

US Pat. No. 9,742,131

POWER TRANSFER SYSTEMS

O2Micro, Inc., Santa Cla...

1. A system comprising:
a first main switch operable for transferring power from a first connector to an output terminal if a first power source is
available at said first connector;

a first path operable for delivering a first current from said first connector to said output terminal and controlling said
first current to be within a first predefined range if said first power source is available at said first connector;

a second main switch operable for transferring power from a second connector to said output terminal if a second power source
is available at said second connector;

a second path operable for delivering a second current from said second connector to said output terminal and controlling
said second current to be within a second predefined range if said second power source is available at said second connector;
and

control circuitry, coupled to said first and second main switches and said first and second paths, operable for turning off
said second main switch and said second path and turning on said first path if said control circuitry detects that said first
power source is available at said first connector when said second power source is providing power to said output terminal
through said second connector, and operable for turning on said first main switch when a first predetermined time interval
from said turning on said first path has elapsed,

wherein said second path comprises a first switch element having a diode, wherein when said first switch element is turned
off, said diode delivers said second current to said output terminal to increase an output voltage at said output terminal,
wherein said control circuitry starts counting time when said output voltage increases to a voltage threshold, wherein said
control circuitry determines whether said second power source is available, wherein if said second power source is available,
then said control circuitry turns on said first switch element when a first preset time interval has elapsed from the start
of said counting time, and wherein said control circuitry turns on said second main switch when a second predetermined time
interval has elapsed from turning on said first switch element.

US Pat. No. 10,541,542

SYSTEM AND METHOD FOR CHARGING A BATTERY PACK

O2MICRO INC., Santa Clar...

1. A battery pack operable for receiving a charging current from a charger via a power line, said battery pack comprising:a battery management unit, coupled to a plurality of battery cells, operable for acquiring data associated with said battery pack; and
a transmitting unit, coupled to said battery management unit, operable for transmitting said data to said charger via said power line by varying an amplitude of said charging current, wherein said transmitting unit, comprises:
a switch coupled to said power line, wherein said switch is controlled by a control signal to vary said amplitude of said charging current, wherein said control signal is generated based on said data.

US Pat. No. 10,574,068

CHARGE/DISCHARGE SWITCH CONTROL CIRCUITS FOR BATTERIES

O2Micro Inc., Santa Clar...

1. A control circuit comprising:a plurality of driving terminals that provide driving signals to control a state of a switch circuit to enable charging or discharging of a battery pack,
wherein said switch circuit comprises a charge switch and a plurality of terminals coupled to said charge switch,
wherein said plurality of terminals comprise a charge input terminal and a charge output terminal, and
wherein said driving signals comprise a signal that selectively turns on said charge switch in said switch circuit to deliver a charging current of said battery pack from said charge input terminal to said charge output terminal; and
detection circuitry, coupled to said driving terminals, that receives voltages at said plurality of terminals of said switch circuit, and detects a status of an interface of said battery pack according to said status of said switch circuit and a difference between said voltages, said interface operable for receiving power to charge said battery pack in a charge mode, and providing power from said battery pack to a load in a discharge mode,
wherein said detection circuitry comprises:
a comparator, wherein when said charge switch is off, said comparator receives a first voltage at said charge input terminal and a second voltage at said charge output terminal, and compares a difference between said first and second voltages with a voltage reference; and
a logic circuit, coupled to said comparator, that detects whether a charger is connected to said interface according to a result of the comparison.

US Pat. No. 10,893,591

CONTROLLERS, SYSTEMS, AND METHODS FOR DRIVING A LIGHT SOURCE

O2Micro, Inc., Santa Cla...

1. A controller, operable for controlling a first output voltage that supplies electric power to a light source and also for controlling a second output voltage that supplies electric power to components except for said light source, wherein said first output voltage and said second output voltage are generated by a power converter, said controller comprising:a voltage detection terminal, operable for sensing said second output voltage;
a current detection terminal coupled to said light source, operable for sensing a current of said light source, wherein said second output voltage is sensed prior to said current of said light source; and
a voltage sensing terminal, coupled to said power converter through a voltage sensing circuit, operable for receiving a voltage sensing signal indicative of said first output voltage, wherein said voltage sensing signal is generated by said voltage sensing circuit; wherein said controller adjusts said voltage sensing signal based on said second output voltage, to generate an adjusted voltage sensing signal, and generates a first control current based on said adjusted voltage sensing signal, to enable said power converter to control said second output voltage in a preset voltage range based on said first control current;
wherein when said second output voltage is in said preset voltage range, said controller adjusts said adjusted voltage sensing signal based on a difference between said current of said light source and a target current value, to generate a twice-adjusted voltage sensing signal, and generates a second control current based on said twice-adjusted voltage sensing signal, to enable said power converter to control said current of said light source to maintain said target current value based on said second control current.

US Pat. No. 10,714,947

SYSTEMS AND METHODS FOR CONTROLLING BATTERY CURRENT

O2MICRO INC., Santa Clar...

1. A battery system comprising:a plurality of input terminals coupled to a same terminal, and connectable to a plurality of battery packs; and
a first battery pack of said battery packs coupled to a first input terminal of said input terminals, wherein said first battery pack comprises:
a control switch, coupled between a battery and said first input terminal, that passes a battery current of said battery;
current regulation circuitry, coupled to said control switch, that regulates said battery current by controlling said control switch according to a reference signal; and
a control circuit, coupled to said current regulation circuitry, that adjusts said reference signal based on a difference between a battery voltage of said battery and an input voltage at said first input terminal.

US Pat. No. 10,757,770

LIGHT SOURCE DRIVING CIRCUITS AND LIGHT SOURCE MODULE

O2Micro Inc, Santa Clara...

1. A light source driving circuit comprising:a rectifier operable for rectifying a voltage from a power source and providing a rectified voltage;
a power converter, coupled to said rectifier, operable for receiving said rectified voltage and providing an output current; and
a light source module, coupled to said power converter and powered by said output current, comprising:
a first light source having a first color;
a second light source having a second color; and
a current allocation unit, coupled to said first light source and said second light source, operable for adjusting a current through said first light source and a current through said second light source based on said output current,
wherein said current allocation unit comprises:
a sensing unit, coupled to said first light source and said second light source, operable for providing a sensing signal indicating said output current;
a control unit coupled to said sensing unit; and
a current regulation unit coupled to said first light source,
wherein said control unit is operable for controlling said current regulation unit based on said sensing signal to regulate said current through said first light source,
wherein said control unit comprises an operational amplifier, wherein said current regulation unit comprises a second switch coupled in series with said first light source,
wherein a first input terminal of said operational amplifier receives a reference signal, a second input terminal of said operational amplifier is coupled to said sensing unit through a second resistor to receive said sensing signal, and an output terminal of said operational amplifier is coupled to said second switch,
wherein said operational amplifier is operable for adjusting said current through said first light source by controlling said second switch.

US Pat. No. 10,886,753

SYSTEMS AND METHODS FOR MANAGING A BATTERY PACK

O2Micro Inc., Santa Clar...

1. A battery controller, comprising:a first driving pin, coupled to a charge switch, operable for turning on said charge switch to enable a battery pack to be charged by a power source;
a second driving pin, coupled to a first discharge switch, operable for turning on said first discharge switch to enable said battery pack to power a first load;
a third driving pin, coupled to a second discharge switch, operable for turning on said second discharge switch to enable said battery pack to power a second load; and
a communication port, coupled to a slave controller, operable for receiving a first signal indicating an amount of a first current consumed by said slave controller and operable for transmitting a balancing command to said slave controller to adjust said first current.