English
Language : 

MEGA128CAN Datasheet, PDF (72/413 Pages) ATMEL Corporation – Microcontroller WITH 128K BYTES OF ISP FLASH AND CAN CONTROLLER
DDB3. When the pin is forced to be an input, the pull-up can still be controlled by the
PORTB3 bit.
• MOSI – Port B, Bit 2
MOSI, SPI Master Data output, Slave Data input for SPI channel. When the SPI is
enabled as a slave, this pin is configured as an input regardless of the setting of DDB2.
When the SPI is enabled as a master, the data direction of this pin is controlled by
DDB2. When the pin is forced to be an input, the pull-up can still be controlled by the
PORTB2 bit.
• SCK – Port B, Bit 1
SCK, Master Clock output, Slave Clock input pin for SPI channel. When the SPI is
enabled as a slave, this pin is configured as an input regardless of the setting of DDB1.
When the SPI is enabled as a master, the data direction of this pin is controlled by
DDB1. When the pin is forced to be an input, the pull-up can still be controlled by the
PORTB1 bit.
• SS – Port B, Bit 0
SS, Slave Port Select input. When the SPI is enabled as a slave, this pin is configured
as an input regardless of the setting of DDB0. As a slave, the SPI is activated when this
pin is driven low. When the SPI is enabled as a master, the data direction of this pin is
controlled by DDB0. When the pin is forced to be an input, the pull-up can still be con-
trolled by the PORTB0 bit.
Table 33 and Table 34 relate the alternate functions of Port B to the overriding signals
shown in Figure 34 on page 67. SPI MSTR INPUT and SPI SLAVE OUTPUT constitute
the MISO signal, while MOSI is divided into SPI MSTR OUTPUT and SPI SLAVE
INPUT.
Table 33 and Table 34 relates the alternate functions of Port B to the overriding signals
shown in Figure 34 on page 67.
Table 33. Overriding Signals for Alternate Functions in PB7..PB4
Signal Name PB7/OC0A/OC1C PB6/OC1B
PB5/OC1A
PB4/OC2A
PUOE
0
0
0
0
PUOV
0
0
0
0
DDOE
0
0
0
0
DDOV
0
0
0
0
PVOE
PVOV
OC0A/OC1C
ENABLE(1)
OC0A/OC1C(1)
OC1B ENABLE OC1A ENABLE OC2A ENABLE
OC1B
OC1A
OC2A
PTOE
0
0
0
0
DIEOE
0
0
0
0
DIEOV
0
0
0
0
DI
–
–
–
–
AIO
–
–
–
–
Note: 1. See “Output Compare Modulator - OCM” on page 160 for details.
72 AT90CAN128
4250E–CAN–12/04