#include "2440addr.h"extern void Uart_Printf(char *fmt,...);void Wr24C02(U32 slvAddr,U32 addr,U8 data);void Rd24C02(U32 slvAddr,U32 addr,U8 *data);void Run_IicPoll(void);void IicPoll(void) ;void Delay
硬件IIC類似軟件模擬IIC,硬件IIC讀取ACK需要判斷寄存器IICCON的bit4是否發(fā)生中斷為1。初始化: rGPEUP = 0xc000; //SDA SCL關(guān)上拉 rGPECON = 0xa0000000; //GPE14 GPE15設(shè)為SDA SCL功能 rIICCON