参数资料
型号: MP80C31-12D
厂商: ATMEL CORP
元件分类: 微控制器/微处理器
英文描述: 8-BIT, 12 MHz, MICROCONTROLLER, PDIP40
封装: PLASTIC, DIP-40
文件页数: 123/170页
文件大小: 4133K
代理商: MP80C31-12D
56
ATtiny4/5/9/10 [DATASHEET]
8127F–AVR–02/2013
Count
Increment or decrement TCNT0 by 1.
Direction
Select between increment and decrement.
Clear
Clear TCNT0 (set all bits to zero).
clk
T0
Timer/Counter clock.
TOP
Signalize that TCNT0 has reached maximum value.
BOTTOM
Signalize that TCNT0 has reached minimum value (zero).
The 16-bit counter is mapped into two 8-bit I/O memory locations: Counter High (TCNT0H) containing the upper
eight bits of the counter, and Counter Low (TCNT0L) containing the lower eight bits. The TCNT0H Register can
only be indirectly accessed by the CPU. When the CPU does an access to the TCNT0H I/O location, the CPU
accesses the high byte temporary register (TEMP). The temporary register is updated with the TCNT0H value
when the TCNT0L is read, and TCNT0H is updated with the temporary register value when TCNT0L is written. This
allows the CPU to read or write the entire 16-bit counter value within one clock cycle via the 8-bit data bus. It is
important to notice that there are special cases of writing to the TCNT0 Register when the counter is counting that
will give unpredictable results. The special cases are described in the sections where they are of importance.
Depending on the mode of operation used, the counter is cleared, incremented, or decremented at each timer
clock (clk
T0). The clkT0 can be generated from an external or internal clock source, selected by the Clock Select bits
(CS02:0). When no clock source is selected (CS02:0 = 0) the timer is stopped. However, the TCNT0 value can be
accessed by the CPU, independent of whether clk
T0 is present or not. A CPU write overrides (has priority over) all
counter clear or count operations.
The counting sequence is determined by the setting of the Waveform Generation mode bits (WGM03:0) located in
the Timer/Counter Control Registers A and B (TCCR0A and TCCR0B). There are close connections between how
the counter behaves (counts) and how waveforms are generated on the Output Compare outputs OC0x. For more
details about advanced counting sequences and waveform generation, see “Modes of Operation” on page 61.
The Timer/Counter Overflow Flag (TOV0) is set according to the mode of operation selected by the WGM03:0 bits.
TOV0 can be used for generating a CPU interrupt.
11.5
Input Capture Unit
The Timer/Counter incorporates an Input Capture unit that can capture external events and give them a time-
stamp indicating time of occurrence. The external signal indicating an event, or multiple events, can be applied via
the ICP0 pin. The time-stamps can then be used to calculate frequency, duty-cycle, and other features of the signal
applied. Alternatively the time-stamps can be used for creating a log of the events.
The Input Capture unit is illustrated by the block diagram shown in Figure 11-5 on page 57. The elements of the
block diagram that are not directly a part of the Input Capture unit are gray shaded. The lower case “n” in register
and bit names indicates the Timer/Counter number.
相关PDF资料
PDF描述
MF280C51-20R 8-BIT, MROM, 20 MHz, MICROCONTROLLER, PQFP44
MS80C51-30R 8-BIT, MROM, 30 MHz, MICROCONTROLLER, PQCC44
MS80C51-20D 8-BIT, MROM, 20 MHz, MICROCONTROLLER, PQCC44
MF280C31-25R 8-BIT, 25 MHz, MICROCONTROLLER, PQFP44
MF180C31-16D 8-BIT, 16 MHz, MICROCONTROLLER, PQFP44
相关代理商/技术参数
参数描述
MP81 制造商:未知厂家 制造商全称:未知厂家 功能描述:BRIDGE RECTIFIERS
MP810 制造商:GOOD-ARK 制造商全称:GOOD-ARK Electronics 功能描述:SILICON BRIDGE RECTIFIERS
MP-810 制造商:JAMECO BENCHPRO 功能描述:4-Piece Plier/Cutter/Screwdrivers Set
MP8100 制造商:MPS 制造商全称:Monolithic Power Systems 功能描述:Precision High-Side Current-Sense Amplifier
MP8100DS 制造商:MPS 制造商全称:Monolithic Power Systems 功能描述:Precision High-Side Current-Sense Amplifier