ATMEGA162-16AUR Atmel, ATMEGA162-16AUR Datasheet - Page 161

MCU AVR 16KB FLASH 16MHZ 44TQFP

ATMEGA162-16AUR

Manufacturer Part Number
ATMEGA162-16AUR
Description
MCU AVR 16KB FLASH 16MHZ 44TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA162-16AUR

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
EBI/EMI, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
35
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
44-TQFP, 44-VQFP
For Use With
ATSTK600-TQFP44 - STK600 SOCKET/ADAPTER 44-TQFPATSTK500 - PROGRAMMER AVR STARTER KIT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA162-16AUR
Manufacturer:
Atmel
Quantity:
10 000
2513K–AVR–07/09
The following code examples show how to initialize the SPI as a slave and how to perform a sim-
ple reception.
Note:
Assembly Code Example
C Code Example
SPI_SlaveInit:
SPI_SlaveReceive:
void SPI_SlaveInit(void)
{
}
char SPI_SlaveReceive(void)
{
}
; Set MISO output, all o?hers input
ldi
out
; Enable SPI
ldi
out
ret
; Wait for reception com?lete
sbis SPSR,SPIF
rjmp SPI_SlaveReceive
; Read received data and?return
in
ret
/* Set MISO output, all ?thers input */
DDR_SPI = (1<<DD_MISO);
/* Enable SPI */
SPCR = (1<<SPE);
/* Wait for reception co?plete */
while(!(SPSR & (1<<?PIF)))
/* Return data register ?/
return SPDR;
1. The example code assumes that the part specific header file is included.
;
r17,(1<<DD_MISO)
DDR_SPI,r17
r17,(1<<SPE)
SPCR,r17
r16,SPDR
(1)
(1)
ATmega162/V
161

Related parts for ATMEGA162-16AUR