首页下载资源硬件开发STM32C8T6驱动TI-LDC1614芯片

ZIPSTM32C8T6驱动TI-LDC1614芯片

weixin_476962352.93MB需要积分:1

资源文件列表:

STM32F103C8T6驱动LDC1614测试程序.zip 大约有144个文件
  1. CORE/
  2. CORE/core_cm3.c 16.87KB
  3. CORE/core_cm3.h 83.71KB
  4. CORE/startup_stm32f10x_hd.s 15.14KB
  5. CORE/startup_stm32f10x_md.s 12.47KB
  6. HARDWARE/
  7. HARDWARE/LDC1614/
  8. HARDWARE/LDC1614/LDC1614.c 9.62KB
  9. HARDWARE/LDC1614/LDC1614.h 2.98KB
  10. keilkilll.bat 399B
  11. OBJ/
  12. OBJ/core_cm3.crf 3.85KB
  13. OBJ/core_cm3.d 104B
  14. OBJ/core_cm3.o 11.08KB
  15. OBJ/delay.crf 340.18KB
  16. OBJ/delay.d 1.63KB
  17. OBJ/delay.o 377.08KB
  18. OBJ/ExtDll.iex 19B
  19. OBJ/ldc1614.crf 346.17KB
  20. OBJ/ldc1614.d 1.75KB
  21. OBJ/ldc1614.o 398.31KB
  22. OBJ/LDC1614TEST.axf 301.41KB
  23. OBJ/LDC1614TEST.build_log.htm 1.78KB
  24. OBJ/LDC1614TEST.hex 28.26KB
  25. OBJ/LDC1614TEST.htm 57.77KB
  26. OBJ/LDC1614TEST.lnp 612B
  27. OBJ/LDC1614TEST.sct 494B
  28. OBJ/LDC1614TEST_Target 1.dep 27.82KB
  29. OBJ/LED.hex 51.27KB
  30. OBJ/main.crf 347.32KB
  31. OBJ/main.d 1.72KB
  32. OBJ/main.o 381.7KB
  33. OBJ/misc.crf 339.11KB
  34. OBJ/misc.d 1.58KB
  35. OBJ/misc.o 376.52KB
  36. OBJ/startup_stm32f10x_md.d 63B
  37. OBJ/startup_stm32f10x_md.o 5.91KB
  38. OBJ/stm32f10x_gpio.crf 342.52KB
  39. OBJ/stm32f10x_gpio.d 1.9KB
  40. OBJ/stm32f10x_gpio.o 397.14KB
  41. OBJ/stm32f10x_it.crf 338.52KB
  42. OBJ/stm32f10x_it.d 1.76KB
  43. OBJ/stm32f10x_it.o 380.93KB
  44. OBJ/stm32f10x_rcc.crf 346.02KB
  45. OBJ/stm32f10x_rcc.d 1.87KB
  46. OBJ/stm32f10x_rcc.o 417.25KB
  47. OBJ/stm32f10x_spi.crf 342.99KB
  48. OBJ/stm32f10x_spi.d 1.87KB
  49. OBJ/stm32f10x_spi.o 403.76KB
  50. OBJ/stm32f10x_tim.crf 360.68KB
  51. OBJ/stm32f10x_tim.d 1.87KB
  52. OBJ/stm32f10x_tim.o 504.88KB
  53. OBJ/stm32f10x_usart.crf 344.59KB
  54. OBJ/stm32f10x_usart.d 1.93KB
  55. OBJ/stm32f10x_usart.o 413.21KB
  56. OBJ/sys.crf 339.4KB
  57. OBJ/sys.d 1.53KB
  58. OBJ/sys.o 377.98KB
  59. OBJ/system_stm32f10x.crf 340.2KB
  60. OBJ/system_stm32f10x.d 1.85KB
  61. OBJ/system_stm32f10x.o 375.5KB
  62. OBJ/usart.crf 344.99KB
  63. OBJ/usart.d 1.69KB
  64. OBJ/usart.o 381.39KB
  65. STM32F10x_FWLib/
  66. STM32F10x_FWLib/inc/
  67. STM32F10x_FWLib/inc/misc.h 8.77KB
  68. STM32F10x_FWLib/inc/stm32f10x_adc.h 21.18KB
  69. STM32F10x_FWLib/inc/stm32f10x_bkp.h 7.38KB
  70. STM32F10x_FWLib/inc/stm32f10x_can.h 26.91KB
  71. STM32F10x_FWLib/inc/stm32f10x_cec.h 6.42KB
  72. STM32F10x_FWLib/inc/stm32f10x_crc.h 2.11KB
  73. STM32F10x_FWLib/inc/stm32f10x_dac.h 14.88KB
  74. STM32F10x_FWLib/inc/stm32f10x_dbgmcu.h 3.73KB
  75. STM32F10x_FWLib/inc/stm32f10x_dma.h 20.27KB
  76. STM32F10x_FWLib/inc/stm32f10x_exti.h 6.66KB
  77. STM32F10x_FWLib/inc/stm32f10x_flash.h 24.85KB
  78. STM32F10x_FWLib/inc/stm32f10x_fsmc.h 26.38KB
  79. STM32F10x_FWLib/inc/stm32f10x_gpio.h 19.7KB
  80. STM32F10x_FWLib/inc/stm32f10x_i2c.h 29.33KB
  81. STM32F10x_FWLib/inc/stm32f10x_iwdg.h 3.74KB
  82. STM32F10x_FWLib/inc/stm32f10x_pwr.h 4.28KB
  83. STM32F10x_FWLib/inc/stm32f10x_rcc.h 29.74KB
  84. STM32F10x_FWLib/inc/stm32f10x_rtc.h 3.77KB
  85. STM32F10x_FWLib/inc/stm32f10x_sdio.h 21.35KB
  86. STM32F10x_FWLib/inc/stm32f10x_spi.h 17.31KB
  87. STM32F10x_FWLib/inc/stm32f10x_tim.h 51.2KB
  88. STM32F10x_FWLib/inc/stm32f10x_usart.h 16.16KB
  89. STM32F10x_FWLib/inc/stm32f10x_wwdg.h 2.9KB
  90. STM32F10x_FWLib/src/
  91. STM32F10x_FWLib/src/misc.c 6.88KB
  92. STM32F10x_FWLib/src/stm32f10x_adc.c 46.09KB
  93. STM32F10x_FWLib/src/stm32f10x_bkp.c 8.26KB
  94. STM32F10x_FWLib/src/stm32f10x_can.c 44.05KB
  95. STM32F10x_FWLib/src/stm32f10x_cec.c 11.38KB
  96. STM32F10x_FWLib/src/stm32f10x_crc.c 3.27KB
  97. STM32F10x_FWLib/src/stm32f10x_dac.c 18.64KB
  98. STM32F10x_FWLib/src/stm32f10x_dbgmcu.c 5.03KB
  99. STM32F10x_FWLib/src/stm32f10x_dma.c 28.91KB
  100. STM32F10x_FWLib/src/stm32f10x_exti.c 6.8KB
  101. STM32F10x_FWLib/src/stm32f10x_flash.c 61.08KB
  102. STM32F10x_FWLib/src/stm32f10x_fsmc.c 34.65KB
  103. STM32F10x_FWLib/src/stm32f10x_gpio.c 22.68KB
  104. STM32F10x_FWLib/src/stm32f10x_i2c.c 44.71KB
  105. STM32F10x_FWLib/src/stm32f10x_iwdg.c 4.8KB
  106. STM32F10x_FWLib/src/stm32f10x_pwr.c 8.55KB
  107. STM32F10x_FWLib/src/stm32f10x_rcc.c 50.07KB
  108. STM32F10x_FWLib/src/stm32f10x_rtc.c 8.4KB
  109. STM32F10x_FWLib/src/stm32f10x_sdio.c 28.25KB
  110. STM32F10x_FWLib/src/stm32f10x_spi.c 29.52KB
  111. STM32F10x_FWLib/src/stm32f10x_tim.c 106.6KB
  112. STM32F10x_FWLib/src/stm32f10x_usart.c 37.41KB
  113. STM32F10x_FWLib/src/stm32f10x_wwdg.c 5.6KB
  114. SYSTEM/
  115. SYSTEM/delay/
  116. SYSTEM/delay/delay.c 7.74KB
  117. SYSTEM/delay/delay.h 1.94KB
  118. SYSTEM/sys/
  119. SYSTEM/sys/sys.c 573B
  120. SYSTEM/sys/sys.h 2.77KB
  121. SYSTEM/usart/
  122. SYSTEM/usart/usart.c 3.75KB
  123. SYSTEM/usart/usart.h 1.25KB
  124. USER/
  125. USER/DebugConfig/
  126. USER/DebugConfig/Target_1_STM32F103C8_1.0.0.dbgconf 2.35KB
  127. USER/DebugConfig/Target_1_STM32F103RB_1.0.0.dbgconf 6.79KB
  128. USER/DebugConfig/Target_1_STM32F103RC_1.0.0.dbgconf 6.79KB
  129. USER/DebugConfig/Target_1_STM32F103ZE.dbgconf 6.79KB
  130. USER/DebugConfig/Target_1_STM32F103ZE_1.0.0.dbgconf 6.79KB
  131. USER/EventRecorderStub.scvd 339B
  132. USER/JLinkSettings.ini 578B
  133. USER/LDC1614TEST.map 119.34KB
  134. USER/LDC1614TEST.uvguix.LCX 179.32KB
  135. USER/LDC1614TEST.uvoptx 12.5KB
  136. USER/LDC1614TEST.uvprojx 16.92KB
  137. USER/main.c 2.13KB
  138. USER/startup_stm32f10x_md.lst 40.86KB
  139. USER/stm32f10x.h 619.08KB
  140. USER/stm32f10x_conf.h 3.16KB
  141. USER/stm32f10x_it.c 2.36KB
  142. USER/stm32f10x_it.h 1.94KB
  143. USER/system_stm32f10x.c 35.72KB
  144. USER/system_stm32f10x.h 2.04KB

资源介绍:

实测跑通,欢迎交流。
/** ****************************************************************************** * @file stm32f10x_tim.c * @author MCD Application Team * @version V3.5.0 * @date 11-March-2011 * @brief This file provides all the TIM firmware functions. ****************************************************************************** * @attention * * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. * *

© COPYRIGHT 2011 STMicroelectronics

****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f10x_tim.h" #include "stm32f10x_rcc.h" /** @addtogroup STM32F10x_StdPeriph_Driver * @{ */ /** @defgroup TIM * @brief TIM driver modules * @{ */ /** @defgroup TIM_Private_TypesDefinitions * @{ */ /** * @} */ /** @defgroup TIM_Private_Defines * @{ */ /* ---------------------- TIM registers bit mask ------------------------ */ #define SMCR_ETR_Mask ((uint16_t)0x00FF) #define CCMR_Offset ((uint16_t)0x0018) #define CCER_CCE_Set ((uint16_t)0x0001) #define CCER_CCNE_Set ((uint16_t)0x0004) /** * @} */ /** @defgroup TIM_Private_Macros * @{ */ /** * @} */ /** @defgroup TIM_Private_Variables * @{ */ /** * @} */ /** @defgroup TIM_Private_FunctionPrototypes * @{ */ static void TI1_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter); static void TI2_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter); static void TI3_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter); static void TI4_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter); /** * @} */ /** @defgroup TIM_Private_Macros * @{ */ /** * @} */ /** @defgroup TIM_Private_Variables * @{ */ /** * @} */ /** @defgroup TIM_Private_FunctionPrototypes * @{ */ /** * @} */ /** @defgroup TIM_Private_Functions * @{ */ /** * @brief Deinitializes the TIMx peripheral registers to their default reset values. * @param TIMx: where x can be 1 to 17 to select the TIM peripheral. * @retval None */ void TIM_DeInit(TIM_TypeDef* TIMx) { /* Check the parameters */ assert_param(IS_TIM_ALL_PERIPH(TIMx)); if (TIMx == TIM1) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM1, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM1, DISABLE); } else if (TIMx == TIM2) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM2, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM2, DISABLE); } else if (TIMx == TIM3) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM3, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM3, DISABLE); } else if (TIMx == TIM4) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM4, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM4, DISABLE); } else if (TIMx == TIM5) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM5, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM5, DISABLE); } else if (TIMx == TIM6) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM6, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM6, DISABLE); } else if (TIMx == TIM7) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM7, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM7, DISABLE); } else if (TIMx == TIM8) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM8, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM8, DISABLE); } else if (TIMx == TIM9) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM9, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM9, DISABLE); } else if (TIMx == TIM10) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM10, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM10, DISABLE); } else if (TIMx == TIM11) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM11, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM11, DISABLE); } else if (TIMx == TIM12) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM12, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM12, DISABLE); } else if (TIMx == TIM13) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM13, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM13, DISABLE); } else if (TIMx == TIM14) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM14, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM14, DISABLE); } else if (TIMx == TIM15) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM15, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM15, DISABLE); } else if (TIMx == TIM16) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM16, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM16, DISABLE); } else { if (TIMx == TIM17) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM17, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM17, DISABLE); } } } /** * @brief Initializes the TIMx Time Base Unit peripheral according to * the specified parameters in the TIM_TimeBaseInitStruct. * @param TIMx: where x can be 1 to 17 to select the TIM peripheral. * @param TIM_TimeBaseInitStruct: pointer to a TIM_TimeBaseInitTypeDef * structure that contains the configuration information for the * specified TIM peripheral. * @retval None */ void TIM_TimeBaseInit(TIM_TypeDef* TIMx, TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct) { uint16_t tmpcr1 = 0; /* Check the parameters */ assert_param(IS_TIM_ALL_PERIPH(TIMx)); assert_param(IS_TIM_COUNTER_MODE(TIM_TimeBaseInitStruct->TIM_CounterMode)); assert_param(IS_TIM_CKD_DIV(TIM_TimeBaseInitStruct->TIM_ClockDivision)); tmpcr1 = TIMx->CR1; if((TIMx == TIM1) || (TIMx == TIM8)|| (TIMx == TIM2) || (TIMx == TIM3)|| (TIMx == TIM4) || (TIMx == TIM5)) { /* Select the Counter Mode */ tmpcr1 &= (uint16_t)(~((uint16_t)(TIM_CR1_DIR | TIM_CR1_CMS))); tmpcr1 |= (uint32_t)TIM_TimeBaseInitStruct->TIM_CounterMode; } if((TIMx != TIM6) && (TIMx != TIM7)) { /* Set the clock division */ tmpcr1 &= (uint16_t)(~((uint16_t)TIM_CR1_CKD)); tmpcr1 |= (uint32_t)TIM_TimeBaseInitStruct->TIM_ClockDivision; } TIMx->CR1 = tmpcr1; /* Set the Autoreload value */ TIMx->ARR = TIM_TimeBaseInitStruct->TIM_Period ; /* Set the Prescaler value */ TIMx->PSC = TIM_TimeBaseInitStruct->TIM_Prescaler; if ((TIMx == TIM1) || (TIMx == TIM8)|| (TIMx == TIM15)|| (TIMx == TIM16) || (TIMx == TIM17)) { /* Set the Repetition Counter value */ TIMx->RCR = TIM_TimeBaseInitStruct->TIM_RepetitionCounter; } /* Generate an update event to reload the Prescaler and the Repetition counter values immediately */ TIMx->EGR = TIM_PSCReloadMode_Immediate; } /** * @brief Initializes the TIMx Channel1 according to the specified * parameters in the TIM_OCInitStruct. * @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. * @param TIM_OCInitStru
100+评论
captcha