Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
AVR / datasheets / atmega_48_88_168.pdf
Скачиваний:
78
Добавлен:
20.03.2015
Размер:
4.86 Mб
Скачать

28.5System and Reset Characteristics

Table 28-3.

 

Reset, Brown-out and Internal voltage Characteristics

 

 

 

 

 

 

 

 

 

 

Symbol

 

Parameter

 

Condition

 

Min

 

Typ

 

Max

 

Units

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VPOT

 

Power-on Reset Threshold Voltage (rising)

 

 

 

 

0.7

 

1.0

 

1.4

 

V

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Power-on Reset Threshold Voltage (falling)(1)

 

 

 

0.05

 

0.9

 

1.3

 

V

 

 

 

 

 

 

 

 

VPSR

 

Power-on Slope Rate

 

 

 

 

0.01

 

 

 

4.5

 

V/ms

VRST

 

 

Pin Threshold Voltage

 

 

 

 

0.2 VCC

 

 

 

0.9 VCC

 

V

 

RESET

 

 

 

 

 

tRST

 

Minimum pulse width on

 

Pin

 

 

 

 

 

 

 

 

 

2.5

 

µs

 

RESET

 

 

 

 

 

 

 

 

 

VHYST

 

Brown-out Detector Hysteresis

 

 

 

 

 

 

 

50

 

 

 

 

mV

tBOD

 

Min Pulse Width on Brown-out Reset

 

 

 

 

 

 

 

2

 

 

 

 

µs

VBG

 

Bandgap reference voltage

 

VCC=2.7

 

1.0

 

1.1

 

1.2

 

V

 

 

TA=25°C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tBG

 

Bandgap reference start-up time

 

VCC=2.7

 

 

 

 

40

 

70

 

µs

 

 

TA=25°C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IBG

 

Bandgap reference current consumption

 

VCC=2.7

 

 

 

 

10

 

 

 

 

µA

 

 

TA=25°C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note: 1. The Power-on Reset will not work unless the supply voltage has been below VPOT (falling)

 

 

 

 

 

 

Table 28-4.

 

