平台是51,很实用的资料欢迎大家下载
文档内容节选
include 25Q32h include usart15408AS1h include eepromh xdata unsigned int atey100 void delayspiunsigned int x1us 11M 20 unsigned int ic forc0cxc nop nop i 2 while i 等待写入结束1 0 void waitwiriteENDunsigned char stateunsigned int number unsigned int i unsigned char addr ifstate0等待模式 fori0inumberi SCK0 delayspi5 SCK1 delayspi5 else检测忙 ifstate2 do addrreadSR0x35 SendDataaddr whileaddr0x80 do addrreadSR0x05 SendDat......
猜您喜欢
评论