ATTINY2313V-10SUR Atmel, ATTINY2313V-10SUR Datasheet - Page 90
![no-image](/images/manufacturer_photos/0/0/78/atmel_sml.jpg)
ATTINY2313V-10SUR
Manufacturer Part Number
ATTINY2313V-10SUR
Description
MCU AVR 2KB FLASH 10MHZ 20SOIC
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet
1.ATTINY2313-20MU.pdf
(226 pages)
Specifications of ATTINY2313V-10SUR
Core Processor
AVR
Core Size
8-Bit
Speed
10MHz
Connectivity
SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
18
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
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Cpu Family
ATtiny
Device Core
AVR
Device Core Size
8b
Frequency (max)
10MHz
Interface Type
SPI/USART/USI
Total Internal Ram Size
128Byte
# I/os (max)
18
Number Of Timers - General Purpose
2
Operating Supply Voltage (typ)
2.5/3.3/5V
Operating Supply Voltage (max)
5.5V
Operating Supply Voltage (min)
1.8V
Instruction Set Architecture
RISC
Operating Temp Range
-40C to 85C
Operating Temperature Classification
Industrial
Mounting
Surface Mount
Pin Count
20
Package Type
SOIC W
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
Lead Free Status / Rohs Status
Compliant
- Current page: 90 of 226
- Download datasheet (4Mb)
Input Capture Trigger
Source
Noise Canceler
Using the Input
Capture Unit
Output Compare
Units
90
ATtiny2313
For more information on how to access the 16-bit registers refer to
on page
The main trigger source for the Input Capture unit is the Input Capture pin (ICP1).
Timer/Counter1 can alternatively use the Analog Comparator output as trigger source for the
Input Capture unit. The Analog Comparator is selected as trigger source by setting the Analog
Comparator Input Capture (ACIC) bit in the Analog Comparator Control and Status Register
(ACSR). Be aware that changing trigger source can trigger a capture. The Input Capture Flag
must therefore be cleared after the change.
Both the Input Capture pin (ICP1) and the Analog Comparator output (ACO) inputs are sampled
using the same technique as for the T1 pin
identical. However, when the noise canceler is enabled, additional logic is inserted before the
edge detector, which increases the delay by four system clock cycles. Note that the input of the
noise canceler and edge detector is always enabled unless the Timer/Counter is set in a Wave-
form Generation mode that uses ICR1 to define TOP.
An Input Capture can be triggered by software by controlling the port of the ICP1 pin.
The noise canceler improves noise immunity by using a simple digital filtering scheme. The
noise canceler input is monitored over four samples, and all four must be equal for changing the
output that in turn is used by the edge detector.
The noise canceler is enabled by setting the Input Capture Noise Canceler (ICNC1) bit in
Timer/Counter Control Register B (TCCR1B). When enabled the noise canceler introduces addi-
tional four system clock cycles of delay from a change applied to the input, to the update of the
ICR1 Register. The noise canceler uses the system clock and is therefore not affected by the
prescaler.
The main challenge when using the Input Capture unit is to assign enough processor capacity
for handling the incoming events. The time between two events is critical. If the processor has
not read the captured value in the ICR1 Register before the next event occurs, the ICR1 will be
overwritten with a new value. In this case the result of the capture will be incorrect.
When using the Input Capture interrupt, the ICR1 Register should be read as early in the inter-
rupt handler routine as possible. Even though the Input Capture interrupt has relatively high
priority, the maximum interrupt response time is dependent on the maximum number of clock
cycles it takes to handle any of the other interrupt requests.
Using the Input Capture unit in any mode of operation when the TOP value (resolution) is
actively changed during operation, is not recommended.
Measurement of an external signal’s duty cycle requires that the trigger edge is changed after
each capture. Changing the edge sensing must be done as early as possible after the ICR1
Register has been read. After a change of the edge, the Input Capture Flag (ICF1) must be
cleared by software (writing a logical one to the I/O bit location). For measuring frequency only,
the clearing of the ICF1 flag is not required (if an interrupt handler is used).
The 16-bit comparator continuously compares TCNT1 with the Output Compare Register
(OCR1x). If TCNT equals OCR1x the comparator signals a match. A match will set the Output
Compare Flag (OCF1x) at the next timer clock cycle. If enabled (OCIE1x = 1), the Output Com-
pare Flag generates an Output Compare interrupt. The OCF1x flag is automatically cleared
when the interrupt is executed. Alternatively the OCF1x flag can be cleared by software by writ-
ing a logical one to its I/O bit location. The Waveform Generator uses the match signal to
generate an output according to operating mode set by the Waveform Generation mode
(WGM13:0) bits and Compare Output mode (COM1x1:0) bits. The TOP and BOTTOM signals
84.
(Figure 38 on page
80). The edge detector is also
“Accessing 16-bit Registers”
2543L–AVR–08/10
Related parts for ATTINY2313V-10SUR
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ATTINY2313-20PI](/photos/6/80/68043/313-20-dip_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20DIP
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20SI](/photos/6/80/68042/453-20-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20SOIC
Manufacturer:
Atmel
Datasheet:
![ATtiny2313](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATTINY2313-20MI](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
ATMEL Corporation
Datasheet:
![ATTINY2313-20MU](/photos/6/87/68751/313-20-qfn_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20MLF
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20PU](/photos/6/80/68043/313-20-dip_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20DIP
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20SU](/photos/6/80/68042/453-20-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20PJ](/photos/6/80/68043/313-20-dip_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20DIP
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20SJ](/photos/6/80/68042/453-20-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20SUR](/photos/6/80/68042/453-20-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY2313-20MUR](/photos/6/87/68751/313-20-qfn_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20WQFN
Manufacturer:
Atmel
Datasheet:
![ATTIny2313-16MI](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
8-bit AVR Microcontroller with 2K Bytes In-System Programmable Flash
Manufacturer:
ATMEL Corporation
Datasheet:
![attiny2313v](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Attiny2313 8-bit With 2k Bytes Of In-system Programmable Flash
Manufacturer:
ATMEL Corporation
Datasheet: