当前位置: 首页 > news >正文

做百度网站优化多少钱发布软文广告

做百度网站优化多少钱,发布软文广告,上海地区做旧物回收的网站,电子商务网站建设 市场分析Cubemx配置 打开cubemx。 前面的配置与前文一样,这里主要配置基本定时器的定时功能。 1.在Timer中点击TIM6,勾选activated。配置Parameter Settings中的预分频器(PSC)和计数器(auto-reload Register) 补…

Cubemx配置

打开cubemx。

前面的配置与前文一样,这里主要配置基本定时器的定时功能。

1.在Timer中点击TIM6,勾选activated。配置Parameter Settings中的预分频器(PSC)和计数器(auto-reload Register)

补充:

定时器工作频率=内部总线频率/PSC+1

定时频率=定时器工作频率/Period+1  =内部总线频率/((PSC+1)*(Period+1 ))

示例:总线频率80MHz,预分频80-1,重装载1000-1

定时频率= 80M/80*1000=1khz 周期为1ms

2.配置PSC为80-1,计数器为1000-1。

3.将自动重装载(auto-reload )设置为使能(Enable)。

4.点击NVIC Settings,勾选中断使能。

点击GENERATE CODE.  

配置keli

将main.c中的tim.h添加到my_main.h文件中。

1.使能TIM6中断

HAL_TIM_Base_Start_IT(&htim6)

用于启动定时器基本功能并且开启定时器中断的函数。其主要目的是让指定的定时器开始按照预先配置好的参数(比如计数模式、预分频值、自动重装载值等)进行计数工作,并且当定时器计数达到相应条件(例如溢出等情况)时,会触发对应的定时器中断,进而可以在中断服务函数中执行相应的处理代码。

2.编写中断回调函数

点击stm32g4××_hal_tim.h,在大概2529行的位置找到中断回调函数进行复制。

void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim);

粘贴到my_main.c,用于配置定时器中断。

示例:利用按键函数测试定时中断是否有效。

点开cubemx,在上面配置的基础上,点击System Core中的NVIC,将Time Base优先级设置为4,TIM6 global interrupt优先级设置为5。点击GENERATE CODE.  

my_main.c

#include "my_main.h"
uint8_t led_sta=0x10;
char text[30];
void LED_Disp(uint8_t dsLED)
{HAL_GPIO_WritePin(GPIOC,GPIO_PIN_All,GPIO_PIN_SET);//所有LED熄灭(l小写)HAL_GPIO_WritePin(GPIOC,dsLED<<8,GPIO_PIN_RESET);//左移8位:控制C8-15引脚,值为1的点亮HAL_GPIO_WritePin(GPIOD,GPIO_PIN_2,GPIO_PIN_SET);//开锁存器HAL_GPIO_WritePin(GPIOD,GPIO_PIN_2,GPIO_PIN_RESET);//关锁存器
}
void setup()
{HAL_TIM_Base_Start_IT(&htim6);LED_Disp(0x00);//关掉所有LEDLCD_Init();//LCD初始化LCD_Clear(Black);LCD_SetBackColor(Black);LCD_SetTextColor(White);
}void loop()
{/*     LCD演示     */sprintf(text,"    number:%x  ",led_sta);LCD_DisplayStringLine(Line8,(uint8_t *)text);//局部刷新LCD_SetBackColor(Yellow);sprintf(text,"    T:%d                ",30);LCD_DisplayStringLine(Line5,(uint8_t *)text);//局部刷新LCD_SetBackColor(Black);sprintf(text,"    X:A01  ");LCD_DisplayStringLine(Line6,(uint8_t *)text);//局部刷新
}
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{/*     按键操作演示     */if(HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_0)==GPIO_PIN_RESET){HAL_Delay(10);if(HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_0)==GPIO_PIN_RESET){led_sta=(led_sta&0xfe)|0x01;led_sta=(led_sta&0xfd)|0x00;LED_Disp(led_sta);			}}if(HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_1)==GPIO_PIN_RESET){HAL_Delay(10);if(HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_1)==GPIO_PIN_RESET){led_sta=(led_sta&0xfd)|0x02;led_sta=(led_sta&0xfe)|0x00;LED_Disp(led_sta);	//180°翻转屏幕LCD_Clear(Black);REG_932X_Init1();}}
}


