ATmega32A

Figure 27-3. External Clock Drive

 

 

 

VCC = 2.7V to 5.5V

VCC = 4.5V to 5.5V

 

Symbol

Parameter

Min

 

Max

Min

Max

Units

 

 

 

 

 

 

 

 

 

 

tCLCH

Rise Time

 

 

1.6

 

 

0.5

μs

tCHCL

Fall Time

 

 

1.6

 

 

0.5

μs

 

Change in period from

 

 

 

 

 

 

 

 

one clock cycle to the

 

 

2

 

 

2

%

tCLCL

next

 

 

 

 

 

 

 

Figure 27-4. External RC Oscillator, Typical Frequencies (VCC = 5V)

 

 

 

R [kΩ](1)

 

 

C [pF]

 

 

f(2)

 

 

33

 

 

22

 

 

650 kHz

 

 

 

 

 

 

 

 

 

 

 

10

 

 

22

 

 

2.0 MHz

 

 

 

 

 

 

 

 

 

 

 

Notes: 1. R should be in the range 3 kΩ - 100 kΩ, and C should be at least 20 pF. The C values given in the table includes pin capacitance. This will vary with package type.

2.The frequency will vary with package type and board layout.

27.5System and Reset Characteristics

Table 27-1.

Reset, Brown-out and Internal Voltage Reference Characteristics

 

Symbol

 

Parameter

Condition

Min

Typ

Max

Units

 

 

 

 

 

 

 

 

 

 

Power-on Reset Threshold

 

 

1.4

2.3

V

 

 

Voltage (rising)

 

 

VPOT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Power-on Reset Threshold

 

 

1.3

2.3

V

 

 

 

 

 

 

Voltage (falling)(1)

 

 

 

 

 

 

 

 

 

 

 

 

 

Pin Threshold

 

 

 

 

 

VRST

 

RESET

 

0.2 VCC

 

0.9VCC

V

 

Voltage

 

 

tRST

 

Minimum pulse width on

 

 

 

1.5

µs

 

RESET

Pin

 

 

 

VBOT

 

Brown-out Reset Threshold

BODLEVEL = 1

2.5

2.7

2.9

V

 

Voltage(2)

 

 

 

 

 

BODLEVEL = 0

3.6

4.0

4.2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tBOD

 

Minimum low voltage period

BODLEVEL = 1

 

2

 

µs

 

for Brown-out Detection

 

 

 

 

 

 

BODLEVEL = 0

 

2

 

µs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VHYST

 

Brown-out Detector

 

 

50

 

mV

 

hysteresis

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VBG

 

Bandgap reference voltage

 

1.15

1.23

1.35

V

tBG

 

Bandgap reference start-up

 

 

40

70

µs

 

time

 

 

IBG

 

Bandgap reference current

 

 

10

 

µA

 

consumption

 

 

 

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

2.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 guar-

299

8155B–AVR–07/09

antees 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 = 1 and BODLEVEL = 0 for ATmega32A.

27.6Two-wire Serial Interface Characteristics

Table 27-2 describes the requirements for devices connected to the Two-wire Serial Bus. The ATmega32A Two-wire Serial Interface meets or exceeds these requirements under the noted conditions.

Timing symbols refer to Figure 27-5.

Table 27-2.

Two-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

 

 

 

 

(2)

V

Vhys

 

 

 

 

0.05 VCC

V

(1)

 

Output Low-voltage

 

 

 

3 mA sink current

0

 

0.4

V

 

OL

 

 

 

 

 

 

 

 

 

 

t

(1)

 

Rise Time for both SDA and SCL

 

 

 

20 + 0.1C

(3)(2)

300

ns

 

r

 

 

 

 

 

 

 

 

b

 

 

t

of

(1)

 

Output Fall Time from V

to V

 

 

10 pF < C < 400 pF(3)

20 + 0.1C

(3)(2)

250

ns

 

 

 

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

CK

(4) > max(16f , 250kHz)(5)

0

 

400

kHz

 

 

 

 

 

SCL

 

 

 

 

 

 

 

 

 

 

 

 

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

 

 

f ≤ 100 kHz(6)

4.7

 

µs

 

 

 

SCL

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

fSCL > 100 kHz(7)

1.3

 

