谁能帮我分析分析这几句,谢谢

[复制链接]
448|0
 楼主| 丑帅丑帅的 发表于 2018-6-7 13:30 | 显示全部楼层 |阅读模式
AD, ADDR, se, DDR, TE

void SPI_FLASH_StartReadSequence(u32 ReadAddr)

{

  /* Select the FLASH: Chip Select low */

  SPI_FLASH_CS_LOW();

  /* Send "Read from Memory " instruction */

  SPI_FLASH_SendByte(W25X_ReadData);

  /* Send the 24-bit address of the address to read from -----------------------*/

  /* Send ReadAddr high nibble address byte */

  SPI_FLASH_SendByte((ReadAddr & 0xFF0000) >> 16);

  /* Send ReadAddr medium nibble address byte */

  SPI_FLASH_SendByte((ReadAddr& 0xFF00) >> 8);

  /* Send ReadAddr low nibble address byte */

  SPI_FLASH_SendByte(ReadAddr & 0xFF);

}谁能解释下后三句中为什么要现与后在左移16位和8位,这是为什么,实在愚钝我

您需要登录后才可以回帖 登录 | 注册

本版积分规则

741

主题

742

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部