ATMEGA103L-4AI Atmel, ATMEGA103L-4AI Datasheet - Page 2

IC MCU 128K 4MHZ A/D LV 64TQFP

ATMEGA103L-4AI

Manufacturer Part Number
ATMEGA103L-4AI
Description
IC MCU 128K 4MHZ A/D LV 64TQFP
Manufacturer
Atmel
Series
AVR® ATmegar

Specifications of ATMEGA103L-4AI

Core Processor
AVR
Core Size
8-Bit
Speed
4MHz
Connectivity
SPI, UART/USART
Peripherals
POR, PWM, WDT
Number Of I /o
32
Program Memory Size
128KB (64K x 16)
Program Memory Type
FLASH
Eeprom Size
4K x 8
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 3.6 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-TQFP, 64-VQFP
For Use With
ATSTK501 - ADAPTER KIT FOR 64PIN AVR MCU
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
8. SPI Interrupt Flag can be Undefined after Reset
7. Serial Programming at Voltages below 3.4V
6. Skip Instruction with Interrupts
Notes:
2
In certain cases when there are transitions on the SCK
pin during reset, or the SCK pin is left unconnected, the
start-up value of the SPI interrupt flag is unknown. If
the flag is not reset before enabling the SPI interrupt, a
pending SPI interrupt may be executed.
Problem Fix/Workaround
Clear the SPI interrupt flag before enabling the
interrupt.
At voltages below 3.4V, serial programming might fail.
Problem Fix/Workaround
Keep V
A skip instruction (SBRS, SBRC, SBIS, SBIC, CPSE)
that skips a two-word instruction needs three clock
cycles. If an interrupt occurs during the first or second
clock cycle of this skip instruction, the return address
will not be stored correctly on the stack. In this situa-
tion, the address of the second word in the two-word
instruction is stored. This means that on return from
interrupt, the second word of the two-word command
will be decoded and executed as an instruction. The
ATmega103L has four two-word instructions: LDS,
STS, JMP and CALL.
Problem Fix/Workaround
For C-programs, use the IAR compiler version 1.40b or
later. The compiler will never generate the sequence.
For assembly program, avoid skipping a two-word
instruction if interrupts are enabled.
1. This can only occur if all of the following conditions
2. This will only cause problems if the address of the
are true:
- A skip instruction is followed by a two-word
instruction.
- The skip instruction is actually skipping the
two-word instruction.
- Interrupts are enabled, and at least one interrupt
source can generate an interrupt.
- An interrupt arrives in the first or second cycle of the
skip instruction.
following LDS or STS command points to an address
beyond 400 Hex.
CC
above 3.4V during In-System Programming.
ATmega103L
5. Signature Bytes
4. Read Back Value during EEPROM Polling
Table 1. Address Location
Note:
3. MISO Active during In-System Programming
Revision
F
G
The signature bytes of the first few lots of the
ATmega103L have been shipped with wrong signature
bytes. Also in the datasheet, the wrong signature bytes
has been given. The correct signature bytes are: $1E
$97 $01.
Problem Fix/Workaround
Programmers must allow both $1E $97 $01 and $1E
$01 $01 as valid signature bytes.
When a new EEPROM byte is being programmed into
the EEPROM with In-System Programming, reading
the address location being programmed will give the
value P1 (see table 1) until the Auto-erase is finished.
Then the value P2 will follow until programming is fin-
ished. At the time the device is ready for a new
EEPROM byte, the programmed value will read
correctly.
Problem Fix/Workaround
Programmers must allow both $80 and $7F as read
back values if data polling is used for the EEPROM.
Polling will not work for either of the values P1 and P2,
so when programming these values, the user will have
to wait the prescribed time t
ming the next byte.
During In-System Programming, the MISO line (pin 13)
of the ATmega103L is active, although the UART pins
are used for programming. If pin 13 is used as an input
in the application, a collision may occur on this line.
Problem Fix/Workaround
- If the MISO pin is used as an input, make sure that
there is a current-limiting resistor in series with the line.
- If the pin is used as an output, make sure that what-
ever is connected to the line can accept that the pin is
toggling during programming.
This is only a problem for In-System Programmers.
Reading and writing the EEPROM during normal opera-
tion is not affected by this.
P1
$7F
$80
WD_EEPROM
before program-
P2
$7F
$7F

Related parts for ATMEGA103L-4AI