ATtiny25 Automotive Atmel Corporation, ATtiny25 Automotive Datasheet - Page 96
ATtiny25 Automotive
Manufacturer Part Number
ATtiny25 Automotive
Description
Manufacturer
Atmel Corporation
Datasheets
1.AT90CAN128_AUTOMOTIVE.pdf
(225 pages)
2.ATTINY25_AUTOMOTIVE.pdf
(7 pages)
3.ATTINY25_AUTOMOTIVE.pdf
(196 pages)
Specifications of ATtiny25 Automotive
Flash (kbytes)
2 Kbytes
Pin Count
8
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
4
Hardware Qtouch Acquisition
No
Max I/o Pins
6
Ext Interrupts
6
Usb Speed
No
Usb Interface
No
Spi
1
Twi (i2c)
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
4
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
0.12
Eeprom (bytes)
128
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 125
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
5
Pwm Channels
6
32khz Rtc
No
Calibrated Rc Oscillator
Yes
- AT90CAN128_AUTOMOTIVE PDF datasheet
- ATTINY25_AUTOMOTIVE PDF datasheet #2
- ATTINY25_AUTOMOTIVE PDF datasheet #3
- Current page: 96 of 225
- Download datasheet (4Mb)
14.3.1
14.4
96
Timer/Counter Clock Sources
Atmel ATtiny24/44/84 [Preliminary]
Reusing the Temporary High Byte Register
The following code examples show how to do an atomic write of the TCNT1 Register contents.
Writing any of the OCR1A/B or ICR1 Registers can be done by using the same principle.
Note:
The assembly code example requires that the r17:r16 register pair contains the value to be
written to TCNT1.
If when writing to more than one 16-bit register the high byte is the same for all registers writ-
ten, then the high byte only needs to be written once. However, note that the same rule of
atomic operation described previously also applies in this case.
The timer/counter can be clocked by an internal or an external clock source. The clock source
is selected by the clock select logic which is controlled by the clock select (CS12:0) bits
located in the timer/counter control register B (TCCR1B). For details on clock sources and
prescaler, see
Assembly Code Example
C Code Example
TIM16_WriteTCNT1:
void TIM16_WriteTCNT1( unsigned int i )
{
}
; Save global interrupt flag
in r18,SREG
; Disable interrupts
cli
; Set TCNT1 to r17:r16
out TCNT1H,r17
out TCNT1L,r16
; Restore global interrupt flag
out SREG,r18
ret
unsigned char sreg;
unsigned int i;
/* Save global interrupt flag */
sreg = SREG;
/* Disable interrupts */
_CLI();
/* Set TCNT1 to i */
TCNT1 = i;
/* Restore global interrupt flag */
SREG = sreg;
1. See
“Timer/Counter Prescaler” on page
“About Code Examples” on page
(1)
(1)
6.
120.
7701E–AVR–02/11
Related parts for ATtiny25 Automotive
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
IC MCU AVR 2K FLASH 20MHZ 20-QFN
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 2K 20MHZ 8-DIP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 2K 20MHZ 8-SOIC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 2K FLASH 15MHZ 20-QFN
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
Part Number:
Description:
8-bit Microcontrollers - MCU AVR 16KB FL 512B EE 1KB SRAM 10 MHZ GRN
Manufacturer:
Atmel
Part Number:
Description:
8-bit Microcontrollers - MCU AVR 16KB FL 512B EE 1KB SRAM 10 MHZ GRN
Manufacturer:
Atmel
Part Number:
Description:
MCU AVR 2K ISP FLASH 2.7V 8-SOIC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 2KB FLASH 20MHZ 20QFN
Manufacturer:
Atmel
Datasheet: