ATtiny461 Automotive Atmel Corporation, ATtiny461 Automotive Datasheet - Page 98

no-image

ATtiny461 Automotive

Manufacturer Part Number
ATtiny461 Automotive
Description
Manufacturer
Atmel Corporation

Specifications of ATtiny461 Automotive

Flash (kbytes)
4 Kbytes
Pin Count
20
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
8
Hardware Qtouch Acquisition
No
Max I/o Pins
16
Ext Interrupts
16
Usb Speed
No
Usb Interface
No
Spi
1
Twi (i2c)
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
11
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
0.25
Eeprom (bytes)
256
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 150
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
6
Input Capture Channels
1
Pwm Channels
6
32khz Rtc
No
Calibrated Rc Oscillator
Yes
16.4.1
16.4.2
16.4.3
98
ATtiny261/ATtiny461/ATtiny861
Force Output Compare
Compare Match Blocking by TCNT1 Write
Using the Output Compare Unit
Figure 16-5. Effects of Unsynchronized OCR Latching
In non-PWM waveform generation modes, the match output of the comparator can be forced by
writing a one to the Force Output Compare (FOC1x) bit. Forcing Compare Match will not set the
OCF1x Flag or reload/clear the timer, but the Waveform Output (OCW1x) will be updated as if a
real Compare Match had occurred (the COM1x1:0 bits settings define whether the Waveform
Output (OCW1x) is set, cleared or toggled).
All CPU write operations to the TCNT1 Register will block any Compare Match that occur in the
next timer clock cycle, even when the timer is stopped. This feature allows OCR1x to be initial-
ized to the same value as TCNT1 without triggering an interrupt when the Timer/Counter clock is
enabled.
Since writing TCNT1 in any mode of operation will block all Compare Matches for one timer
clock cycle, there are risks involved when changing TCNT1 when using the Output Compare
Unit, independently of whether the Timer/Counter is running or not. If the value written to TCNT1
equals the OCR1x value, the Compare Match will be missed, resulting in incorrect waveform
generation. Similarly, do not write the TCNT1 value equal to BOTTOM when the counter is
down-counting.
The setup of the Waveform Output (OCW1x) should be performed before setting the Data Direc-
tion Register for the port pin to output. The easiest way of setting the OCW1x value is to use the
Force Output Compare (FOC1x) strobe bits in Normal mode. The OC1x keeps its value even
when changing between Waveform Generation modes.
Be aware that the COM1x1:0 bits are not double buffered together with the compare value.
Changing the COM1x1:0 bits will take effect immediately.
Unsynchronized WFnx Latch
Synchronized WFnx Latch
Compare Value changes
Compare Value changes
Glitch
Counter Value
Compare Value
Output Compare
Waveform OCWnx
Counter Value
Compare Value
Output Compare
Wafeform OCWnx
7753F–AVR–01/11

Related parts for ATtiny461 Automotive