Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

ST9 Datasheet(PDF) 103 Page - STMicroelectronics

Part # ST9
Description  USER GUIDE
PDF  146 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST9 Datasheet(HTML) 103 Page - STMicroelectronics

Back Button ST9 Datasheet HTML 99Page - STMicroelectronics ST9 Datasheet HTML 100Page - STMicroelectronics ST9 Datasheet HTML 101Page - STMicroelectronics ST9 Datasheet HTML 102Page - STMicroelectronics ST9 Datasheet HTML 103Page - STMicroelectronics ST9 Datasheet HTML 104Page - STMicroelectronics ST9 Datasheet HTML 105Page - STMicroelectronics ST9 Datasheet HTML 106Page - STMicroelectronics ST9 Datasheet HTML 107Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 103 / 146 page
background image
103/146
ST9 USER GUIDE
4.8.1.3 Function Prototype Declarations
Each of these functions can be called by the main program <mainc.c> or other functions for
managing the ADC. They are defined in the <adc.c> file.
The <adc.h> file function prototypes are:
void INIT_ADC(void);
void START_ADC(void);
void STOP_ADC(void);
void INIT_ADC_IT(void);
void Enable_ADC_IT(void);
4.8.1.4 Defining the Functional Mode
To initialize the peripheral mode, you can activate the define directive by removing the <</* */
>>.
e.g.: In the <adc.h> file, you can select Continuous mode with:
#define continuous
/*#define single*/
4.8.2 Peripheral Function File
These files contain the peripheral management functions. The function prototypes are placed
in the header file as explained before.
The functional mode and the constants initialized in the header file modify the functions so that
they can be used directly by the application program.
Presentation of Peripheral Function Files:-
4.8.2.1 ADC File
The ADC function file is <adc.c> and contains 6 functions initialized for using channel 15 of the
ADC corresponding to I/O port P7.7. It performs 15 conversions and stores the converted
values in chart.. Moreover, the analog watchdog is enabled on this channel and stops the se-
ries of conversions if the value is not within the prescribed thresholds.
Table 4.
ADC.C Functions
Function
Description and Comments
void INIT_ADC(void);
Choice between Continuous and Single-shot modes. Possibility of initializ-
ing the analog watchdog on channel A or/and B.
void START_ADC(void);
Choice between three triggers to start the conversions: internal, external
or software.
void STOP_ADC(void);
This routine stops the ADC after a series of conversions. Afterwards, all
power consuming logic is disabled (low power idle mode).



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   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