beautypg.com

Atmega4hvd/8hvd – Rainbow Electronics ATmega8HVD User Manual

Page 112

background image

112

8052B–AVR–09/08

ATmega4HVD/8HVD

20.8.6

BPDOCD – Battery Protection Discharge-Over-current Detection Level Register

• Bits 7:0 – DOCDL7:0: Discharge Over-current Detection Level

These bits sets the R

SENSE

voltage level for detection of Discharge Over-current, as defined in

Table 20-4 on page 112

. This register should always be written as one-hot.

Note:

Due to synchronization of parameters between clock domains, a guard time of 3 ULP oscillator
cycles + 3 CPU clock cycles is required between each time the BPDOCD register is written. Any
writing to the BPDOCD register during this period will be ignored.

20.8.7

BPCOCD – Battery Protection Charge-Over-current Detection Level Register

• Bits 7:0 –COCDL7:0: Charge Over-current Detection Level

These bits sets the R

SENSE

voltage level for detection of Charge Over-current, as defined in

Table 20-4 on page 112

. This register should always be written as one-hot.

Note:

Due to synchronization of parameters between clock domains, a guard time of 3 ULP oscillator
cycles + 3 CPU clock cycles is required between each time the BPCOCD register is written. Any
writing to the BPCOCD register during this period will be ignored.

Bit

7

6

5

4

3

2

1

0

DOCDL[7:0]

BPDOCD

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Initial Value

0

0

0

0

0

0

0

1

Bit

7

6

5

4

3

2

1

0

COCDL[7:0]

BPCOCD

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Initial Value

0

0

0

0

0

0

0

1

Table 20-4.

DL[7:0] with corresponding R

SENSE

Current for all Current Detection Levels

(R

SENSE

= 10 m

Ω

, VREF = 1.100 ± 0.005V)

Current Protection Detection Level

DL[7:0]

Min.

Typ.

Max.

0x01

0.5A

2.0A

3.5A

0x02

1.0A

2.5A

4.0A

0x04

1.5A

3.0A

4.5A

0x08

2.0A

3.5A

5.0A

0x10

2.5A

4.0A

5.5A

0x20

3.0A

4.5A

6.0A

0x40

3.5A

5.0A

6.5A

0x80

4.5A

6.0A

7.5A

All other values

Reserved