| Motore di ricerca datesheet componenti elettronici |
|
AN2288 Scheda tecnica(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2288 Scheda tecnica(HTML) 18 Page - STMicroelectronics |
|
18 / 29 page ![]() Software routines AN2288 18/29 5 Software routines This section of the application note describe each function contained in the firmware. A general description and flow diagram are provided for each routine. 5.1 Initialization routine The two routines are used for initialization. The ASM_init routine is used to initialize the global variables, which is done using the _stext routine, the auto startup routine. After this routine the init routine is called which initializes different bool variables, portA register, ADC bits and SPI. Figure 15. Initialization routine 5.2 Main routine The main routine is called after ASM_init (_stext), which called different functions. Init routine Initialize 18-bool variables; Initialize portA; Call a delay routine to wait for 5V supply to reach to 5V; Initialize ADC: Amp not selected, calibration OFF, slow bit = 0 Initialize SPI: software slave is used, SPI freq = Fcpu/4, SPI inter- rupt enabled, read from memory array ASM_init Initialize global variables |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |