beautypg.com

1 mcu control register - mcucr, 2 alternate functions of port b – Rainbow Electronics ATmega64C1 User Manual

Page 67

background image

67

7647A–AVR–02/08

ATmega32/64/M1/C1

9.3.1

MCU Control Register – MCUCR

• Bit 4 – 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). Se

9.3.2

Alternate Functions of Port B

The Port B pins with alternate functions are shown in

Table 9-3

.

The alternate pin configuration is as follows:

• ADC4/PSCOUT0B/SCK/PCINT7 – Bit 7

PSCOUT0B, Output 0B of PSC.

Bit

7

6

5

4

3

2

1

0

SPIPS

PUD

IVSEL

IVCE

MCUCR

Read/Write

R/W

R

R

R/W

R

R

R/W

R/W

Initial Value

0

0

0

0

0

0

0

0

Table 9-3.

Port B Pins Alternate Functions

Port Pin

Alternate Functions

PB7

PSCOUT0B (PSC output 0B)

ADC4 (Analog Input Channel 4)

SCK (SPI Bus Serial Clock)

PCINT7 (Pin Change Interrupt 7)

PB6

ADC7 (Analog Input Channel 7)

PSCOUT1B (PSC output 1B)

PCINT6 (Pin Change Interrupt 6)

PB5

ADC6 (Analog Input Channel 6)

INT2 (External Interrupt 2)

ACMPN1 (Analog Comparator 1 Negative Input)

AMP2- (Analog Differential Amplicator 2 Negative Input)

PCINT5 (Pin Change Interrupt 5)

PB4

AMP0+ (Analog Differential Amplifier 0 Positive Input)

PCINT4 (Pin Change Interrupt 4)

PB3

AMP0- (Analog Differential Amplifier 0 Negative Input)

PCINT3 (Pin Change Interrupt 3)

PB2

ADC5 (Analog Input Channel5 )

INT1 (External Interrupt 1)

ACMPN0 (Analog Comparator 0 Negative Input)

PCINT2 (Pin Change Interrupt 2)

PB1

MOSI (SPI Master Out Slave In)

PSCOUT2B (PSC output 2B)

PCINT1 (Pin Change Interrupt 1)

PB0

MISO (SPI Master In Slave Out)

PSCOUT2A (PSC output 2A)

PCINT0 (Pin Change Interrupt 0)