beautypg.com

1 porta - port a data register, 2 ddra - port a data direction register, 3 pina - port a input pins address – Rainbow Electronics ATmega128RFA1 User Manual

Page 27: 4 portc - port c data register, Atmega128rfa1

background image

27


8266A-MCU Wireless-12/09

ATmega128RFA1

8.7.1 PORTA – Port A Data Register

Bit

7

6

5

4

3

2

1

0

$02 ($22)

PORTA7:0

PORTA

Read/Write

RW

RW

RW

RW

RW

RW

RW

RW

Initial Value

0

0

0

0

0

0

0

0

The PORTA register can be used as a General Purpose I/O Register for storing any
information.

Bit 7:0 – PORTA7:0 - Port A Data Register Value

8.7.2 DDRA – Port A Data Direction Register

Bit

7

6

5

4

3

2

1

0

$01 ($21)

DDA7

DDA6

DDA5

DDA4

DDA3

DDA2

DDA1

DDA0

DDRA

Read/Write

RW

RW

RW

RW

RW

RW

RW

RW

Initial Value

0

0

0

0

0

0

0

0

The DDRA register can be used as a General Purpose I/O Register for storing any
information.

Bit 7:0 – DDA7:0 - Port A Data Direction Register Value

8.7.3 PINA – Port A Input Pins Address

Bit

7

6

5

4

3

2

1

0

$00 ($20)

PINA7:0

PINA

Read/Write

RW

RW

RW

RW

RW

RW

RW

RW

Initial Value

0

0

0

0

0

0

0

0

The PINA register is reserved for interal use and cannot be used as a General Purpose
I/O Register.

Bit 7:0 – PINA7:0 - Port A Input Pins

8.7.4 PORTC – Port C Data Register

Bit

7

6

5

4

3

2

1

0

$08 ($28)

PORTC7:0

PORTC

Read/Write

RW

RW

RW

RW

RW

RW

RW

RW

Initial Value

0

0

0

0

0

0

0

0

The PORTC register can be used as a General Purpose I/O Register for storing any
information.

Bit 7:0 – PORTC7:0 - Port C Data Register Value