ATTINY24V-10MUR Atmel, ATTINY24V-10MUR Datasheet - Page 121
![MCU AVR 2KB FLASH 10MHZ 20QFN](/photos/6/87/68751/313-20-qfn_sml.jpg)
ATTINY24V-10MUR
Manufacturer Part Number
ATTINY24V-10MUR
Description
MCU AVR 2KB FLASH 10MHZ 20QFN
Manufacturer
Atmel
Series
AVR® ATtinyr
Specifications of ATTINY24V-10MUR
Core Processor
AVR
Core Size
8-Bit
Speed
10MHz
Connectivity
USI
Peripherals
Brown-out Detect/Reset, POR, PWM, Temp Sensor, WDT
Number Of I /o
12
Program Memory Size
2KB (1K x 16)
Program Memory Type
FLASH
Eeprom Size
128 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 121 of 238
- Download datasheet (5Mb)
14.3.3
14.3.4
8006K–AVR–10/10
SPI Slave Operation Example
Two-wire Mode
The following code demonstrates how to use the USI module as a SPI Slave:
The code is size optimized using only eight instructions (plus return). The code example
assumes that the DO and USCK pins have been enabled as outputs in DDRA. 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 register r16.
Note that the first two instructions are for initialization, only, and need only be executed once.
These instructions set three-wire mode and positive edge clock. The loop is repeated until the
USI Counter Overflow Flag is set.
The USI two-wire mode is compliant to the Inter IC (TWI) bus protocol, but without slew rate lim-
iting on outputs and without input noise filtering. Pin names used in this mode are SCL and SDA.
Figure 14-4
is only the physical layer that is shown since the system operation is highly dependent of the
communication scheme used. The main differences between the master and slave operation at
this level is the serial clock generation which is always done by the master. Only the slave uses
the clock control unit.
Clock generation must be implemented in software, but the shift operation is done automatically
in both devices. Note that clocking only on negative edges for shifting data is of practical use in
this mode. The slave can insert wait states at start or end of transfer by forcing the SCL clock
low. This means that the master must always check if the SCL line was actually released after it
has generated a positive edge.
Since the clock also increments the counter, a counter overflow can be used to indicate that the
transfer is completed. The clock is generated by the master by toggling the USCK pin via the
PORTA register.
init:
...
SlaveSPITransfer:
SlaveSPITransfer_loop:
ldi
out
out
ldi
out
in
sbrs
rjmp
in
ret
shows two USI units operating in two-wire mode, one as master and one as slave. It
r16,(1<<USIWM0)|(1<<USICS1)
USICR,r16
USIDR,r16
r16,(1<<USIOIF)
USISR,r16
r16, USISR
r16, USIOIF
SlaveSPITransfer_loop
r16,USIDR
ATtiny24/44/84
121
Related parts for ATTINY24V-10MUR
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ATTINY24V-10MU](/photos/6/87/68751/313-20-qfn_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 10MHZ 20-QFN
Manufacturer:
Atmel
Datasheet:
![ATTINY24V-10SSU](/photos/7/39/73946/313-14-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 10MHZ 14SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY24V-10PU](/photos/7/39/73953/313-14-dip_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 10MHZ 14-DIP
Manufacturer:
Atmel
Datasheet:
![ATTINY24V-10SSUR](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
MCU AVR 2KB FLASH 10MHZ 14SOIC
Manufacturer:
Atmel
Datasheet:
![attiny24v](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
8-bit Avr Microcontroller With 2/4/8k Bytes Insystem Programmable Flash
Manufacturer:
ATMEL Corporation
Datasheet:
![ATTINY24V-W-11](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
8-bit Microcontrollers - MCU Microcontroller
Manufacturer:
Atmel
![ATtiny24](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATtiny24 Automotive](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATTINY24-20MU](/photos/6/87/68751/313-20-qfn_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20MHZ 20-QFN
Manufacturer:
Atmel
Datasheet:
![ATTINY24-20SSU](/photos/7/39/73946/313-14-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20MHZ 14SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY24-15MZ](/photos/12/32/123214/20-qfn-pc_tmb.jpg)
Part Number:
Description:
MCU AVR 2K FLASH 15MHZ 20-QFN
Manufacturer:
Atmel
Datasheet:
![ATTINY24-20PU](/photos/7/39/73953/313-14-dip_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20MHZ 14-DIP
Manufacturer:
Atmel
Datasheet: