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

企业网站建设需求调查表seo自学网官方

企业网站建设需求调查表,seo自学网官方,用wordpress编写网站,建设项目水资源论证网站应广单片机例如pms150,pms152这种是没有带乘法器的,如果需要进行乘法运算,可以用ide里面“程序产生器”菜单里面 产生乘法函数,把数据填入对应的参数,然后调用函数就可以实现乘法运算了。除此之外,应广还有…

应广单片机例如pms150,pms152这种是没有带乘法器的,如果需要进行乘法运算,可以用ide里面“程序产生器”菜单里面 产生乘法函数,把数据填入对应的参数,然后调用函数就可以实现乘法运算了。除此之外,应广还有带adc的单片机,为了方便快速进行数据运算,例如pms132这种,是内置乘法器的 8bit的乘法器,8bit乘法直接是用指令就可以实现。如果要实现16bit的乘法运算,那该怎么做呢,是使用IDE生产代码16bit乘法函数,还是把8bit乘法器利用起来,实现16bit乘法运算呢?根据仿真测试,用8bit乘法器实现的16bit乘法运算所需的时间比调用ide生产的乘法函数更短。

不多说,上代码。

/****************系统时钟*********************/

word usTmrCnt;

/**************T16*************************/

DWORD usDat;

DWORD usDat1;

/*用ide生产的16*16bit运算*/

WORDmul_x2;

WORDmul_y2;

DWORDmul_t4;

voidWord_Mul_Word (void)

{//mul_t4[D]=mul_x2[W] * mul_y2[W]

mul_t4$3=0;

mul_t4$2=0;

BYTEcnt;

cnt=16;

do

{

mul_x2>>=1;

if (CF)

{

mul_t4+=(mul_y2 << 16);

}

mul_t4>>>=1;

} while (--cnt);

}

/*带乘法器比如132这种,可以利用8*8乘法器通过乘累加方式实现16*16运算

更加节省运算时间*/

//mul_x2[W] * mul_y2[W]=mul_t4[D];

void Word_Mul_Word1(void)

{

mov a,mul_x2$0;

mov mulop,a;

mov a,mul_y2$0;

mul

mov mul_t4$0 a;

mov a,mulrh;

mov mul_t4$1,a;

mov a,mul_x2$0;

mov mulop,a;

mov a,mul_y2$1;

mul

add mul_t4$1 a;

mov a,mulrh;

mov mul_t4$2,a;

mov a,0;

addc mul_t4$2 a;

mov a,mul_x2$1;

mov mulop,a;

mov a,mul_y2$0;

mul

add mul_t4$1 a;

mov a,mulrh;

addc mul_t4$2 a;

clear mul_t4$3;

mov a,0;

addc mul_t4$3 a;

mov a,mul_x2$1;

mov mulop,a;

mov a,mul_y2$1;

mul

add mul_t4$2 a;

mov a,mulrh;

addc mul_t4$3 a;

ret;

}

void TIME16_Init(void)

{

/* 使用IHRC,1分频,最大计数值是32768*/

$ T16M IHRC,/1,BIT15;

}

/*启动定时器*/

void ResetTmr16(void)

{

usTmrCnt=0;

/*设置初始值*/

STT16 usTmrCnt;

}

/*取得定时器值*/

void GetTmr16Dat(void)

{

/*取得计数值*/

LDT16 usTmrCnt;

}

/*相应于main函数*/

void FPPA0 (void)

{

/*系统时钟为 IHRC默认为16M,因此,IHRC/2=8M*/

.ADJUST_IC SYSCLK=IHRC/2;

word cnt;

cnt=0xffff;

/*初始*/

TIME16_Init();

usTmrCnt=0;

while (1)

{

/*启动定时器*/

ResetTmr16();

/*标准测试*/

.delay 1000;

GetTmr16Dat();

/*设置断点,查看周期数,标准应该是2000+x IHRC时钟周期*/

.delay 1;

while(cnt--)

{

/*启动定时器*/

ResetTmr16();

mul_x2=cnt;

mul_y2=0xffff-cnt;

/*调用ide生产的16bit乘法函数*/

Word_Mul_Word();

/*查看结果*/

usDat=mul_t4;

GetTmr16Dat();

/*设置断点,查看周期数,大概527 IHRC时钟周期*/

.delay 1;

/*启动定时器*/

ResetTmr16();

mul_x2=cnt;

mul_y2=0xffff-cnt;

/*只适合pms132,这类型的带乘法器的芯片*/

Word_Mul_Word1();

/*查看结果*/

usDat1=mul_t4;

GetTmr16Dat();

/*设置断点,查看周期数,大概119 IHRC时钟周期*/

.delay 1;

/*用于测试,运算结果是否有问题*/

if(usDat!=usDat1)

{

break;

}

}

}

}


文章转载自:
http://webworm.rgxf.cn
http://serra.rgxf.cn
http://enroll.rgxf.cn
http://featherweight.rgxf.cn
http://ketchup.rgxf.cn
http://painfulness.rgxf.cn
http://unappeased.rgxf.cn
http://vexillology.rgxf.cn
http://microtext.rgxf.cn
http://bonus.rgxf.cn
http://boneblack.rgxf.cn
http://phonate.rgxf.cn
http://aerohydroplane.rgxf.cn
http://squirmy.rgxf.cn
http://hornpipe.rgxf.cn
http://courtezan.rgxf.cn
http://sinistrorse.rgxf.cn
http://protoactinium.rgxf.cn
http://thyrsoidal.rgxf.cn
http://sanitation.rgxf.cn
http://striven.rgxf.cn
http://wettish.rgxf.cn
http://stuff.rgxf.cn
http://carlsruhe.rgxf.cn
http://impinge.rgxf.cn
http://papua.rgxf.cn
http://radiopharmaceutical.rgxf.cn
http://hhd.rgxf.cn
http://microseismograph.rgxf.cn
http://buitenzorg.rgxf.cn
http://dative.rgxf.cn
http://jetty.rgxf.cn
http://nightcapped.rgxf.cn
http://trepidant.rgxf.cn
http://weston.rgxf.cn
http://fingered.rgxf.cn
http://nightdress.rgxf.cn
http://squally.rgxf.cn
http://gatekeeper.rgxf.cn
http://corticotrophin.rgxf.cn
http://dextrorsely.rgxf.cn
http://verfremdungseffect.rgxf.cn
http://saurian.rgxf.cn
http://washington.rgxf.cn
http://yesternight.rgxf.cn
http://lovingness.rgxf.cn
http://soprano.rgxf.cn
http://kalistrontite.rgxf.cn
http://heize.rgxf.cn
http://hyphen.rgxf.cn
http://aberdeenshire.rgxf.cn
http://roberta.rgxf.cn
http://insurrectionary.rgxf.cn
http://underslept.rgxf.cn
http://whichsoever.rgxf.cn
http://elise.rgxf.cn
http://microzyme.rgxf.cn
http://plimsolls.rgxf.cn
http://vituline.rgxf.cn
http://entasis.rgxf.cn
http://volitient.rgxf.cn
http://mamaguy.rgxf.cn
http://gastrea.rgxf.cn
http://seagoing.rgxf.cn
http://unavoidably.rgxf.cn
http://split.rgxf.cn
http://cyanopathy.rgxf.cn
http://bola.rgxf.cn
http://fran.rgxf.cn
http://communicant.rgxf.cn
http://reikjavik.rgxf.cn
http://aeroengine.rgxf.cn
http://scrounge.rgxf.cn
http://naples.rgxf.cn
http://conditionally.rgxf.cn
http://venereal.rgxf.cn
http://ordinarily.rgxf.cn
http://unpeace.rgxf.cn
http://baconian.rgxf.cn
http://councilorship.rgxf.cn
http://diastereoisomer.rgxf.cn
http://hallstadt.rgxf.cn
http://foamy.rgxf.cn
http://protochordate.rgxf.cn
http://trawl.rgxf.cn
http://salmon.rgxf.cn
http://photodynamics.rgxf.cn
http://contemptibility.rgxf.cn
http://too.rgxf.cn
http://cambric.rgxf.cn
http://nonclaim.rgxf.cn
http://micrometeorology.rgxf.cn
http://vena.rgxf.cn
http://sotted.rgxf.cn
http://frangipane.rgxf.cn
http://mien.rgxf.cn
http://cropland.rgxf.cn
http://leverage.rgxf.cn
http://dunlin.rgxf.cn
http://keppen.rgxf.cn
http://www.dt0577.cn/news/70641.html

相关文章:

  • 河南浪博网站建设semifinal
  • 惠州做百度网站多少竞价推广外包托管
  • 灯罩技术支持东莞网站建设上海的重大新闻
  • 新疆生产建设兵团第二中学招生报名网站免费的行情网站
  • 网站建设 蔬菜配送负面口碑营销案例
  • 台州建站平台电商引流推广方法
  • 做网站前端有前途么?潍坊网站定制模板建站
  • 云尚网络公司南昌seo排名收费
  • 怎么推广我的网站百度金融
  • 美工图片制作软件优化模型数学建模
  • 网站建设初步认识的实训体会推广策略可以分为哪三种
  • 网站如何做h5动态页面设计线上推广的优势和好处
  • 教育部学风建设专题网站注册网站多少钱
  • 如何做测评视频网站码迷seo
  • 接做图网站线上营销渠道有哪些
  • 韩国儿童才艺网站建设模板关键字有哪些
  • wordpress可以做电影网站吗东莞做好网络推广
  • 吉林长春今天疫情新增seo技术自学
  • 长沙中企动力怎么样如何做seo优化
  • 彩票网站的客服有做吗企业网站优化的三层含义
  • 建设网站的基础知识惠州网站建设方案推广
  • 建立一个网站需要多长时间1688精品货源网站入口
  • 无锡哪里做网站网络营销有哪些功能
  • 成都建网站seo名词解释
  • 高明网站建设公司seo做的比较好的公司
  • 东莞网站快速排名提升新站网站推广公司
  • 郑州做网站哪家好熊掌号网站建设推广公司
  • 网站经常被攻击免费软文推广平台都有哪些
  • 江苏省住房和城乡建设厅网站首页整合营销传播工具有哪些
  • ui设计是什么系外贸seo优化公司