91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

stm32,TMC260步進電機驅動程序,基于串口的上位機與驅動板的通信代碼。驅動板的原理圖,PCB見于本人的其他資源。

資源截圖

代碼片段和文件信息

#include?“delay.h“
static?int8_t??fac_us=0;//us
static?int16_t?fac_ms=0;//ms
/**********************************************/
/*?函數功能;?delay?初始化?????????????????????*/
/*?入口參數:無???????????????????????????????*/
/**********************************************/
void?delay_init() ?
{
SysTick_CLKSourceConfig(SysTick_CLKSource_HCLK_Div8);//選擇外部時鐘??HCLK/8
fac_us=SystemCoreClock/8000000; //為系統時鐘的1/8??
fac_ms=(int16_t)fac_us*1000;//每個ms需要的systick時鐘數???
}

/**********************************************/
/*?函數功能;?延時Nus??????????????????????????*/
/*?入口參數:?時間?????????????????????????????*/
/**********************************************/
void?delay_us(int32_t?nus)
{
int32_t?temp; ???? ?
SysTick->LOAD=nus*fac_us;?//時間加載 ?? ?
SysTick->VAL=0x00;????????//清空計數器
SysTick-

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1760??2018-02-28?17:27??新電路板測試程序\Driver\delay.c

?????文件????????154??2018-02-28?17:27??新電路板測試程序\Driver\delay.h

?????文件???????2524??2016-03-16?15:14??新電路板測試程序\Driver\device.c

?????文件???????3700??2016-03-16?22:16??新電路板測試程序\Driver\device.h

?????文件???????3116??2015-12-15?21:00??新電路板測試程序\Driver\drive.h

?????文件???????2553??2018-02-26?15:14??新電路板測試程序\Driver\Init.c

?????文件????????498??2018-02-26?14:39??新電路板測試程序\Driver\Init.h

?????文件????????256??2018-03-01?00:01??新電路板測試程序\Driver\Spi_TMC260.c

?????文件????????107??2018-03-01?00:01??新電路板測試程序\Driver\Spi_TMC260.h

?????文件?????????33??2018-02-28?18:06??新電路板測試程序\Driver\system.c

?????文件???????2998??2018-02-28?18:06??新電路板測試程序\Driver\system.h

?????文件???????9850??2018-04-05?18:27??新電路板測試程序\Driver\time.c

?????文件????????664??2018-03-28?22:51??新電路板測試程序\Driver\time.h

?????文件??????12925??2018-03-28?22:20??新電路板測試程序\Driver\TMC260.c

?????文件???????2637??2018-03-28?20:56??新電路板測試程序\Driver\TMC260.h

?????文件??????16769??2018-02-27?20:06??新電路板測試程序\Driver\Tmc262.c

?????文件???????3478??2018-04-04?16:46??新電路板測試程序\Driver\Usart.c

?????文件????????411??2018-03-05?11:12??新電路板測試程序\Driver\Usart.h

?????文件??????19515??2013-10-11?21:58??新電路板測試程序\Lib\inc\stm32f0xx_adc.h

?????文件??????27297??2014-01-16?15:54??新電路板測試程序\Lib\inc\stm32f0xx_can.h

?????文件??????12354??2013-10-11?21:58??新電路板測試程序\Lib\inc\stm32f0xx_cec.h

?????文件??????10386??2013-10-11?21:58??新電路板測試程序\Lib\inc\stm32f0xx_comp.h

?????文件???????3681??2013-10-11?21:58??新電路板測試程序\Lib\inc\stm32f0xx_crc.h

?????文件???????7765??2014-01-16?15:54??新電路板測試程序\Lib\inc\stm32f0xx_crs.h

?????文件???????7139??2013-10-11?21:58??新電路板測試程序\Lib\inc\stm32f0xx_dac.h

?????文件???????3893??2013-10-11?21:58??新電路板測試程序\Lib\inc\stm32f0xx_dbgmcu.h

?????文件??????14208??2013-10-11?21:58??新電路板測試程序\Lib\inc\stm32f0xx_dma.h

?????文件???????8618??2013-10-11?21:58??新電路板測試程序\Lib\inc\stm32f0xx_exti.h

?????文件??????12418??2013-10-11?21:58??新電路板測試程序\Lib\inc\stm32f0xx_flash.h

?????文件??????13310??2013-10-11?21:58??新電路板測試程序\Lib\inc\stm32f0xx_gpio.h

............此處省略64個文件信息

評論

共有 條評論