ATMEGA32A-MNR Atmel, ATMEGA32A-MNR Datasheet - Page 145

IC MCU AVR 32K 16MHZ 44VQFN

ATMEGA32A-MNR

Manufacturer Part Number
ATMEGA32A-MNR
Description
IC MCU AVR 32K 16MHZ 44VQFN
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA32A-MNR

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
32
Program Memory Size
32KB (16K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
44-VFQFN Exposed Pad
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATMEGA32A-MNR
Quantity:
4 000
18.3.4
18.3.5
18.4
8155C–AVR–02/11
Data Modes
SPSR – SPI Status Register
SPDR – SPI Data Register
• Bit 7 – SPIF: SPI Interrupt Flag
When a serial transfer is complete, the SPIF Flag is set. An interrupt is generated if SPIE in
SPCR is set and global interrupts are enabled. If SS is an input and is driven low when the SPI is
in Master mode, this will also set the SPIF Flag. SPIF is cleared by hardware when executing the
corresponding interrupt handling vector. Alternatively, the SPIF bit is cleared by first reading the
SPI Status Register with SPIF set, then accessing the SPI Data Register (SPDR).
• Bit 6 – WCOL: Write COLlision Flag
The WCOL bit is set if the SPI Data Register (SPDR) is written during a data transfer. The
WCOL bit (and the SPIF bit) are cleared by first reading the SPI Status Register with WCOL set,
and then accessing the SPI Data Register.
• Bit 5:1 – Reserved Bits
These bits are reserved bits in the ATmega32A and will always read as zero.
• Bit 0 – SPI2X: Double SPI Speed Bit
When this bit is written logic one the SPI speed (SCK Frequency) will be doubled when the SPI
is in Master mode (see
clock periods. When the SPI is configured as Slave, the SPI is only guaranteed to work at f
or lower.
The SPI interface on the ATmega32A is also used for program memory and EEPROM down-
loading or uploading. See
The SPI Data Register is a read/write register used for data transfer between the Register File
and the SPI Shift Register. Writing to the register initiates data transmission. Reading the regis-
ter causes the Shift Register Receive buffer to be read.
There are four combinations of SCK phase and polarity with respect to serial data, which are
determined by control bits CPHA and CPOL. The SPI data transfer formats are shown in
18-3
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
and
Figure
MSB
SPIF
R/W
18-4. Data bits are shifted out and latched in on opposite edges of the SCK sig-
X
R
7
7
0
Table
WCOL
R/W
page 279
6
X
R
6
0
18-4). This means that the minimum SCK period will be two CPU
R/W
X
5
R
5
0
for SPI Serial Programming and Verification.
R/W
4
X
R
4
0
R/W
X
3
R
3
0
R/W
X
2
R
2
0
R/W
1
X
R
1
0
ATmega32A
SPI2X
LSB
R/W
R/W
X
0
0
0
Undefined
SPDR
SPSR
Figure
osc
145
/4

Related parts for ATMEGA32A-MNR