| 数据搜索系统,热门电子元器件搜索 |
|
AN2390 数据表(PDF) 37 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2390 数据表(HTML) 37 Page - STMicroelectronics |
|
37 / 42 page ![]() AN2390 37/42 Appendix A A.1 Source file organization The code is written in ‘C’ language. The Code Size is approximately 3 Kbytes. The source code consists of 3 source files and 3 header files as listed below: ● main.c: it consists of the main subroutine. ● BC_func.c: These files contain the definitions of all the functions used in the main subroutine. ● Interrupt_vector.c: it consists of the interrupt vector mapping files. ● BC_func.h: it consists of the declarations of all the global variables and the functions used in the main. ● ST7lib_config.h: It is the configuration file and also consists of the #define statements for assembly language instructions like ‘NOP’ etc. ● st7lites2_5_reg.h: It contains the declarations of the hardware registers. This modular organization makes it easier to perform minor modifications to the software. Table 10. Examples of minor software modifications If you want to change… …only modify… Voltage thresholds BC_Func.h PWM frequency State update frequency Timing thresholds I/O Configuration BC_InititalizePeripheral() in BC_Func.c State diagram BC_SlotMonitor() function in BC_Func.c State definitions Transition conditions Transition priority |
|
链接网址 |
| 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 |