- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Can anyone help me with IIC ip core?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-11-2011 01:05 PM
Hi,
I really appreciate if someone can help me, because I have been confused almost one week. Sorry for my poor English
I use IIC ip core under EDK. I have writen a driver, but I found it doesn't work.
I just use code like this:
send_cnt = XIic_Send(XPAR_XPS_IIC_0_BASEADDR, ADDR_DECOD, send_data, 2, XIIC_STOP);
So under SDK, I debug it, I found the code just stop here (inside xiic_l.c file)
StatusReg = XIic_ReadReg(BaseAddress, XIIC_SR_REG_OFFSET);
while ((StatusReg & XIIC_SR_BUS_BUSY_MASK) == 0) {
StatusReg = XIic_ReadReg(BaseAddress,
XIIC_SR_REG_OFFSET);
}
The debug information showed: StatusReg = 64, and the whole program just stay here and no longer go any more. I checked the Xilinx IIC core pdf: http://www.xilinx.com/support/documentation/ip_doc
I found this line actually check whether IIC bus busy or not. but here if I want to send the data, don't I want to make sure the bus is not busy? Is there anything wrong with Xilinx library?or what should I do to fix it?
Thank you very much!
sniu@hawk.iit.edu
Re: Can anyone help me with IIC ip core?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-11-2011 02:08 PM
I forget to say that even I run a example iic code under installation file, the program still stop there. Thank you very much











