ATEVK527 Atmel, ATEVK527 Datasheet - Page 25

no-image

ATEVK527

Manufacturer Part Number
ATEVK527
Description
KIT EVAL PWM AVR USB 4 SERIES
Manufacturer
Atmel
Series
AVR®r
Datasheet

Specifications of ATEVK527

Main Purpose
Power Management, Battery Charger
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
ATmega16U4, ATmega32U4
Primary Attributes
1 Cell- Li-Ion
Secondary Attributes
Graphical User Interface, USB Interface
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
4.7 Implementation
4.7.1 Configuration
7801A-AVR-06/08
Figure 5-8. Flow chart of ADC interrupt service routine
This section describes how to configure, create and download the software.
The most important compile-time constants are discussed in the table below. See file
battery.h for more program constants.
Set next MUX = 0b100100
3/ Save NTC reading
0b100011
Set next MUX = 0b000000
1/ Format and save IBAT
Update averaged IBAT
Update ADC flag
0b001001
Disable ADC interrupt
Return from interrupt
MUX channel?
Update MUX
ADC_ISR()
ELSE
Update supple voltage flag
Set next MUX = 0b100011
2/ Format and save VIN
0b000000
0b100100
Set next MUX = 0b001001
4/ Save RID reading
AVR146
End of ADC loop
Set Flag:
25

Related parts for ATEVK527