поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AT89LP428 датащи(PDF) 100 Page - ATMEL Corporation

номер детали AT89LP428
подробное описание детали  8-bit Microcontroller with 4K/8K Bytes In-System Programmable Flash
PDF  149 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  ATMEL [ATMEL Corporation]
домашняя страница  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT89LP428 датащи(HTML) 100 Page - ATMEL Corporation

Back Button AT89LP428 Datasheet HTML 96Page - ATMEL Corporation AT89LP428 Datasheet HTML 97Page - ATMEL Corporation AT89LP428 Datasheet HTML 98Page - ATMEL Corporation AT89LP428 Datasheet HTML 99Page - ATMEL Corporation AT89LP428 Datasheet HTML 100Page - ATMEL Corporation AT89LP428 Datasheet HTML 101Page - ATMEL Corporation AT89LP428 Datasheet HTML 102Page - ATMEL Corporation AT89LP428 Datasheet HTML 103Page - ATMEL Corporation AT89LP428 Datasheet HTML 104Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 100 / 149 page
background image
100
3654A–MICRO–8/09
AT89LP428/828
18.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.
18.2
Internal Reference Voltage
The negative input terminal of each comparator may be connected to an internal voltage refer-
ence by changing the RFB
1-0 or RFA1-0 bits in AREF. The internal reference voltage, VAREF, is
set to 1.25V ±5%. The voltage reference also provides two additional voltage levels approxi-
mately 125 mV above and below V
AREF. These levels may be used to configure the comparators
as an internally referenced window comparator with up to four input channels. Changing the ref-
erence input must follow the same routine used for changing the positive input as described in
the “Analog Input Muxes” section.
18.3
Comparator Interrupt Debouncing
The comparator output is normally sampled every clock cycle. The conditions on the analog
inputs may be such that the comparator output will toggle excessively. This is especially true if
applying slow moving analog inputs. Three debouncing modes are provided to filter out this
noise for edge-triggered interrupts. In debouncing mode, the comparator uses Timer 1 to modu-
late its sampling time when CxC
1-0 = 00B. When a relevant transition occurs, the comparator
waits until two Timer 1 overflows have occurred before resampling the output. If the new sample
agrees with the expected value, CFx is set. Otherwise, the event is ignored. The filter may be
tuned by adjusting the time-out period of Timer 1. Because Timer 1 is running free, the
debouncer must wait for two overflows to guarantee that the sampling delay is at least 1 time-out
period. Therefore, after the initial edge event, the interrupt may occur between 1 and 2 time-out
periods later. See Figure 18-2. When the comparator clock is provided by one of the timer over-
flows, i.e. CxC
1-0 = 00B, any change in the comparator output must be valid after 4 samples to
be accepted as an edge event.
Figure 18-2. Negative Edge with Debouncing Example
Comparator Out
Timer 1 Overflow
CFx
Start
Start
Compare
(rejected)
Compare
(accepted)



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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