Electronic Components Datasheet Search
  English  ▼

X  

ATMEGA161-8AI Datasheet(PDF) 71 Page - ATMEL Corporation

Part # ATMEGA161-8AI
Description  8-bit Microcontroller with 16K Bytes In-System Programmable Flash
PDF  134 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

ATMEGA161-8AI Datasheet(HTML) 71 Page - ATMEL Corporation

Back Button ATMEGA161-8AI Datasheet HTML 67Page - ATMEL Corporation ATMEGA161-8AI Datasheet HTML 68Page - ATMEL Corporation ATMEGA161-8AI Datasheet HTML 69Page - ATMEL Corporation ATMEGA161-8AI Datasheet HTML 70Page - ATMEL Corporation ATMEGA161-8AI Datasheet HTML 71Page - ATMEL Corporation ATMEGA161-8AI Datasheet HTML 72Page - ATMEL Corporation ATMEGA161-8AI Datasheet HTML 73Page - ATMEL Corporation ATMEGA161-8AI Datasheet HTML 74Page - ATMEL Corporation ATMEGA161-8AI Datasheet HTML 75Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 71 / 134 page
background image
ATmega161(L)
71
• Bit 3 - ACIE: Analog Comparator Interrupt Enable
When the ACIE bit is set (one) and the I-bit in the Status Register is set (one), the analog comparator interrupt is enabled.
When cleared (zero), the interrupt is disabled.
• Bit 2 - ACIC: Analog Comparator Input Capture Enable
When set (one), this bit enables the Input Capture function in Timer/Counter1 to be triggered by the analog comparator.
The comparator output is in this case directly connected to the Input Capture front-end logic, making the comparator utilize
the noise canceler and edge select features of the Timer/Counter1 Input Capture interrupt. When cleared (zero), no con-
nection between the analog comparator and the Input Capture function is given. To make the comparator trigger the
Timer/Counter1 Input Capture interrupt, the TICIE1 bit in the Timer Interrupt Mask Register (TIMSK) must be set (one).
• Bits 1,0 - ACIS1, ACIS0: Analog Comparator Interrupt Mode Select
These bits determine which comparator events that trigger the Analog Comparator interrupt. The different settings are
shown in Table 25.
Note:
When changing the ACIS1/ACIS0 bits, The Analog Comparator Interrupt must be disabled by clearing its Interrupt Enable bit in
the ACSR register. Otherwise an interrupt can occur when the bits are changed.
Caution: Using the SBI or CBI instruction on other bits than ACI in this register, will write a one back into ACI if it is read as
set, thus clearing the flag.
The Analog Comparator pins (PB2 and PB3) are also used as the TXD1 and RXD1 pins for UART1. Note that if the UART1
transceiver or receiver is enabled, the UART1 will override the settings in the DDRB register even if the Analog Comparator
is enabled. Therefore it is not recommended to use UART1 if the Analog Comparator is needed in the same application at
the same time. See “UARTs” on page 60 for more details.
Internal Voltage reference
ATmega161 features an internal voltage reference with a nominal voltage of 1.22V. This reference is used for Brown-out
Detection, and it can be used as an input to the Analog Comparator.
Voltage Reference Enable Signals and Start-up Time
The voltage reference has a start-up time that may influence on the way it should be used. The maximum start-up time is
TBD. To save power, the reference is on during the following situations only:
1.
When BOD is enabled (by programming the BODEN fuse).
2.
When the bandgap reference is connected to the Analog Comparator (by setting the AINBG bit in ACSR).
Thus, when BOD is not enabled, after setting the AINBG bit, the user must always allow the reference to start up before the
output from the Analog Comparator is used. The bandgap reference uses approx. 10 µA, and to reduce the power con-
sumption in power-down mode, the user can turn off the reference when entering this mode.
Table 25. ACIS1/ACIS0 Settings
ACIS1
ACIS0
Interrupt Mode
0
0
Comparator Interrupt on Output Toggle
01
Reserved
1
0
Comparator Interrupt on Falling Output Edge
1
1
Comparator Interrupt on Rising Output Edge



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 Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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