初学STM32 时,不是很理解这段代码?
IIC_Start(); if(EE_TYPE>AT24C16){IIC_Send_Byte(0XA0); //发送写命令IIC_Wait_Ack();IIC_Send_Byte(WriteAddr>>8);//发送高地址}else{IIC_Send_Byte(0XA0+((WriteAddr/256)<<1)); } IIC_Wait_Ack();
先分析如下:
(1)EEPROM管脚
(2)寻址
(3)时序