| 전자부품 데이터시트 검색엔진 |
|
AN2288 데이터시트(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2288 데이터시트(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 |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |