ATA8743 ATMEL Corporation, ATA8743 Datasheet - Page 142
ATA8743
Manufacturer Part Number
ATA8743
Description
Manufacturer
ATMEL Corporation
Datasheet
1.ATA8743.pdf
(238 pages)
- Current page: 142 of 238
- Download datasheet (4Mb)
23.3.3
142
ATA8743
SPI Slave Operation Example
The following code demonstrates how to use the USI module as a SPI Slave:
The code is size optimized using only eight instructions (+ ret). The code example assumes that
the DO is configured as output and USCK pin is configured as input in the DDR Register. The
value stored in register r16 prior to the function is called is transferred to the master device, and
when the transfer is completed the data received from the Master is stored back into the r16
Register.
Note that the first two instructions is for initialization only and needs only to be executed
once.These instructions sets Three-wire mode and positive edge Shift Register clock. The loop
is repeated until the USI Counter Overflow Flag is set.
ret
init:
...
SlaveSPITransfer:
SlaveSPITransfer_loop:
out
in
ldi
out
out
ldi
out
in
sbrs
rjmp
in
ret
USICR,r17
r16,USIDR
r16,(1<<USIWM0)|(1<<USICS1)
USICR,r16
USIDR,r16
r16,(1<<USIOIF)
USISR,r16
r16, USISR
r16, USIOIF
SlaveSPITransfer_loop
r16,USIDR
9152A–INDCO–07/09
Related parts for ATA8743
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Digital Attenuator, 50 Db, 6-bit, Ttl Driver, Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Voltage Variable Absorptive Attenuator, 30 Db 0.5 - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
3 Volt Voltage Variable Absorptive Attenuator 40 Db, 0.5-2.0 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenu A T O R, 15 Db, 4-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenuator, 30 Db, 4-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenuator, 28 Db, 3-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenuator, 15.5 Db, 5-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
2.25 Volt Voltage Variable Absorptive Attenuator - 40 dB/ 1.8.2.5 GHz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Low Current/ High Performance NPN Silicon Bipolar Transistor
Manufacturer:
Agilent(Hewlett-Packard)
Datasheet:
Part Number:
Description:
Low Current/ High Performance NPN Silicon Bipolar Transistor
Manufacturer:
Agilent(Hewlett-Packard)
Datasheet:
Part Number:
Description:
Low Current/ High Performance NPN Silicon Bipolar Transistor
Manufacturer:
Agilent(Hewlett-Packard)
Datasheet:
Part Number:
Description:
(AT-332 / AT-337) Voltage Variable Absorptive Attenuator DC - 2 GHz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenuator, 31.5 Db, 6-bit, Ttl Driver, Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
2.25 Volt Voltage Variable Absorptive Attenuator - 40 Db, 1.8.2.5 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
Part Number:
Description:
Digital Attenuator, 30 Db, 4-bit, Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet: