| Electronic Components Datasheet Search |
|
AN979 Datasheet(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN979 Datasheet(HTML) 8 Page - STMicroelectronics |
|
8 / 14 page ![]() 8/14 DRIVING AN ANALOG KEYBOARD WITH THE ST7 ADC 6 DRIVING AN ANALOG KEYBOARD WITH THE ST7 ADC The complete software is provided in an attached zip file (in assembly & C using ST7 software library version 1.1) to this application note. It is only an example. It is up to the user to adapt it to the application. 6.1 GENERAL DESCRIPTION A 16-key keyboard is connected to the ST72F324 through the AIN0 pin on Port D. A LED is connected to an output pin (PC0) to indicate to the user that a key is detected. Figure 5. Application circuitry The software uses a polling strategy. It makes conversions continuously (no wake-up process). First the software initializes the I/Os and the ADC. When a conversion is done, the software decides if a key was pressed or not. If not, it waits before analyzing the result of a new conversion. If a key is pressed, it compares it with the former key to know if the key is stabilized. Then, a LED is switched on. ADC VDD LED VSS key 0 key 15 VDD VSS analog input output ST7 Rup R0 R14 |
|
|
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 |