Feedback, An2309 – Cypress CY8C29x66 User Manual

Page 13

Advertising
background image

AN2309

November 25, 2007

Document No. 001-17394 Rev. *B

- 13 -

Figure 9. Two-Cell Battery Charger Firmware Flowchart Part 1

Start

Init Device

Measure V

b1

, V

b2

,

I

ch

, T

b

Calc V

bmin

, V

bmax

State

Activation

Set I

reg

=I

ACT

;

Regulate

State

Initialization

Yes

Set Activation

State

Charge On

Start t

ACT

, t

CH

, Timing

Open LOAD Out

Yes

No

Check For

Timeouts

Set Error State

And Error Code

Check Rapid

Start Condition

V

bmin

>=V

RS

Set Rapid State

Start t

RAP

Time

Counter

Yes

Yes

No

State

Rapid

No

Set I

reg

=I

RAP

;

V

reg

=V

RAP

;

Regulate

Yes

Check For

Timeouts

Set Error State

And Error Code

Yes

No

Check Charge

Terminate

Condition

Set Charge

Complete State

Yes

No

Set Initialization

State

No

No

Send Debug Data

Check Cell

Balancing

Interval

Cell Balancing

Yes

No

Check Cell

Balancing

Interval

Cell Balancing

Yes

No

1

2

Check For

Negative Ich

Yes

No

State is not

Error or

Wait For

Temperature

Yes

No

Check For

Discharge Stop

Temperature

Set Wait For

Temperature State

Yes

No

Check Full

Discharge

Condition

Set Full Discharge

State

Yes

No

Set Full Discharge

State

Check for

charge stop

temperature

Yes

No

Set Wait For

Temperature state

Check For

Current Error

I

ch

>=I

MAX

Set Error State

And Error Code

Yes

No

Check For

Voltage Error

V

bmax

>=V

MAX

Set Error State

And Error Code

Yes

No

[+] Feedback

Advertising
This manual is related to the following products: