| Electronic Components Datasheet Search |
|
AD7879 Datasheet(PDF) 16 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD7879 Datasheet(HTML) 16 Page - Analog Devices |
|
16 / 36 page ![]() AD7879 Rev. 0 | Page 16 of 36 MEDIAN AND AVERAGING FILTERS As explained in the Touch Screen Principles section, touch screens are composed of two resistive layers, normally placed over an LCD screen. Because these layers are in close proximity to the LCD screen, noise can be coupled from the screen onto these resistive layers, causing errors in the touch screen posi- tional measurements. The AD7879 contains a filtering block to process the data and discard the spurious noise before sending the information to the host. The goal of this block is not just the suppression of noise; the on-chip filtering also remarkably reduces the host processing loading. The processing function consists of two filters that are applied to the converted results: the median filter and the averaging filter. The median filter suppresses the isolated out-of-range noise and sets the number of measurements to be taken. These measure- ments are arranged in a temporary array, where the first value is the smallest measurement and the last value is the largest measurement. Bit 6 and Bit 5 in Control Register 2 (M1, M0) set the window of the median filter, and therefore, the number of measurements taken. Table 6. Median Filter Size M1 M0 Function 0 0 Median filter does not operate 0 1 4 measurements 1 0 8 measurements 1 1 16 measurements The averaging filter size determines the number of values to average. Bit 8 and Bit 7 in Control Register 2 (A1, A0) allow the average of 2, 4, 8, or 16 samples. Only the final averaged result is written into the results register. Table 7. Averaging filter Size A1 A0 Function 0 0 Average of 2 middle samples 0 1 Average of 4 middle samples 1 0 Average of 8 middle samples 1 1 Average of 16 samples When both filter values are 00, only one measurement is transferred to the register map. The number chosen with the M1 and M0 settings must be equal to or larger than the number chosen with the A1 and A0 settings. If both settings select the same number, the median filter is switched off. Table 8. Median Averaging Filters (MAVF) Settings Function M = A Median filter does not operate; output is the average of A converted results M < A Not possible because the median filter size is always bigger than the averaging window size M > A Output is the average of the middle A values from the array of M measurements Example M1, M0 = 11, A1, A0 = 10; in this example the median filter has a window size of 16. This means that 16 measurements are taken and arranged in descending order in a temporary array. The averaging window size in this case is 8. The output is an average of the middle 8 values of the 16 measurements taken with the median filter. AVERAGING FILTER MEDIAN FILTER 12-BIT SAR ADC 6 2 13 4 16 5 15 10 9 3 11 8 1 12 14 7 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 M = 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 A = 8 CONVERTED RESULTS 16 MEASUREMENTS ARRANGED AVERAGE OF MIDDLE 8 VALUES Figure 27. Median and Averaging Filter Example |
|
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 |
| 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 |