void Send_Data(uint8 *data_buf,uint32 length)

{

  CLE=0;

  CE=0;delay 15ns;

      ALE=0;delay 15ns;

  for(;length>0;length--)

  {    

    WE=0;delay 5ns;

    IO7-0=*data_buf++;delay 10ns;

    WE=1;delay 5ns;

      }

  CE=1;  

  CLE=1;

}

使用时 uint8 writebuf[];

    Send_Data(writebuf,length);  笔记:对指针/地址的运用能是程序简洁。这里Send_Date函数中是以个纸箱数组的首地址的指针为变量。

相关文章:

  • 2021-09-16
  • 2021-12-30
  • 2021-05-10
  • 2022-12-23
  • 2021-06-28
  • 2021-05-30
  • 2021-12-05
  • 2021-04-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案