91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 223KB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-06
  • 語言: 其他
  • 標簽: CC2530??IIC??EEPROM??24C64??

資源簡介

該程序采用德州儀器的cc2530單片機,在模擬IIC時序下進行讀寫,斷電復位后串口0打印寫入的數據

資源截圖

代碼片段和文件信息

/*******************************************************************************
*文件名???:?EEPROM.c
*實現功能?:?EEPROM讀寫
*實驗平臺?:?中興合智?Zigbee?開發板?

*******************************************************************************/
#include?“eeprom.h“
#include?“i2c.h“

/**************************************************
?函?數?名??:?AT24C64WriteAddr
?功能描述??:?向指定地址寫入數據
?輸入參數??:?addr?,要寫入的地址
?????????????dat?,寫入的數據
?輸出參數??:?none
?返?回?值??:?none
***************************************************/
void?AT24C64WriteAddr(uint32?addruint8?dat)
{
????P0DIR?|=0x80;
????IIC_delayMs(100);
????IIC_Start();
????IIC_Send_Byte(0xa0);
????IIC_Wait_Ack();
????IIC_Send_Byte(addr>>8);
????IIC_Wait_Ack();
????IIC_Send_Byte(addr);
????IIC_Wait_Ack();
????IIC_Send_Byte(dat);
????IIC_Wait_Ack()

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-03-29?08:49??02?、EEPROM讀寫實驗\
?????文件???????????3??2019-03-15?16:15??02?、EEPROM讀寫實驗\BuildLog.log
?????文件????????6663??2019-03-29?08:49??02?、EEPROM讀寫實驗\DEMO_EEPROM.dep
?????文件???????49884??2019-03-15?16:16??02?、EEPROM讀寫實驗\DEMO_EEPROM.ewd
?????文件???????80699??2019-03-29?08:49??02?、EEPROM讀寫實驗\DEMO_EEPROM.ewp
?????文件??????160687??2019-03-27?13:44??02?、EEPROM讀寫實驗\DEMO_EEPROM.ewt
?????文件?????????165??2019-03-15?15:40??02?、EEPROM讀寫實驗\DEMO_EEPROM.eww
?????目錄???????????0??2019-03-23?11:24??02?、EEPROM讀寫實驗\Debug\
?????目錄???????????0??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Exe\
?????文件???????23150??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Exe\DEMO_EEPROM.d51
?????文件????????3767??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Exe\DEMO_EEPROM.hex
?????目錄???????????0??2019-03-23?11:24??02?、EEPROM讀寫實驗\Debug\List\
?????文件???????52980??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\List\DEMO_EEPROM.map
?????目錄???????????0??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\
?????文件???????54573??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\DEMO_EEPROM.pbd
?????文件???????54573??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\DEMO_EEPROM.pbd.browse
?????文件?????????509??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\DEMO_EEPROM.pbd.linf
?????文件???????43417??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\eeprom.pbi
?????文件???????14854??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\eeprom.pbi.xcl
?????文件???????15745??2019-03-28?10:57??02?、EEPROM讀寫實驗\Debug\Obj\eeprom.r51
?????文件???????46289??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\i2c.pbi
?????文件???????14851??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\i2c.pbi.xcl
?????文件???????15003??2019-03-28?10:57??02?、EEPROM讀寫實驗\Debug\Obj\i2c.r51
?????文件???????45289??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\main.pbi
?????文件???????14852??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\main.pbi.xcl
?????文件???????10757??2019-03-28?10:58??02?、EEPROM讀寫實驗\Debug\Obj\main.r51
?????文件???????41624??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\time.pbi
?????文件???????14852??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\time.pbi.xcl
?????文件????????4388??2019-03-28?10:58??02?、EEPROM讀寫實驗\Debug\Obj\time.r51
?????文件???????45763??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\uart.pbi
?????文件???????14852??2019-03-29?08:49??02?、EEPROM讀寫實驗\Debug\Obj\uart.pbi.xcl
............此處省略19個文件信息

評論

共有 條評論