Electronic Components Datasheet Search
  English  ▼

X  

AT89LP6440 Datasheet(PDF) 127 Page - ATMEL Corporation

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

AT89LP6440 Datasheet(HTML) 127 Page - ATMEL Corporation

Back Button AT89LP6440 Datasheet HTML 123Page - ATMEL Corporation AT89LP6440 Datasheet HTML 124Page - ATMEL Corporation AT89LP6440 Datasheet HTML 125Page - ATMEL Corporation AT89LP6440 Datasheet HTML 126Page - ATMEL Corporation AT89LP6440 Datasheet HTML 127Page - ATMEL Corporation AT89LP6440 Datasheet HTML 128Page - ATMEL Corporation AT89LP6440 Datasheet HTML 129Page - ATMEL Corporation AT89LP6440 Datasheet HTML 130Page - ATMEL Corporation AT89LP6440 Datasheet HTML 131Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 127 / 194 page
background image
127
3706A–MICRO–9/09
AT89LP6440 - Preliminary
also set the CONA (ACSRA.5) or CONB (ACSRB.5) bits to connect the comparator inputs
before using a comparator. When a comparator is first enabled, the comparator output and inter-
rupt flag are not guaranteed to be stable for 10 µs. The corresponding comparator interrupt
should not be enabled during that time, and the comparator interrupt flag must be cleared before
the interrupt is enabled in order to prevent an immediate interrupt service. Before enabling the
comparators, the analog inputs should be tristated by putting P2.4, P2.5, P2.6 and P2.7 into
input-only mode. See “Port Analog Functions” on page 47.
Each comparator may be configured to cause an interrupt under a variety of output value condi-
tions by setting the CMx
2-0 bits in ACSRx. The comparator interrupt flags CFx in ACSRx are set
whenever the comparator outputs match the conditions specified by CMx
2-0. The flags may be
polled by software or may be used to generate an interrupt and must be cleared by software.
Both comparators share a common interrupt vector. If both comparators are enabled, the user
needs to read the flags after entering the interrupt service routine to determine which compara-
tor caused the interrupt.
The CAC
1-0 and CBC1-0 bits in AREF control when the comparator interrupts sample the com-
parator outputs. Normally the outputs are sampled every clock system; however, the outputs
may also be sampled whenever Timer 0, Timer 1 or Timer 2 overflows. These settings allow the
comparators to be sampled at a specific time or to reduce the number of comparator events
seen by the system when using level sensitive modes. The comparators will continue to function
during Idle mode. If this is not the desired behavior, the comparators should be disabled before
entering Idle. The comparators are always disabled during Power-down mode.
19.1
Analog Input Muxes
The positive input terminal of each comparator may be connected to any of the four analog input
pins by changing the CSA
1-0 or CSB1-0 bits in ACSRA and ACSRB. When changing the analog
input pins, the comparator must be disconnected from its inputs by clearing the CONA or CONB
bits. The connection is restored by setting the bits again after the muxes have been modified.
CLR
EC
; Disable comparator interrupts
ANL
ACSRA, #0DFh
; Clear CONA to disconnect COMP A
...
; Modify CSA or RFA bits
ORL
ACSRA, #020h
; Set CONA to connect COMP A
ANL
ACSRA, #0EFh
; Clear any spurious interrupt
SETB
EC
; Re-enable comparator interrupts
The corresponding comparator interrupt should not be enabled while the inputs are being
changed, and the comparator interrupt flag must be cleared before the interrupt is re-enabled in
order to prevent an unintentional interrupt request.
The equivalent model for the analog input circuitry is illustrated in Figure 20-3. An analog source
applied to AINn is subjected to the pin capacitance and input leakage of that pin, regardless of
whether that channel is selected as input to the comparator. When the channel is selected, the
source must drive the input capacitance of the comparator through the series resistance (com-
bined resistance in the input path).



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