• 大小: 162KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-01
  • 语言: 其他
  • 标签: 智能小车  

资源简介

The national electronic design competition in 2011 C intelligent car reference program,2011年全国电子设计竞赛C题智能小车参考程序

资源截图

代码片段和文件信息


#include “lcd12864.h“
#include “msp430f149.h“

void LcdWriteType(void)//写方式
{
  uchar i;
  LCDCSSET;
  for(i=0;i<5;i++)
  {    
    LCDCLKCLR;
    LCDSIDSET;
    LCDCLKSET;//时钟上升沿
  }//先发送5个1  
  LCDCLKCLR;
  LCDSIDCLR;//再发送一个0表示写操作
  LCDCLKSET;//时钟上升沿
}
void LcdReadType(void)//读方式
{
  uchar i;
  LCDCSSET;
  for(i=0;i<5;i++)
  {    
    LCDCLKCLR;
    LCDSIDSET;
    LCDCLKSET;//时钟上升沿
  }//先发送5个1  
  LCDCLKCLR;
  LCDSIDSET;//再发送一个1表示读操作
  LCDCLKSET;//时钟上升沿
}
void LcdSendDat(uchar Dat)//发送一个字节的数据
{
  uchar i;
  for(i=0;i<4;i++)
  {
    LCDCLKCLR;
    if(Dat & 0x80) LCDSIDSET;
    else           LCDSIDCLR;
    LCDCLKSET;
    Dat<<=1;
  }//发送高4位
  for(i=0;i<4;i++)
  {
    LCDCLKCLR;
    LCDSIDCLR;
    LCDCLKSET;
  }//发送4个0
  for(i=0;i<4;i++)
 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-07-28 16:36  循环超车\
     目录           0  2013-07-31 08:09  循环超车\前车\
     目录           0  2013-07-27 22:15  循环超车\前车\Debug\
     目录           0  2013-07-28 19:41  循环超车\前车\Debug\Exe\
     文件       26953  2013-07-21 08:52  循环超车\前车\Debug\Exe\motor.d43
     文件       10952  2013-07-31 07:45  循环超车\前车\Debug\Exe\motor.txt
     目录           0  2013-07-31 08:10  循环超车\前车\Debug\List\
     目录           0  2013-07-31 08:09  循环超车\前车\Debug\Obj\
     文件       19389  2013-07-23 11:24  循环超车\前车\Debug\Obj\lcd12864.r43
     文件       57431  2013-07-31 07:45  循环超车\前车\Debug\Obj\main.r43
     文件         400  2013-07-31 07:45  循环超车\前车\Debug\Obj\motor.pbd
     文件       69632  2013-07-29 16:13  循环超车\前车\Debug\Obj\motor.r43
     文件       11051  2013-07-29 16:13  循环超车\前车\Debug\Obj\status.r43
     文件        8135  2013-07-26 20:51  循环超车\前车\Debug\Obj\uart.r43
     文件        3298  2013-07-22 09:18  循环超车\前车\lcd12864.c
     文件        1287  2013-07-23 11:23  循环超车\前车\lcd12864.h
     文件        7633  2013-07-31 07:45  循环超车\前车\main.c
     文件        8192  2013-07-23 13:05  循环超车\前车\motor.IAB
     文件         408  2013-07-23 13:05  循环超车\前车\motor.IAD
     文件        4096  2013-07-18 14:46  循环超车\前车\motor.IMB
     文件         368  2013-07-18 14:46  循环超车\前车\motor.IMD
     文件          36  2013-07-30 14:58  循环超车\前车\motor.PFI
     文件         776  2013-07-30 14:58  循环超车\前车\motor.PO
     文件        3320  2013-07-23 09:05  循环超车\前车\motor.PR
     文件       18728  2013-07-23 09:05  循环超车\前车\motor.PRI
     文件       31816  2013-07-30 14:58  循环超车\前车\motor.PS
     文件          80  2013-07-22 08:41  循环超车\前车\motor.SearchResults
     文件       33241  2013-07-30 14:58  循环超车\前车\motor.WK3
     文件        9565  2013-07-29 16:13  循环超车\前车\motor.c
     文件        5989  2013-07-31 08:09  循环超车\前车\motor.dep
     文件       20124  2013-07-18 14:38  循环超车\前车\motor.ewd
............此处省略56个文件信息

评论

共有 条评论