ATMEGA8L-8PJ Atmel, ATMEGA8L-8PJ Datasheet - Page 104
ATMEGA8L-8PJ
Manufacturer Part Number
ATMEGA8L-8PJ
Description
IC MCU AVR 8K 5V 8MHZ 28-DIP
Manufacturer
Atmel
Series
AVR® ATmegar
Specifications of ATMEGA8L-8PJ
Core Processor
AVR
Core Size
8-Bit
Speed
8MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
23
Program Memory Size
8KB (4K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 6x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
28-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 104 of 302
- Download datasheet (6Mb)
Counter Unit
104
ATmega8(L)
The main part of the 8-bit Timer/Counter is the programmable bi-directional counter unit.
46
Figure 46. Counter Unit Block Diagram
Signal description (internal signals):
Depending on the mode of operation used, the counter is cleared, incremented, or decremented
at each timer clock (clk
selected by the clock select bits (CS22:0). When no clock source is selected (CS22:0 = 0) the
timer is stopped. However, the TCNT2 value can be accessed by the CPU, regardless of
whether clk
count operations.
The counting sequence is determined by the setting of the WGM21 and WGM20 bits located in
the Timer/Counter Control Register (TCCR2). There are close connections between how the
counter behaves (counts) and how waveforms are generated on the Output Compare Output
OC2. For more details about advanced counting sequences and waveform generation, see
“Modes of Operation” on page
The Timer/Counter Overflow (TOV2) Flag is set according to the mode of operation selected by
the WGM21:0 bits. TOV2 can be used for generating a CPU interrupt.
count
direction
clear
clk
TOP
BOTTOM
shows a block diagram of the counter and its surrounding environment.
T2
DATA BUS
T2
TCNTn
Increment or decrement TCNT2 by 1
Selects between increment and decrement
Clear TCNT2 (set all bits to zero)
Timer/Counter clock
Signalizes that TCNT2 has reached maximum value
Signalizes that TCNT2 has reached minimum value (zero)
is present or not. A CPU write overrides (has priority over) all counter clear or
T2
). clk
direction
count
BOTTOM
clear
108.
T2
can be generated from an external or internal clock source,
Control Logic
TOP
TOVn
(Int. Req.)
clk
Tn
Prescaler
Oscillator
T/C
clk
I/O
2486Z–AVR–02/11
TOSC2
TOSC1
Figure
Related parts for ATMEGA8L-8PJ
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
8-bit AVR with 8K Bytes In-System Programmable Flash
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
IC AVR MCU 8K 8MHZ 3V 32-QFN
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 8K 8MHZ 3V 28DIP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 8K LV 8MHZ COM 32TQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 8K LV 8MHZ IND 32TQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 8K LV 8MHZ COM 28-DIP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 8K LV 8MHZ IND 28-DIP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 8K LV 8MHZ COM 32-QFN
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 8K LV 8MHZ IND 32-QFN
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 8KB FLASH 8MHZ 32TQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 8KB FLASH 8MHZ 32QFN
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC MCU AVR 8K 5V 8MHZ 32-TQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC MCU AVR 8K 5V 8MHZ 32-QFN
Manufacturer:
Atmel
Datasheet: