Atmel AT90PWM2 Manual page 175

8-bit avr microcontroller with 8k bytes in-system programmable flash
Table of Contents

Advertisement

AT90PWM2/3/2B/3B
176
Table 17-1.
SPI Pin Overrides
Pin
Direction, Master SPI
MISO
Input
SCK
User Defined
SS
User Defined
Note:
1. See
"Alternate Functions of Port B" on page 69
direction of the user defined SPI pins.
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.
(1)
for a detailed description of how to define the
Direction, Slave SPI
User Defined
Input
Input
4317I–AVR–01/08

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AT90PWM2 and is the answer not in the manual?

This manual is also suitable for:

At90pwm3At90pwm2bAt90pwm3b

Table of Contents