BODLEVEL Fuse Coding(1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BODLEVEL 2:0 Fuses

 

Min VBOT

 

Typ VBOT

 

 

Max VBOT

 

 

Units

 

111

 

 

 

 

 

 

BOD Disabled

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

110

 

 

 

1.7

 

 

1.8

 

 

 

2.0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

101

 

 

 

2.5

 

 

2.7

 

 

 

2.9

 

 

 

 

V

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

100

 

 

 

4.1

 

 

4.3

 

 

 

4.5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

011

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

010

 

 

 

 

 

 

 

Reserved

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

001

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Notes: 1. VBOT may be below nominal minimum operating voltage for some devices. For devices where this is the case, the device is tested down to VCC = VBOT during the production test. This guarantees that a Brown-Out Reset will occur before VCC drops to a voltage where correct operation of the microcontroller is no longer guaranteed. The test is performed using

BODLEVEL = 110 and BODLEVEL = 101 for ATmega48V/88V/168V, and BODLEVEL = 101 and BODLEVEL = 100 for ATmega48/88/168.

308 ATmega48/88/168

2545M–AVR–09/07

ATmega48/88/168

28.62-wire Serial Interface Characteristics

Table 28-5 describes the requirements for devices connected to the 2-wire Serial Bus. The ATmega48/88/168 2-wire Serial Interface meets or exceeds these requirements under the noted conditions.

Timing symbols refer to Figure 28-4.

 

 

 

 

 

 

 

 

 

 

Table 28-5.

2-wire Serial Bus Requirements

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Symbol

 

Parameter

 

 

 

Condition

Min

 

Max

Units

 

 

 

 

 

 

 

 

 

 

 

 

 

VIL

 

Input Low-voltage

 

 

 

 

 

 

-0.5

 

0.3 VCC

V

VIH

 

Input High-voltage

 

 

 

 

 

 

0.7 VCC

VCC + 0.5

V

 

(1)

 

Hysteresis of Schmitt Trigger Inputs

 

 

 

 

 

0.05 V

(2)

V

Vhys

 

 

 

 

 

 

 

 

CC

 

 

 

(1)

 

Output Low-voltage

 

 

3 mA sink current

0

 

0.4

V

VOL

 

 

 

 

tr(1)

 

Rise Time for both SDA and SCL

 

 

 

 

 

20 + 0.1Cb(3)(2)

300

ns

 

(1)

 

Output Fall Time from V

to V

 

10 pF < C < 400 pF(3)

20 + 0.1C

(3)(2)

250

ns

tof

 

IHmin

ILmax

 

 

b

 

 

 

b

 

 

tSP(1)

 

Spikes Suppressed by Input Filter

 

 

 

 

 

0

 

50(2)

ns

Ii

 

Input Current each I/O Pin

 

 

0.1VCC < Vi < 0.9VCC

-10

 

10

µA

C (1)

 

Capacitance for each I/O Pin

 

 

 

 

 

 

10

pF

 

i

 

 

 

 

 

 

 

 

 

 

 

 

f

SCL

 

SCL Clock Frequency

 

f

(4) > max(16f

SCL

, 250kHz)(5)

0

 

400

kHz

 

 

 

 

CK

 

 

 

 

 

 

 

 

 

 

 

 

 

 

fSCL ≤ 100 kHz

VCC – 0,4V

1000ns

Ω

 

 

 

 

 

 

 

 

 

 

---------------------------

----------------

Rp

 

Value of Pull-up resistor

 

 

 

 

 

 

3mA

 

Cb

 

 

 

 

 

fSCL > 100 kHz

VCC – 0,4V

300ns

Ω

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

---------------------------

-------------

 

 

 

 

 

 

 

 

 

 

3mA

 

Cb

 

tHD;STA

 

Hold Time (repeated) START Condition

 

 

fSCL ≤ 100 kHz

4.0

 

µs

 

 

 

fSCL > 100 kHz

0.6

 

µs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tLOW

 

Low Period of the SCL Clock

 

fSCL ≤ 100 kHz(6)

4.7

 

µs

 

 

f

> 100 kHz(7)

1.3

 

µs

 

 

 

 

 

 

 

SCL

 

 

 

 

 

 

tHIGH

 

High period of the SCL clock

 

 

 

fSCL ≤ 100 kHz

4.0

 

µs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

fSCL > 100 kHz

0.6

 

µs

 

 

 

 

 

 

 

 

tSU;STA

 

Set-up time for a repeated START condition

 

 

fSCL ≤ 100 kHz

4.7

 

µs

 

 

 

fSCL > 100 kHz

0.6

 

µs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tHD;DAT

 

Data hold time

 

 

 

fSCL ≤ 100 kHz

0

 

3.45

µs

 

 

 

 

fSCL > 100 kHz

0

 

0.9

µs

 

 

 

 

 

 

 

 

tSU;DAT

 

Data setup time

 

 

 

fSCL ≤ 100 kHz

250

 

ns

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

fSCL > 100 kHz

100

 

ns

 

 

 

 

 

 

 

 

tSU;STO

 

Setup time for STOP condition

 

 

fSCL ≤ 100 kHz

4.0

 

µs

 

 

 

fSCL > 100 kHz

0.6

 

µs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tBUF

 

Bus free time between a STOP and START

 

 

fSCL ≤ 100 kHz

4.7

 

µs

 

condition

 

 

 

fSCL > 100 kHz

1.3

 

µs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Notes: 1. In ATmega48/88/168, this parameter is characterized and not 100% tested. 2. Required only for fSCL > 100 kHz.

309

2545M–AVR–09/07

3.Cb = capacitance of one bus line in pF.

4.fCK = CPU clock frequency

5.This requirement applies to all ATmega48/88/168 2-wire Serial Interface operation. Other devices connected to the 2-wire Serial Bus need only obey the general fSCL requirement.

6.The actual low period generated by the ATmega48/88/168 2-wire Serial Interface is (1/fSCL - 2/fCK), thus fCK must be greater than 6 MHz for the low time requirement to be strictly met at fSCL = 100 kHz.

7.The actual low period generated by the ATmega48/88/168 2-wire Serial Interface is (1/fSCL - 2/fCK), thus the low time requirement will not be strictly met for fSCL > 308 kHz when fCK = 8 MHz. Still, ATmega48/88/168 devices connected to the bus may communicate at full speed (400 kHz) with other ATmega48/88/168 devices, as well as any other device with a proper tLOW acceptance margin.

Figure 28-4. 2-wire Serial Bus Timing

 

 

 

 

 

 

 

 

 

 

 

 

tof

 

 

tHIGH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCL

 

 

 

 

 

 

 

 

 

 

 

tLOW

 

 

 

 

tLOW

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tSU;STA

 

 

 

 

 

 

 

 

 

tHD;STA

 

tHD;DAT

 

 

 

 

 

 

t

 

 

 

 

 

 

 

SDA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SU;DAT

 

 

 

 

tSU;STO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tBUF

28.7SPI Timing Characteristics

See Figure 28-5 and Figure 28-6 for details.

Table 28-6. SPI Timing Parameters

 

 

 

Description

Mode

Min

 

Typ

Max

 

 

 

 

 

 

 

 

 

 

 

1

 

 

SCK period

Master

 

 

See Table 18-5

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

SCK high/low

Master

 

 

50% duty cycle

 

 

 

 

 

 

 

 

 

 

 

 

3

 

 

Rise/Fall time

Master

 

 

3.6

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

Setup

Master

 

 

10

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

Hold

Master

 

 

10

 

 

 

 

 

 

 

 

 

 

 

 

6

 

 

Out to SCK

Master

 

 

0.5 • tsck

 

 

7

 

 

SCK to out

Master

 

 

10

 

 

 

 

 

 

 

 

 

 

 

 

8

 

 

SCK to out high

Master

 

 

10

 

 

 

 

 

 

 

 

 

 

 

 

 

9

 

 

 

low to out

Slave

 

 

15

 

 

 

SS

 

 

 

ns

10

 

SCK period

Slave

4 • tck

 

 

 

 

 

 

11

 

 

SCK high/low(1)

Slave

2 • t

ck

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

 

 

Rise/Fall time

Slave

 

 

 

1600

 

 

 

 

 

 

 

 

 

 

13

 

Setup

Slave

10

 

 

 

 

 

 

 

 

 

 

 

 

 

14

 

Hold

Slave

tck

 

 

 

 

15

 

 

SCK to out

Slave

 

 

15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16

 

 

SCK to

 

high

Slave

20

 

 

 

 

 

SS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

17

 

 

 

high to tri-state

Slave

 

 

10

 

 

SS

 

 

 

 

18

 

 

 

low to SCK

Slave

20

 

 

 

 

SS

 

 

 

 

Note:

 

1. In SPI Programming mode the minimum SCK high/low period is:

 

 

-2 tCLCL for fCK < 12 MHz

-3 tCLCL for fCK > 12 MHz

310 ATmega48/88/168

2545M–AVR–09/07

ATmega48/88/168

Figure 28-5. SPI Interface Timing Requirements (Master Mode)

SS

6

 

1

SCK

 

 

 

(CPOL = 0)

 

 

 

 

 

2

2

SCK

 

 

 

(CPOL = 1)

 

 

 

4

5

 

3

MISO

MSB

...

LSB

(Data Input)

 

 

 

 

 

7

8

MOSI

MSB

...

LSB

(Data Output)

 

 

 

Figure 28-6. SPI Interface Timing Requirements (Slave Mode)

SS

SCK (CPOL = 0)

SCK (CPOL = 1)

MOSI

(Data Input)

MISO

(Data Output)

9

13

10

16

 

 

 

 

11 11

14

 

 

12

MSB

...

LSB

 

 

15

 

17

MSB

...

LSB

X

311

2545M–AVR–09/07

Соседние файлы в папке datasheets