ATMEGA48PA-PN Atmel, ATMEGA48PA-PN Datasheet - Page 168

no-image

ATMEGA48PA-PN

Manufacturer Part Number
ATMEGA48PA-PN
Description
MCU AVR 4KB FLASH 20MHZ 28PDIP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA48PA-PN

Core Processor
AVR
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
23
Program Memory Size
4KB (2K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 6x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
8161D–AVR–10/09
When the SPI is enabled, the data direction of the MOSI, MISO, SCK, and SS pins is overridden
according to
”Alternate Port Functions” on page
Table 18-1.
Note:
The following code examples show how to initialize the SPI as a Master and how to perform a
simple transmission. DDR_SPI in the examples must be replaced by the actual Data Direction
Register controlling the SPI pins. DD_MOSI, DD_MISO and DD_SCK must be replaced by the
actual data direction bits for these pins. E.g. if MOSI is placed on pin PB5, replace DD_MOSI
with DDB5 and DDR_SPI with DDRB.
MOSI
MISO
SCK
Pin
SS
See
direction of the user defined SPI pins.
”Alternate Functions of Port B” on page 82
Table 18-1 on page
SPI Pin Overrides
Direction, Master SPI
User Defined
Input
User Defined
User Defined
(Note:)
ATmega48PA/88PA/168PA/328P
168. For more details on automatic port overrides, refer to
80.
for a detailed description of how to define the
Direction, Slave SPI
Input
User Defined
Input
Input
168

Related parts for ATMEGA48PA-PN