Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN1809 Datasheet(PDF) 6 Page - STMicroelectronics

Part # AN1809
Description  STR71x ADC DRIVING AN ANALOG KEYBOARD
PDF  8 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1809 Datasheet(HTML) 6 Page - STMicroelectronics

  AN1809 Datasheet HTML 1Page - STMicroelectronics AN1809 Datasheet HTML 2Page - STMicroelectronics AN1809 Datasheet HTML 3Page - STMicroelectronics AN1809 Datasheet HTML 4Page - STMicroelectronics AN1809 Datasheet HTML 5Page - STMicroelectronics AN1809 Datasheet HTML 6Page - STMicroelectronics AN1809 Datasheet HTML 7Page - STMicroelectronics AN1809 Datasheet HTML 8Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 6 / 8 page
background image
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();



Html Pages

1 2 3 4 5 6 7 8


Datasheet Download

Go To PDF Page


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


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