| 数据搜索系统,热门电子元器件搜索 |
|
AN979 数据表(PDF) 6 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN979 数据表(HTML) 6 Page - STMicroelectronics |
|
6 / 14 page ![]() 6/14 DRIVING AN ANALOG KEYBOARD WITH THE ST7 ADC 5 KEY DETECTION The ST7 is a digital microcontroller. It uses its ADC to measure Vkey. It is then coded in 10 bits. As the ADC is linear, the best decision is taken when the voltage levels of the keys follow an equal distribution between VDD and VSS. In our application, a 16-key keyboard is used. So, the best associated Vkey value of ‘key i’ is given by: The problem is that you cannot choose the perfect values for the resistors. In our application, the following resistor values were used (see Table 1): The digital values of the keys after conversion are given in Table 2. When a key is pressed and after conversion, a decision must be taken on its value. Upper and lower limits of the detection for each key must be defined. These values are the middle of two subsequent typical values, which gives the best noise margin between keys. The software uses the lower limits to make its decision. They are given in Table 2. Table 1. Example of resistor values for 16 keys Resistor Value ( Ω) Resistor Value ( Ω) Rup 1K R7 220 R0 68 R8 270 R1 75 R9 390 R2 82 R10 560 R3 100 R11 820 R4 120 R12 1K2 R5 150 R13 2K7 R6 180 R14 75 Vkey i = 16 (VDD - VSS) * i |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |