ATTINY25-20SSNR Atmel, ATTINY25-20SSNR Datasheet - Page 57
![IC MCU AVR 2KB FLASH 20MHZ 8SOIC](/photos/18/29/182913/8-soic_sml.jpg)
ATTINY25-20SSNR
Manufacturer Part Number
ATTINY25-20SSNR
Description
IC MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer
Atmel
Series
AVR® ATtinyr
Specifications of ATTINY25-20SSNR
Core Processor
AVR
Core Size
8-Bit
Speed
20MHz
Connectivity
USI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
6
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)
2.7 V ~ 5.5 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
8-SOIC (0.154", 3.90mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 57 of 236
- Download datasheet (5Mb)
10.2.2
10.2.3
10.2.4
2586M–AVR–07/10
Toggling the Pin
Switching Between Input and Output
Reading the Pin Value
Writing a logic one to PINxn toggles the value of PORTxn, independent on the value of DDRxn.
Note that the SBI instruction can be used to toggle one single bit in a port.
When switching between tri-state ({DDxn, PORTxn} = 0b00) and output high ({DDxn, PORTxn}
= 0b11), an intermediate state with either pull-up enabled {DDxn, PORTxn} = 0b01) or output
low ({DDxn, PORTxn} = 0b10) must occur. Normally, the pull-up enabled state is fully accept-
able, as a high-impedant environment will not notice the difference between a strong high driver
and a pull-up. If this is not the case, the PUD bit in the MCUCR Register can be set to disable all
pull-ups in all ports.
Switching between input with pull-up and output low generates the same problem. The user
must use either the tri-state ({DDxn, PORTxn} = 0b00) or the output high state ({DDxn, PORTxn}
= 0b10) as an intermediate step.
Table 10-1
Table 10-1.
Independent of the setting of Data Direction bit DDxn, the port pin can be read through the
PINxn Register bit. As shown in
stitute a synchronizer. This is needed to avoid metastability if the physical pin changes value
near the edge of the internal clock, but it also introduces a delay.
gram of the synchronization when reading an externally applied pin value. The maximum and
minimum propagation delays are denoted t
Figure 10-3. Synchronization when Reading an Externally Applied Pin value
DDxn
0
0
0
1
1
PORTxn
summarizes the control signals for the pin value.
INSTRUCTIONS
0
1
1
0
1
Port Pin Configurations
SYSTEM CLK
SYNC LATCH
PINxn
(in MCUCR)
r17
PUD
X
X
X
0
1
Figure
XXX
Output
Output
Input
Input
Input
10-2, the PINxn Register bit and the preceding latch con-
I/O
pd,max
t
pd, max
Pull-up
and t
0x00
Yes
No
No
No
No
XXX
pd,min
t
pd, min
Comment
Tri-state (Hi-Z)
Pxn will source current if ext. pulled low.
Tri-state (Hi-Z)
Output Low (Sink)
Output High (Source)
respectively.
in r17, PINx
Figure 10-3
shows a timing dia-
0xFF
57
Related parts for ATTINY25-20SSNR
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ATtiny25](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATtiny25 Automotive](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATTINY25-20MU](/photos/6/87/68751/313-20-qfn_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2K FLASH 20MHZ 20-QFN
Manufacturer:
Atmel
Datasheet:
![ATTINY25-20PU](/photos/6/50/65033/313-8-dip_tmb.jpg)
Part Number:
Description:
IC AVR MCU 2K 20MHZ 8-DIP
Manufacturer:
Atmel
Datasheet:
![ATTINY25-20SU](/photos/6/50/65032/453-8-soic_tmb.jpg)
Part Number:
Description:
IC AVR MCU 2K 20MHZ 8-SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY25-15MZ](/photos/30/99/309923/qfn-20_tmb.jpg)
Part Number:
Description:
MCU AVR 2K FLASH 15MHZ 20-QFN
Manufacturer:
Atmel
Datasheet:
![ATTINY25-20MF](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
8-bit Microcontrollers - MCU AVR 16KB FL 512B EE 1KB SRAM 10 MHZ GRN
Manufacturer:
Atmel
![ATTINY25-20MFR](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
8-bit Microcontrollers - MCU AVR 16KB FL 512B EE 1KB SRAM 10 MHZ GRN
Manufacturer:
Atmel
![ATTINY25-20SSU](/photos/6/50/65032/453-8-soic_tmb.jpg)
Part Number:
Description:
MCU AVR 2K ISP FLASH 2.7V 8-SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY25-20SSN](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY25-20SH](/photos/6/50/65032/453-8-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY25-20SSH](/photos/6/50/65032/453-8-soic_tmb.jpg)
Part Number:
Description:
IC MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY25-20SSUR](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY25-20SUR](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY25-20MUR](/photos/6/87/68751/313-20-qfn_tmb.jpg)
Part Number:
Description:
MCU AVR 2KB FLASH 20MHZ 20QFN
Manufacturer:
Atmel
Datasheet: