at90pwm81-16se ATMEL Corporation, at90pwm81-16se Datasheet - Page 182

no-image

at90pwm81-16se

Manufacturer Part Number
at90pwm81-16se
Description
8-bit Avr Microcontroller With 8k Bytes In- System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
182
AT90PWM81
When the SPI is enabled, the data direction of the MOSI, MISO, SCK, and SS pins is overridden accord-
ing to
page
Table 15-1.
Note:
The following code examples show how to initialize the SPI as a Master and how to perform a simple
transmission.
DDR_SPI in the examples must be replaced by the actual Data Direction Register controlling the SPI pins.
DD_MOSI, DD_MISO and DD_SCK must be replaced by the actual data direction bits for these pins.
E.g. if MOSI is placed on pin PB2, replace DD_MOSI with DDB2 and DDR_SPI with DDRB.
MOSI
MISO
71.
SCK
Pin
Table
SS
1. See
of the user defined SPI pins.
15-1. For more details on automatic port overrides, refer to
SPI Pin Overrides
“Alternate Functions of Port B” on page 73
Direction, Master SPI
User Defined
Input
User Defined
User Defined
(1)
for a detailed description of how to define the direction
Direction, Slave SPI
Input
User Defined
Input
Input
“Alternate Port Functions” on
7734M–AVR–03/10

Related parts for at90pwm81-16se