giveyou 发表于 2025-9-15 17:15:51

为什么不用自带的SPI功能呢?还是使用管脚模拟SPI的。
void SPI_Send_Byte(unsigned char dt)
{
        unsigned char i;
               
        for(i=0;i<8;i++)
        {       
                W5500_SCLK=0;
                if((dt<<i)&0x80)
                        W5500_MOSI=1;
                else
                        W5500_MOSI=0;                                       
                W5500_SCLK=1;
        }
        W5500_SCLK=0;
}
页: 1 [2]
查看完整版本: SPI 驱动 W5500 网口模块@32G12K128 | 已调通,附上源码