µs

tHIGH

 

High period of the SCL clock

 

 

 

fSCL ≤ 100 kHz

4.0

 

µs

 

 

 

 

fSCL > 100 kHz

0.6

 

µs

 

 

 

 

 

 

 

 

 

tSU;STA

 

 

 

 

 

fSCL ≤ 100 kHz

4.7

 

µs

 

 

 

 

 

 

 

 

 

 

 

Set-up time for a repeated START condition

 

 

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

 

 

 

 

 

 

 

 

 

300 ATmega32A

8155B–AVR–07/09

ATmega32A

Table 27-2. Two-wire Serial Bus Requirements

(Continued)

 

 

 

Symbol

Parameter

 

Condition

Min

Max

Units

 

 

 

 

 

 

 

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 ATmega32A, this parameter is characterized and not 100% tested.

 

 

 

2.Required only for fSCL > 100 kHz.

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

4.fCK = CPU clock frequency

5.This requirement applies to all ATmega32A Two-wire Serial Interface operation. Other devices connected to the Two-wire Serial Bus need only obey the general fSCL requirement.

6.The actual low period generated by the ATmega32A Two-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 ATmega32A Two-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, ATmega32A devices connected to the bus may communicate at full speed (400 kHz) with other ATmega32A devices, as well as any other device with a proper tLOW acceptance margin.

Figure 27-5. Two-wire Serial Bus Timing

 

 

 

 

 

 

 

 

 

 

 

 

tof

 

 

tHIGH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCL

 

 

 

 

 

 

 

 

 

 

 

tLOW

 

 

 

 

tLOW

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tSU;STA

 

 

 

 

 

 

 

 

 

tHD;STA

 

tHD;DAT

 

 

 

 

 

 

t

 

 

 

 

 

 

 

SDA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SU;DAT

 

 

 

 

tSU;STO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

tBUF

27.7SPI Timing Characteristics

See Figure 27-6 and Figure 27-7 for details.

 

 

 

 

Table 27-3.

 

SPI Timing Parameters

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

Mode

Min

Typ

Max

 

 

 

 

 

 

 

 

 

 

1

 

 

SCK period

Master

 

See Table 18-4

 

 

 

 

 

 

 

 

 

 

2

 

SCK high/low

Master

 

50% duty cycle

 

 

 

 

 

 

 

 

 

 

3

 

Rise/Fall time

Master

 

3.6

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

Setup

Master

 

10

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

Hold

Master

 

10

 

 

 

 

 

 

 

 

 

 

ns

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

 

 

 

10

 

 

SCK period

Slave

4 • tck

 

 

 

11

 

SCK high/low

Slave

2 • tck

 

 

 

12

 

Rise/Fall time

Slave

 

 

1.6

µs

 

 

 

 

 

 

 

 

 

 

301

8155B–AVR–07/09

Table 27-3.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SPI Timing Parameters

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

Mode

Min

Typ

Max

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13

 

 

 

 

Setup

Slave

10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

14

 

 

 

 

Hold

Slave

tck

 

 

 

 

15

 

 

 

SCK to out

Slave

 

15

 

ns

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16

 

SCK to

 

high

Slave

20

 

 

 

 

SS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

17

 

 

 

high to tri-state

Slave

 

10

 

 

 

SS

 

 

 

 

18

 

 

 

 

low to SCK

Salve

2 • tck

 

 

 

 

 

SS

 

 

 

 

Figure 27-6. SPI Interface Timing Requirements (Master Mode)

SS

SCK (CPOL = 0)

SCK (CPOL = 1)

MISO

(Data Input)

MOSI

(Data Output)

6

 

 

1

 

 

2

2

4

5

 

3

 

MSB

...

LSB

 

 

7

8

 

MSB

...

LSB

Figure 27-7. SPI Interface Timing Requirements (Slave Mode)

SS

SCK (CPOL = 0)

SCK (CPOL = 1)

MOSI

(Data Input)

MISO

(Data Output)

18

 

 

 

 

9

 

 

10

16

 

 

 

 

 

 

11

11

 

13

14

 

 

12

 

MSB

...

LSB

 

 

 

15

 

17

 

MSB

...

LSB

X

302 ATmega32A

8155B–AVR–07/09

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