当前位置:广州蚂蚁搬家 > 搬家新闻 > 正文                                                                            网站TAG搬家 搬家公司 广州搬家 广州 广州大众 广州搬家公司

0舞蹈机器人程序m,广州搬家

作者:admin 浏览: 发布时间:11/09/23 关键字: 广州搬家

*************/

  void start_595(void)

  

  WR_595();

  OUT_595();

  _nop_() ;

  

  /********************************************************/

  /* 停止子程序 */

  /********************************************************/

  void stop(void)

  temp=0xffff; //取数据

  WR_595(); //把数据写入595的寄存器

  OUT_595();

  _nop_() ;

  

  /********************************************************/

  /* 延时子程序 */

  /********************************************************/

  void delay50ms(int ms)

  {

  int k ;

  while(ms--)

  {

  for(k=12500; k>0 ; k--)

  

  _nop_() ;

  _nop_() ;

  _nop_() ;

  _nop_() ;

  

  }

  }

  /********************************************************/

  /* 开关电机 */

  /* 0--关电机 //关某位用 1 或,其他位为0 */

  /* 1--正转 //开某位用 0 与,其他位为1 */

  /* 2--反转 */

  /********************************************************/

  void moto0(unsigned char s0)

  { switch(s0)

  { case 0: =0x0003; temp=temp_0; break ; //关电机

  case 1: temp_0=temp; temp_0&=0xfffe; temp=temp_0; break ; //正转

  case 2: temp_0=temp; temp_0&=0xfffd; temp=temp_0; br

【此文链接:http://www.scaees.com/banjiaxw/232.html【打印】 【关闭】
上一篇:2微创心脏外科治疗结构性心脏病进展d,广州新大众搬家   下一篇:6宁波搬家-选择宁波鄞州红卫搬家【81890】t,广州番禺
上一页123