ATtiny4 Atmel Corporation, ATtiny4 Datasheet - Page 49
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATtiny4
Manufacturer Part Number
ATtiny4
Description
Manufacturer
Atmel Corporation
Specifications of ATtiny4
Flash (kbytes)
0.5 Kbytes
Pin Count
6
Max. Operating Frequency
12 MHz
Cpu
8-bit AVR
# Of Touch Channels
1
Hardware Qtouch Acquisition
No
Max I/o Pins
4
Ext Interrupts
4
Usb Speed
No
Usb Interface
No
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
0.03
Self Program Memory
NO
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 125
I/o Supply Class
1.8 to 5.5
Operating Voltage (vcc)
1.8 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
1
Output Compare Channels
2
Input Capture Channels
1
Pwm Channels
2
32khz Rtc
No
Calibrated Rc Oscillator
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATtiny4-TS8R
Manufacturer:
ADI
Quantity:
635
Part Number:
ATtiny4-TSHR
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATtiny4313-MMHR
Manufacturer:
MICRON
Quantity:
4 100
Company:
Part Number:
ATtiny4313-MU
Manufacturer:
HITTITE
Quantity:
101
Part Number:
ATtiny4313-SU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATtiny44-15MZ
Manufacturer:
ATMEL
Quantity:
1 000
Part Number:
ATtiny44-15MZ
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATtiny44-15SSZ
Manufacturer:
ATMEL
Quantity:
350
Part Number:
ATtiny441-MUR
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
ATtiny44A-MFR
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
10.3.1
8127E–AVR–11/11
Alternate Functions of Port B
The Port B pins with alternate function are shown in
Table 10-3.
• Port B, Bit 0 – ADC0/AIN0/OC0A/PCINT0/TPIDATA
• Port B, Bit 1 – ADC1/AIN1/CLKI/ICP0/OC0B/PCINT1/TPICLK
• ADC0: Analog to Digital Converter, Channel 0
• AIN0: Analog Comparator Positive Input. Configure the port pin as input with the internal pull-
• OC0A, Output Compare Match output: The PB0 pin can serve as an external output for the
• PCINT0: Pin Change Interrupt source 0. The PB0 pin can serve as an external interrupt
• TPIDATA: Serial Programming Data.
• ADC1: Analog to Digital Converter, Channel 1
• AIN1: Analog Comparator Negative Input. Configure the port pin as input with the internal
• CLKI: External Clock.
• ICP0: Input Capture Pin. The PB1 pin can act as an Input Capture pin for Timer/Counter0.
up switched off to avoid the digital port function from interfering with the function of the
Analog Comparator.
Timer/Counter0 Compare Match A. The pin has to be configured as an output (DDB0 set
(one)) to serve this function. This is also the output pin for the PWM mode timer function.
source for pin change interrupt 0.
pull-up switched off to avoid the digital port function from interfering with the function of the
Analog Comparator.
Port Pin
PB0
PB1
PB2
PB3
Port B Pins Alternate Functions
Alternate Function
ADC0:
AIN0:
OC0A: Timer/Counter0 Compare Match A Output
PCINT0: Pin Change Interrupt 0, Source 0
TPIDATA:Serial Programming Data
ADC1:
AIN1:
CLKI:
ICP0:
OC0B: Timer/Counter0 Compare Match B Output
PCINT1:Pin Change Interrupt 0, Source 1
TPICLK: Serial Programming Clock
ADC2:
CLKO: System Clock Output
INT0:
PCINT2: Pin Change Interrupt 0, Source 2
T0:
ADC3:
PCINT3: Pin Change Interrupt 0, Source 3
RESET: Reset Pin
ADC Input Channel 0
Analog Comparator, Positive Input
ADC Input Channel 1
Analog Comparator, Negative Input
External Clock
Timer/Counter0 Input Capture Input
ADC Input Channel 2
External Interrupt 0 Source
Timer/Counter0 Clock Source
ADC Input Channel 3
(ATtiny5/10, only)
(ATtiny5/10, only)
Table 10-3 on page
ATtiny4/5/9/10
49.
49