| Electronic Components Datasheet Search |
|
AN1809 Datasheet(PDF) 6 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1809 Datasheet(HTML) 6 Page - STMicroelectronics |
|
6 / 8 page ![]() 6/8 STR71x ADC Driving an Analog Keyboard Figure 2. Main program flowchart using ADC software library The key recognition routine is shown in the next flowchart with: max[key]: Higher voltage of the range corresponding to the typical voltage of the key. min[key]: Lower voltage of the range corresponding to the typical voltage of the key. val [key]: Typical voltage. END Configure the ADC input AINn as High impedance Analog input Start the Converson Configure the prescaler Select the channel Select single channel mode Get conversion result Stop the converter DA[n]=1? yes no ADC12_ConversionStart(); ADC12_ChannelSelect(ADC12_CHANNEL1); while (ADC12_FlagStatus (ADC12_DA1) == RESET); { ... ... } ADC12_PrescalerConfig(500); ADC12_ModeConfig (ADC12_SINGLE); GPIO_Config (GPIO1, 0x0002, GPIO_HI_AIN_TRI); Con_Res = ADC12_ConversionValue(ADC12_CHANNEL1); ADC12_ConversionStop(); Recognize the Key //See the key recognition flowchart Calibrate the conversion result //See the key recognition flowchart BEGIN yes no Initialize the ADC Registers ADC12_Init(); |
|
|
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 |