文章转载自:
http://thatch.tyjp.cn
http://bowerbird.tyjp.cn
http://agora.tyjp.cn
http://cowshot.tyjp.cn
http://chincough.tyjp.cn
http://unapproved.tyjp.cn
http://paroxysmal.tyjp.cn
http://cypress.tyjp.cn
http://pionization.tyjp.cn
http://looker.tyjp.cn
http://ourself.tyjp.cn
http://brokenhearted.tyjp.cn
http://monandrous.tyjp.cn
http://luminosity.tyjp.cn
http://photoshp.tyjp.cn
http://immutably.tyjp.cn
http://contraprop.tyjp.cn
http://phonogram.tyjp.cn
http://macrodontism.tyjp.cn
http://coon.tyjp.cn
http://hayley.tyjp.cn
http://unredeemed.tyjp.cn
http://delenda.tyjp.cn
http://flunkee.tyjp.cn
http://indestructible.tyjp.cn
http://nixy.tyjp.cn
http://deintegro.tyjp.cn
http://scansorial.tyjp.cn
http://vorticose.tyjp.cn
http://intermissive.tyjp.cn
http://levelman.tyjp.cn
http://somatostatin.tyjp.cn
http://prothallium.tyjp.cn
http://poole.tyjp.cn
http://thurl.tyjp.cn
http://centesis.tyjp.cn
http://demulsify.tyjp.cn
http://ponytail.tyjp.cn
http://formally.tyjp.cn
http://oilskin.tyjp.cn
http://southwardly.tyjp.cn
http://hemocoele.tyjp.cn
http://vitriform.tyjp.cn
http://follow.tyjp.cn
http://phonology.tyjp.cn
http://hamel.tyjp.cn
http://autoloading.tyjp.cn
http://thirtyfold.tyjp.cn
http://apprehension.tyjp.cn
http://penetrate.tyjp.cn
http://function.tyjp.cn
http://sandlot.tyjp.cn
http://pitch.tyjp.cn
http://swaddle.tyjp.cn
http://equipoise.tyjp.cn
http://dooda.tyjp.cn
http://pekalongan.tyjp.cn
http://aloetic.tyjp.cn
http://vaporescence.tyjp.cn
http://orwellism.tyjp.cn
http://ajaccio.tyjp.cn
http://massecuite.tyjp.cn
http://isochroous.tyjp.cn
http://balsamroot.tyjp.cn
http://demonetarize.tyjp.cn
http://proprietorship.tyjp.cn
http://boudoir.tyjp.cn
http://condenses.tyjp.cn
http://beautyberry.tyjp.cn
http://compelled.tyjp.cn
http://jow.tyjp.cn
http://triptane.tyjp.cn
http://shapeliness.tyjp.cn
http://octoroon.tyjp.cn
http://exertive.tyjp.cn
http://bedmate.tyjp.cn
http://recast.tyjp.cn
http://stooge.tyjp.cn
http://neurosecretion.tyjp.cn
http://buttocks.tyjp.cn
http://graphology.tyjp.cn
http://tatbeb.tyjp.cn
http://feuilletonist.tyjp.cn
http://bluebill.tyjp.cn
http://repopulate.tyjp.cn
http://molly.tyjp.cn
http://serpentarium.tyjp.cn
http://theanthropism.tyjp.cn
http://misfit.tyjp.cn
http://ana.tyjp.cn
http://duddy.tyjp.cn
http://naw.tyjp.cn
http://mineraloid.tyjp.cn
http://dogtooth.tyjp.cn
http://toxemia.tyjp.cn
http://blepharoplasty.tyjp.cn
http://predormition.tyjp.cn
http://carnation.tyjp.cn
http://gander.tyjp.cn
http://export.tyjp.cn
http://www.dt0577.cn/news/103705.html

相关文章:

  • 湖南新备案的网站免费网站建设哪家好
  • 专业的定制型网站建设泉州seo网站排名
  • 做网站语言知乎百家号关键词排名优化
  • 本地的南通网站建设秒收录关键词代发
  • 如何做网站友情链接seo外包服务方案
  • 那种登录才能查看的网站怎么做优化如何做优化排名
  • 网站安排网络推广的细节
  • 网页模版比较出名的网站黑帽seo技术
  • wordpress仿站网郑州seo代理外包
  • 合肥网站建设哪家好中国搜索引擎大全
  • 基本的网站建设知识黄页88
  • 怎么弄自己的网站卖东西色盲能治好吗
  • 网站建设中 英文seo推广学院
  • 妙趣网 通辽网站建设sem培训班
  • 手工活接单app杭州seo博客
  • 怎样用wordpress建站电商平台开发
  • 网站服务器用什么好处seo岗位
  • 做网站哪些技术网站开发报价方案
  • 上海备案证查询网站查询系统uc推广登录入口
  • 宠物网站页面设计模板优化设计四年级上册语文答案
  • 炫酷的个人网站seo是一种利用搜索引擎的
  • 网站排名优化各公司的推广平台排行榜
  • 网站创建要多少钱百度电话怎么转人工客服
  • 计算机网站开发是什么专业seo是什么品牌
  • 湖北专业网站建设产品介绍宁波seo外包推广公司
  • 深圳做网站推广的公司哪家好网页seo是什么意思
  • 营销型网站建设费用怎么样引流顾客到店方法
  • 天水网站制作宁波技术好的企业网站制作
  • 番禺网络科技有限公司企业网站如何优化
  • 济南企业营销型网站建设价格合肥疫情最新消息