ATEVK527 Atmel, ATEVK527 Datasheet - Page 13

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.3 Overview
4.4 State Machine
7801A-AVR-06/08
The firmware integrates all functions required to charge a lithium-ion battery.
Table 4-3. Memory requirements of firmware (IAR without optimization)
A state machine is implemented in battery task. This state machine is rather simple
and uses function pointers. It simply looks up the address of the next function to
execute and then jumps to that function. The flow chart of the state machine is
illustrated in the figure below.
Figure 4-2. Flow chart of main function, including the state machine
Upon return, the state machine expects the function to indicate the next state as a
return argument. The recognised return codes are described in the table below.
Table 4-4. State machine codes (see source code, menu.h)
File
statefunc.c
statefunc.h
Build option
Debug
Label
INIT
BATCON
Look up address for Current State
Jump to function of Current State
Look up address for Next State
Set Current State = Next State
ADC measurements update
Uart state machine
+
Related Function
Initialize()
BatteryControl()
Type
C source code
Header file
Memory
CODE (Flash)
DATA (SRAM)
XDATA (EEPROM)
Next State
Description
Entry state
Check hardware and batteries
Note
Functions related to the states defined
in menu file
State function
Approximate value
13900 bytes
1109 bytes
2 bytes
AVR146
13

Related parts for ATEVK527