參數(shù)資料
型號: 90USB162-16AU
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, FLASH, 16 MHz, RISC MICROCONTROLLER, PQFP32
封裝: 7 X 7 MM, 1 MM HEIGHT, 0.50 MM PITCH, GREEN, PLASTIC, TQFP-32
文件頁數(shù): 14/46頁
文件大?。?/td> 7004K
代理商: 90USB162-16AU
146
7593L–AVR–09/12
AT90USB64/128
16.1.1
Registers
The Timer/Counter (TCNT2) and Output Compare Register (OCR2A and OCR2B) are 8-bit reg-
isters. Interrupt request (abbreviated to Int.Req.) signals are all visible in the Timer Interrupt Flag
Register (TIFR2). All interrupts are individually masked with the Timer Interrupt Mask Register
(TIMSK2). TIFR2 and TIMSK2 are not shown in the figure.
The Timer/Counter can be clocked internally, via the prescaler, or asynchronously clocked from
the TOSC1/2 pins, as detailed later in this section. The asynchronous operation is controlled by
the Asynchronous Status Register (ASSR). The Clock Select logic block controls which clock
source the Timer/Counter uses to increment (or decrement) its value. The Timer/Counter is inac-
tive when no clock source is selected. The output from the Clock Select logic is referred to as the
timer clock (clk
T2).
The double buffered Output Compare Register (OCR2A and OCR2B) are compared with the
Timer/Counter value at all times. The result of the compare can be used by the Waveform Gen-
erator to generate a PWM or variable frequency output on the Output Compare pins (OC2A and
OC2B). See “Output Compare unit” on page 147. for details. The compare match event will also
set the Compare Flag (OCF2A or OCF2B) which can be used to generate an Output Compare
interrupt request.
16.1.2
Definitions
Many register and bit references in this document are written in general form. A lower case “n”
replaces the Timer/Counter number, in this case 2. However, when using the register or bit
defines in a program, the precise form must be used, that is, TCNT2 for accessing
Timer/Counter2 counter value and so on.
The definitions in the table below are also used extensively throughout the section.
16.2
Timer/Counter clock sources
The Timer/Counter can be clocked by an internal synchronous or an external asynchronous
clock source. The clock source clk
T2 is by default equal to the MCU clock, clkI/O. When the AS2
bit in the ASSR Register is written to logic one, the clock source is taken from the Timer/Counter
Oscillator connected to TOSC1 and TOSC2. For details on asynchronous operation, see “ASSR
– Asynchronous Status Register” on page 161. For details on clock sources and prescaler, see
16.3
Counter unit
The main part of the 8-bit Timer/Counter is the programmable bi-directional counter unit. Figure
16-2 on page 147 shows a block diagram of the counter and its surrounding environment.
BOTTOM
The counter reaches the BOTTOM when it becomes zero (0x00).
MAX
The counter reaches its MAXimum when it becomes 0xFF (decimal 255).
TOP
The counter reaches the TOP when it becomes equal to the highest value in the
count sequence. The TOP value can be assigned to be the fixed value 0xFF
(MAX) or the value stored in the OCR2A Register. The assignment is dependent
on the mode of operation.
相關(guān)PDF資料
PDF描述
MQ83C154DXXX-20P883 8-BIT, MROM, 20 MHz, MICROCONTROLLER, CQFP44
MC80C32E-12/883D 8-BIT, 12 MHz, MICROCONTROLLER, CDIP40
MQ80C52TXXX-36SCR 8-BIT, MROM, 36 MHz, MICROCONTROLLER, CQFP44
MR80C52EXXX-12:RD 8-BIT, MROM, 12 MHz, MICROCONTROLLER, CQCC44
MR80C32E-16P883R 8-BIT, 16 MHz, MICROCONTROLLER, CQCC44
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
90USB162-16MU 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 8/16K Bytes of ISP Flash and USB Controller
90USB82-16MU 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 8/16K Bytes of ISP Flash and USB Controller
90V1032 制造商: 功能描述: 制造商:undefined 功能描述:
90W49-S 制造商:Leviton Manufacturing Co 功能描述:
90WCAN 制造商:AAC 制造商全稱:American Accurate Components, Inc. 功能描述:Waveguide to Coaxial Adapter