ATMEGA323-8PC Atmel, ATMEGA323-8PC Datasheet - Page 146

IC AVR MCU 32K 8MHZ COM 40DIP

ATMEGA323-8PC

Manufacturer Part Number
ATMEGA323-8PC
Description
IC AVR MCU 32K 8MHZ COM 40DIP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA323-8PC

Core Processor
AVR
Core Size
8-Bit
Speed
8MHz
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)
4.5 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
ATMEGA3238PC
Port C
The Port C Data Register –
PORTC
The Port C Data Direction
Register – DDRC
The Port C Input Pins Address
– PINC
Port C As General Digital I/O
146
ATmega323(L)
Port C is an 8-bit bi-directional I/O port with optional internal pull-ups.
Three I/O Memory address locations are allocated for the Port C, one each for the Data
Register – PORTC, $15($35), Data Direction Register – DDRC, $14($34) and the Port C
Input Pins – PINC, $13($33). The Port C Input Pins address is read only, while the Data
Register and the Data Direction Register are read/write.
All port pins have individually selectable pull-up resistors. The Port C output buffers can
sink 20mA and thus drive LED displays directly. When pins PC0 to PC7 are used as
inputs and are externally pulled low, they will source current if the internal pull-up resis-
tors are activated.
Table 51. Port C Pins Alternate Functions
The Port C Input Pins address
access to the physical value on each Port C pin. When reading PORTC, the Port C Data
Latch is read, and when reading PINC, the logical values present on the pins are read.
All 8 bits in Port C are equal when used as digital I/O pins.
PCn, General I/O pin: The DDCn bit in the DDRC Register selects the direction of this
pin, if DDCn is set (one), PCn is configured as an output pin. If DDCn is cleared (zero),
PCn is configured as an input pin. If PORTCn is set (one) when the pin configured as an
input pin, the MOS pull up resistor is activated. To switch the pull up resistor off,
Bit
$15 ($35)
Read/Write
Initial Value
Bit
$14 ($34)
Read/Write
Initial Value
Bit
$13 ($33)
Read/Write
Initial Value
Port Pin
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
PORTC7
PINC7
DDC7
R/W
R/W
N/A
7
0
0
R
7
7
Alternate Function
SCL (Two-wire Serial Bus Clock Line)
SDA (Two-wire Serial Bus Data Input/Output Line)
TCK (JTAG Test Clock)
TMS (JTAG Test Mode Select)
TDO (JTAG Test Data Out)
TDI (JTAG Test Data In)
TOSC1 (Timer Oscillator Pin 1)
TOSC2 (Timer Oscillator Pin 2)
PORTC6
PINC6
DDC6
R/W
R/W
N/A
6
0
R
6
0
6
PORTC5
PINC5
DDC5
R/W
R/W
N/A
5
0
R
5
0
5
PINC
PORTC4
PINC4
DDC4
R/W
R/W
N/A
R
4
0
4
0
4
is not a register, and this address enables
PORTC3
PINC3
DDC3
R/W
R/W
N/A
R
3
0
3
0
3
PORTC2
PINC2
DDC2
R/W
R/W
N/A
R
2
0
2
2
0
PORTC1
PINC1
DDC1
R/W
R/W
N/A
R
1
0
1
1
0
PORTC0
PINC0
DDC0
R/W
R/W
N/A
1457G–AVR–09/03
R
0
0
0
0
0
PORTC
DDRC
PINC

Related parts for ATMEGA323-8PC