4 register description, 1 mcucr - mcu control register, 2 porta - port a data register – Rainbow Electronics ATtiny861_V User Manual

Page 68: 3 ddra - port a data direction register, 4 pina - port a input pins address, 5 portb - port b data register, 6 ddrb - port b data direction register, 7 pinb - port b input pins address

Advertising
background image

68

2588B–AVR–11/06

ATtiny261/461/861

12.4

Register Description

12.4.1

MCUCR – MCU Control Register

• Bit 6 – PUD: Pull-up Disable

When this bit is written to one, the pull-ups in the I/O ports are disabled even if the DDxn and
PORTxn Registers are configured to enable the pull-ups ({DDxn, PORTxn} = 0b01). See

”Con-

figuring the Pin” on page 54

for more details about this feature.

12.4.2

PORTA – Port A Data Register

12.4.3

DDRA – Port A Data Direction Register

12.4.4

PINA – Port A Input Pins Address

12.4.5

PORTB – Port B Data Register

12.4.6

DDRB – Port B Data Direction Register

12.4.7

PINB – Port B Input Pins Address

Bit

7

6

5

4

3

2

1

0

0x35 (0x55)

-

PUD

SE

SM1

SM0

-

ISC01

ISC00

MCUCR

Read/Write

R

R/W

R/W

R/W

R/W

R

R

R

Initial Value

0

0

0

0

0

0

0

0

Bit

7

6

5

4

3

2

1

0

0x1B (0x3B)

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

0x1A (0x3A)

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

0x19 (0x39)

PINA7

PINA6

PINA5

PINA4

PINA3

PINA2

PINA1

PINA0

PINA

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

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

0x18 (0x38)

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

0x17 (0x37)

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

Bit

7

6

5

4

3

2

1

0

0x16 (0x36)

PINB7

PINB6

PINB5

PINB4

PINB3

PINB2

PINB1

PINB0

PINB

Read/Write

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Initial Value

N/A

N/A

N/A

N/A

N/A

N/A

N/A

N/A

Advertising