Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Spanish  ▼
ALLDATASHEET.ES

X  

ATMEGA161 Datasheet(PDF) 46 Page - ATMEL Corporation

No. de pieza ATMEGA161
Descripción Electrónicos  8-bit Microcontroller with 16K Bytes In-System Programmable Flash
PDF  134 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  ATMEL [ATMEL Corporation]
Página de inicio  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

ATMEGA161 Datasheet(HTML) 46 Page - ATMEL Corporation

Back Button ATMEGA161 Datasheet HTML 42Page - ATMEL Corporation ATMEGA161 Datasheet HTML 43Page - ATMEL Corporation ATMEGA161 Datasheet HTML 44Page - ATMEL Corporation ATMEGA161 Datasheet HTML 45Page - ATMEL Corporation ATMEGA161 Datasheet HTML 46Page - ATMEL Corporation ATMEGA161 Datasheet HTML 47Page - ATMEL Corporation ATMEGA161 Datasheet HTML 48Page - ATMEL Corporation ATMEGA161 Datasheet HTML 49Page - ATMEL Corporation ATMEGA161 Datasheet HTML 50Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 46 / 134 page
background image
ATmega161(L)
46
The Timer/Counter1 supports two Output Compare functions using the Output Compare Register 1 A and B – OCR1A and
OCR1B as the data sources to be compared to the Timer/Counter1 contents. The Output Compare functions include
optional clearing of the counter on compareA match, and actions on the Output Compare pins on both compare matches.
Timer/Counter1 can also be used as a 8-, 9- or 10-bit Pulse With Modulator. In this mode the counter and the
OCR1A/OCR1B registers serve as a dual glitch-free stand-alone PWM with centered pulses. Alternatively, the
Timer/Counter1 can be configured to operate at twice the speed in PWM mode, but without centered pulses. Refer to
page 50 for a detailed description on this function.
The Input Capture function of Timer/Counter1 provides a capture of the Timer/Counter1 contents to the Input Capture
Register – ICR1, triggered by an external event on the Input Capture Pin – ICP. The actual capture event settings are
defined by the Timer/Counter1 Control Register – TCCR1B. In addition, the Analog Comparator can be set to trigger the
Input Capture. Refer to the section, “The Analog Comparator”, for details on this. The ICP pin logic is shown in Figure 37.
Figure 37. ICP Pin Schematic Diagram
If the noise canceler function is enabled, the actual trigger condition for the capture event is monitored over 4 samples, and
all 4 must be equal to activate the capture flag.
Timer/Counter1 Control Register A – TCCR1A
• Bits 7,6 - COM1A1, COM1A0: Compare Output Mode1A, bits 1 and 0
The COM1A1 and COM1A0 control bits determine any output pin action following a compare match in Timer/Counter1.
Any output pin actions affect pin OC1A – Output CompareA pin 1. This is an alternative function to an I/O port, and the cor-
responding direction control bit must be set (one) to control an output pin. The control configuration is shown in Table 14.
• Bits 5,4 - COM1B1, COM1B0: Compare Output Mode1B, bits 1 and 0
The COM1B1 and COM1B0 control bits determine any output pin action following a compare match in Timer/Counter1.
Any output pin actions affect pin OC1B – Output CompareB. This is an alternative function to an I/O port, and the corre-
sponding direction control bit must be set (one) to control an output pin. The following control configuration is given:
X = A or B
In PWM mode, these bits have a different function. Refer to Table 18 for a detailed description.
Bit
7
6
5
4
3
2
1
0
$2F ($4F)
COM1A1
COM1A0
COM1B1
COM1B0
FOC1A
FOC1B
PWM11
PWM10
TCCR1A
Read/Write
R/W
R/W
R/W
R/W
R/w
R/W
R/W
R/W
Initial value
0
0
0
0
0
0
0
0
Table 14. Compare 1 Mode Select
COM1X1
COM1X0
Description
0
0
Timer/Counter1 disconnected from output pin OC1X
0
1
Toggle the OC1X output line.
1
0
Clear the OC1X output line (to zero).
1
1
Set the OC1X output line (to one).



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com