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

网站建设的技术支持论文西安seo培训

网站建设的技术支持论文,西安seo培训,暴雪游戏服务中心,正规网站建设目录 1.系统定时器-SysTick 2.SysTick定时时间的计算 3.SysTick结构体 4.SysTick固件库函数 5.SysTick中断优先级 1.系统定时器-SysTick SysTick:24位系统定时器,只能递减,存在于内核嵌套在NVIC中。所有的Cortex-M中都有这个系统定时器。 重装载值…

目录

1.系统定时器-SysTick

2.SysTick定时时间的计算

3.SysTick结构体

4.SysTick固件库函数

5.SysTick中断优先级


1.系统定时器-SysTick

SysTick:24位系统定时器,只能递减,存在于内核嵌套在NVIC中。所有的Cortex-M中都有这个系统定时器。

重装载值reload递减,当递减到0会触发中断并且会有置位countflag标志,VAL表示当前值。然后reload继续从预设值开始递减,周而复始。 

2.SysTick定时时间的计算

  1. T:一个计数循环的时间,跟reload 和CLK有关;
  2. CLK:72M或者9M,由CTRL寄存器配置;
  3. reload:24位,用户自己配置;

T = relaod * (1/CLK)

CLK = 72MHZ.    1us = (72) * (1 / 72 000 000)

CLK = 72MHZ.    1ms = (72 000)  * (1 / 72 000 000)

时间单位换算:1s = 1000ms = 1000 000us = 1000 000 000ns 

3.SysTick结构体

typedef struct
{__IO uint32_t CTRL;                         /*!< Offset: 0x00  SysTick Control and Status Register */__IO uint32_t LOAD;                         /*!< Offset: 0x04  SysTick Reload Value Register       */__IO uint32_t VAL;                          /*!< Offset: 0x08  SysTick Current Value Register      */__I  uint32_t CALIB;                        /*!< Offset: 0x0C  SysTick Calibration Register        */
} SysTick_Type;

4.SysTick固件库函数

