| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN2288 bảng dữ liệu(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2288 bảng dữ liệu(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 |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |