Register description for i/o ports, Port a data register – porta, Port a data direction register – ddra – Rainbow Electronics ATmega32L User Manual

Page 62: Port a input pins address – pina, Port b data register – portb, Port b data direction register – ddrb, Atmega32(l)

Advertising
background image

62

ATmega32(L)

2503C–AVR–10/02

Register Description for
I/O Ports

Port A Data Register – PORTA

Port A Data Direction Register
– DDRA

Port A Input Pins Address –
PINA

Port B Data Register – PORTB

Port B Data Direction Register
– DDRB

Table 33. Overriding Signals for Alternate Functions in PD3..PD0

Signal Name

PD3/INT1

PD2/INT0

PD1/TXD

PD0/RXD

PUOE

0

0

TXEN

RXEN

PUOV

0

0

0

PORTD0 • PUD

DDOE

0

0

TXEN

RXEN

DDOV

0

0

1

0

PVOE

0

0

TXEN

0

PVOV

0

0

TXD

0

DIEOE

INT1 ENABLE

INT0 ENABLE

0

0

DIEOV

1

1

0

0

DI

INT1 INPUT

INT0 INPUT

RXD

AIO

Bit

7

6

5

4

3

2

1

0

PORTA7

PORTA6

PORTA5

PORTA4

PORTA3

PORTA2

PORTA1

PORTA0

PORTA

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Initial Value

0

0

0

0

0

0

0

0

Bit

7

6

5

4

3

2

1

0

DDA7

DDA6

DDA5

DDA4

DDA3

DDA2

DDA1

DDA0

DDRA

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Initial Value

0

0

0

0

0

0

0

0

Bit

7

6

5

4

3

2

1

0

PINA7

PINA6

PINA5

PINA4

PINA3

PINA2

PINA1

PINA0

PINA

Read/Write

R

R

R

R

R

R

R

R

Initial Value

N/A

N/A

N/A

N/A

N/A

N/A

N/A

N/A

Bit

7

6

5

4

3

2

1

0

PORTB7

PORTB6

PORTB5

PORTB4

PORTB3

PORTB2

PORTB1

PORTB0

PORTB

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Initial Value

0

0

0

0

0

0

0

0

Bit

7

6

5

4

3

2

1

0

DDB7

DDB6

DDB5

DDB4

DDB3

DDB2

DDB1

DDB0

DDRB

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Initial Value

0

0

0

0

0

0

0

0

Advertising