Atmel ATA6870 Скачать руководство пользователя страница 9

9

ATA6870-DK10 [APPLICATION NOTE]

9228C–AUTO–02/15

5.

Features of the Atmel ATmega32HVB

Since the Atmel

®

 ATmega32HVB is a part of the Atmel AVR

®

 family which is dedicated to battery management there are 

several special features such as coulomb counting and the control of the two charge/discharge MOSFETs.

5.1

Coulomb Counter

The coulomb counter ADC runs on a different clock than the CPU. This clock is slower and therefore several things have to 
be kept in mind before using it. Writing several registers in sequence takes a long time depending on the delays between 
each write cycle. A possible solution is given in the supplied software example:

The Update Busy (CADUB) bit in CADSRA is cleared and written by hardware.

5.2

Charging/Discharging FETs

The two FETs are controlled by an N-channel FET driver. The pins (OC and OD) are designed for outputting a high voltage 
of approx. 13V. The status of the pins is controlled by software via the FCSR - FET control and status register.

The example above implements an easy method to enable or disable the two FETs independently of each other. For more 
information, see the Atmel ATmega32HVB datasheet page 148ff.

C Code Example

void CCinit(){

CADRCC = RCC_CADRCC;

while(CADCSRA & (1 << CADUB));

CADRDC = RDC_CADRDC;

while(CADCSRA & (1 << CADUB));

SETBIT(CADCSRB,1<<CADRCIE);

while(CADCSRA & (1 << CADUB));

SETBIT(CADCSRC,RCC_DIVIDEDSZ<<CADVSE);

while(CADCSRA & (1 << CADUB));

// Charge Threshold

// Discharge Threshold

// Interrupt Enable

// Voltage Scaling

SETBIT(CADCSRA,((1<<CADEN)|(1<<CADSE)|(RCC_CONVERSIONPERIOD<<1))); 

while(CADCSRA & (1 << CADUB));

}

// ADC Enable, RCC Mode, Sampling 

// Interval

C Code Example

void Configure_Fet(unsigned char Fet){

if(Fet&0x01)

SETBIT(FCSR, (1<<DFE));

else

CLEARBIT(FCSR,(1<<DFE));

if(Fet&0x02)

SETBIT(FCSR,(1<<CFE));

else

CLEARBIT(FCSR,(1<<CFE));

}

Содержание ATA6870

Страница 1: ...Overcurrent Open clamp detection 12 bit battery cell measurement 12 bit temperature measurement Controlling of charge discharge FETs Status LEDs for easy evaluation Charge balancing Coulomb counting...

Страница 2: ...tteries and it is best to use the devices in a slightly different way in a smart battery application 2 Safety Precautions When Using Li ion Batteries Please observe the safety guidelines supplied with...

Страница 3: ...on page 5 3 1 2 Number of Cells It is possible to run the board with a reduced number of cells The minimum voltage for each IC is 6 9V Cell 1 and cell 6 MBAT have to be connected The missing cells sho...

Страница 4: ...the Atmel ATmega32HVB is being programmed or while it is entering debug mode It can be mounted as soon as AVR Studio prompts for additional SPI lines to be connected in debug mode or after the device...

Страница 5: ...y the Atmel ATmega32HVB with sufficient voltage If the jumper is mounted the stack voltage should not exceed 48V The Atmel ATmega32HVB supports operating voltage from 4V to 24V 3 3 2 Emulating Cells B...

Страница 6: ...ell exceeds the upper default threshold of 4 2V Undervoltage at least 1 cell exceeds the lower default threshold of 2 5V Overcurrent the current through the shunt exceeds the default threshold of 80mA...

Страница 7: ...hold for charging current exceeding the threshold will turn off the Mosfets RCC_DISCHARGETHRESHOLD Threshold for discharging current exceeding the threshold will turn off the Mosfets Other values shou...

Страница 8: ...o update the SOC frequently The acquired cell voltages and temperatures can be used to determine the SOC without the Atmel ATmega32HVB The easiest way is to compare the SOC measured by the added extra...

Страница 9: ...FETs are controlled by an N channel FET driver The pins OC and OD are designed for outputting a high voltage of approx 13V The status of the pins is controlled by software via the FCSR FET control and...

Страница 10: ...ented in the datasheet of the Atmel ATA6870 Section 7 1 1 and in the Atmel ATmega32HVB datasheet Section 10 This board allows the Atmel ATA6870 to be enabled disabled using the Atmel ATmega32HVB softw...

Страница 11: ...USE VDDFUSE DVSS DVDD GND GND DISCH6 MISO_IN PD_N VDDHVP 1 2 3 4 5 6 7 8 9 10 12 11 MBAT5 DISCH4 MBAT4 DISCH3 MBAT3 DISCH2 MBAT2 MBAT1 DISCH1 IC1 Atmel ATA6870 IRQ CLK LED1 J9 PB2 RESET CLK SCK MOSI M...

Страница 12: ...ATA6870 DK10 APPLICATION NOTE 9228C AUTO 02 15 12 Figure 7 2 PCB Top...

Страница 13: ...13 ATA6870 DK10 APPLICATION NOTE 9228C AUTO 02 15 Figure 7 3 PCB Bottom...

Страница 14: ...e note that the following page numbers referred to in this section refer to the specific revision mentioned not to this document Revision No History 9228C AUTO 02 15 Put document in the latest templat...

Страница 15: ...NT EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and rese...

Страница 16: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Atmel ATA6870 DK10...

Отзывы: