ATTINY25V-15ST Atmel, ATTINY25V-15ST Datasheet - Page 44

MCU AVR 2K FLASH 4MHZ 8-SOIC

ATTINY25V-15ST

Manufacturer Part Number
ATTINY25V-15ST
Description
MCU AVR 2K FLASH 4MHZ 8-SOIC
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet

Specifications of ATTINY25V-15ST

Package / Case
8-SOIC (3.9mm Width)
Voltage - Supply (vcc/vdd)
1.8 V ~ 3.6 V
Operating Temperature
-40°C ~ 85°C
Speed
8MHz
Number Of I /o
6
Eeprom Size
128 x 8
Core Processor
AVR
Program Memory Type
FLASH
Ram Size
128 x 8
Program Memory Size
2KB (2K x 8)
Data Converters
A/D 4x10b
Oscillator Type
Internal
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Connectivity
USI
Core Size
8-Bit
Processor Series
ATTINY2x
Core
AVR8
Data Bus Width
8 bit
Data Ram Size
128 B
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATTINY25V-15ST
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
8.10
8.10.1
44
Timed Sequences for Changing the Configuration of the Watchdog Timer
ATtiny25/45/85
Safety Level 1
The following code example shows one assembly and one C function for turning off the WDT.
The example assumes that interrupts are controlled (e.g., by disabling interrupts globally) so that
no interrupts will occur during execution of these functions.
Note:
The sequence for changing configuration differs slightly between the two safety levels. Separate
procedures are described for each level.
In this mode, the Watchdog Timer is initially disabled, but can be enabled by writing the WDE bit
to one without any restriction. A timed sequence is needed when disabling an enabled Watch-
dog Timer. To disable an enabled Watchdog Timer, the following procedure must be followed:
Assembly Code Example
C Code Example
1. In the same operation, write a logic one to WDCE and WDE. A logic one must be writ-
2. Within the next four clock cycles, in the same operation, write the WDE and WDP bits
WDT_off:
WDR
void WDT_off(void)
{
}
ten to WDE regardless of the previous value of the WDE bit.
as desired, but with the WDCE bit cleared.
; Clear WDRF in MCUSR
ldi
out
; Write logical one to WDCE and WDE
; Keep old prescaler setting to prevent unintentional Watchdog Reset
in
ori r16, (1<<WDCE)|(1<<WDE)
out WDTCR, r16
; Turn off WDT
ldi r16, (0<<WDE)
out WDTCR, r16
ret
_WDR();
/* Clear WDRF in MCUSR */
MCUSR = 0x00
/* Write logical one to WDCE and WDE */
WDTCR |= (1<<WDCE) | (1<<WDE);
/* Turn off WDT */
WDTCR = 0x00;
1. The example code assumes that the part specific header file is included.
r16, WDTCR
r16, (0<<WDRF)
MCUSR, r16
(1)
(1)
7598H–AVR–07/09

Related parts for ATTINY25V-15ST