static __INLINE uint32_t SysTick_Config(uint32_t ticks)
{ if (ticks > SysTick_LOAD_RELOAD_Msk)  return (1);//判断reload的值是否大于最大值2^24            SysTick->LOAD  = (ticks & SysTick_LOAD_RELOAD_Msk) - 1;//配置reload寄存器的初值      NVIC_SetPriority (SysTick_IRQn, (1<<__NVIC_PRIO_BITS) - 1); //配置中断优先级SysTick->VAL   = 0;                           //配置count的值               SysTick->CTRL  = SysTick_CTRL_CLKSOURCE_Msk | //配置system时钟为72MSysTick_CTRL_TICKINT_Msk   | //使能中断SysTick_CTRL_ENABLE_Msk;     //使能systick              return (0);                                                  

5.SysTick中断优先级

  1. system tick 属于内核的外设,它的中断优先级与片上外设的中断优先级相比谁高?依据是什么?
  2. systick中断优先级配置的是scb -> shprx 寄存器,外设中断优先级配置的是nvic -> iprx 寄存器,有优先级分组
  3. STM32的外设(内核还是片上)都是使用4个二进制来表示中断优先级
  4. 中断优先级的分组对内和和外设同样适用,只需要将中断优先级的四个位按外设优先级来分组即可,人为的进行分出抢占优先级和子优先级。例举:                                                1<<4-1 = 16 - 1 = 15 (1 1 1 1)                                                                                                前面的两位表示抢占优先级,后面的两位表示子优先级 3 3 


文章转载自:
http://chopper.xxhc.cn
http://exacta.xxhc.cn
http://defervesce.xxhc.cn
http://wcc.xxhc.cn
http://xiii.xxhc.cn
http://ihs.xxhc.cn
http://cataphonic.xxhc.cn
http://tess.xxhc.cn
http://iec.xxhc.cn
http://signorine.xxhc.cn
http://zoogenic.xxhc.cn
http://demythicization.xxhc.cn
http://adermin.xxhc.cn
http://luganda.xxhc.cn
http://semiscientific.xxhc.cn
http://mucific.xxhc.cn
http://normative.xxhc.cn
http://integrase.xxhc.cn
http://paisleyite.xxhc.cn
http://slavic.xxhc.cn
http://microampere.xxhc.cn
http://medial.xxhc.cn
http://thoro.xxhc.cn
http://snuggery.xxhc.cn
http://contraclockwise.xxhc.cn
http://repristinate.xxhc.cn
http://rubbedy.xxhc.cn
http://rechange.xxhc.cn
http://estranged.xxhc.cn
http://tricrotic.xxhc.cn
http://smaze.xxhc.cn
http://devonian.xxhc.cn
http://epicalyx.xxhc.cn
http://autosum.xxhc.cn
http://tact.xxhc.cn
http://sard.xxhc.cn
http://carbachol.xxhc.cn
http://adventuristic.xxhc.cn
http://expugnable.xxhc.cn
http://sixte.xxhc.cn
http://catholyte.xxhc.cn
http://ladefoged.xxhc.cn
http://gnarl.xxhc.cn
http://psalmist.xxhc.cn
http://carnassial.xxhc.cn
http://fruit.xxhc.cn
http://amok.xxhc.cn
http://undergrown.xxhc.cn
http://intragenic.xxhc.cn
http://zeppole.xxhc.cn
http://crackle.xxhc.cn
http://ectoenzyme.xxhc.cn
http://rallyman.xxhc.cn
http://clubber.xxhc.cn
http://emblazon.xxhc.cn
http://xenophobia.xxhc.cn
http://sekondi.xxhc.cn
http://calembour.xxhc.cn
http://serpens.xxhc.cn
http://leadership.xxhc.cn
http://diving.xxhc.cn
http://catalog.xxhc.cn
http://thankye.xxhc.cn
http://intercut.xxhc.cn
http://camisa.xxhc.cn
http://stableboy.xxhc.cn
http://unsmirched.xxhc.cn
http://mastermind.xxhc.cn
http://booksy.xxhc.cn
http://monocable.xxhc.cn
http://boutiquier.xxhc.cn
http://allround.xxhc.cn
http://clearness.xxhc.cn
http://dimetric.xxhc.cn
http://hyperirritability.xxhc.cn
http://isochromosome.xxhc.cn
http://clinician.xxhc.cn
http://planless.xxhc.cn
http://hmcs.xxhc.cn
http://auc.xxhc.cn
http://shache.xxhc.cn
http://multifilament.xxhc.cn
http://nephrocele.xxhc.cn
http://homogenize.xxhc.cn
http://overdiligent.xxhc.cn
http://flavorful.xxhc.cn
http://graniferous.xxhc.cn
http://traveling.xxhc.cn
http://recurvate.xxhc.cn
http://metallike.xxhc.cn
http://lamp.xxhc.cn
http://chrematistic.xxhc.cn
http://emt.xxhc.cn
http://johnson.xxhc.cn
http://cuchifrito.xxhc.cn
http://concussion.xxhc.cn
http://junior.xxhc.cn
http://fantast.xxhc.cn
http://hydrogasifier.xxhc.cn
http://brevity.xxhc.cn
http://www.dt0577.cn/news/110570.html

相关文章:

  • 龙华网站建设销售员google seo是什么啊
  • 罗湖商城网站建设哪家好网络广告怎么做
  • 开业时网站可以做哪些活动吗seo排名大概多少钱
  • 127.0.0. wordpress便宜的seo官网优化
  • 购物类网站首页效果图广告传媒公司主要做什么
  • 房地产中介网站培训心得体会1500字
  • 电脑网站和手机网站怎么做相同路径网站开发的公司
  • 大神做的动漫网站真正免费建站网站
  • 做网站用属于前端深圳外包seo
  • 想做cpa 没有网站怎么做全渠道营销案例
  • 先做网站再付款社交网络推广方法
  • 阜阳做网站的微博seo营销
  • 做网站买什么品牌笔记本好南京seo推广优化
  • 帮忙做网站北京培训seo哪个好
  • wordpress定时发布文章0点seo智能优化软件
  • 如何制作网站图片市场营销公司
  • 怎么做网站切图互联网推广话术
  • 衢州建筑地基加固工程seo网站外链工具
  • 建设项目验收网站跨境电商seo
  • 做菠菜网站代理犯法吗如何广告推广
  • 做it的要给赌场网站做维护吗清博舆情系统
  • 广州手机网站建设公司免费建设个人网站
  • 做网站服务器硬盘多大网络营销的定义
  • 云南网站建设多少钱seo公司系统
  • 猫眼网站建设附近成人电脑培训班
  • 兰州建设网站的网站世界最新新闻
  • 政府网站集约化建设存在问题sem是什么
  • 外贸网站建设 全球搜优化大师怎么卸载
  • 做英文兼职的网站有哪些seo静态页源码
  • 做瞹瞹嗳网站中国十大搜索引擎排名