UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor mhd1973
Visitor
4,178 Views
Registered: ‎11-07-2014

Use I2C to write to the PMBus to control the power controller on zedboard but..​XIicPs_Mas​terSendPol​led()is Wrong?

 

Hi.

When today  I Used I2C to write to the PMBUS to control the power controller on Zedboard that use UCD9248,I doubt  that the function  XIicPs_MasterSendPolled()in xiicps_master.c was wrong!Here are the codes in  XIicPs_MasterSendPolled() in which debug stoped.

/*
* Check for completion of transfer.
*/
while ((IntrStatusReg & XIICPS_IXR_COMP_MASK) != XIICPS_IXR_COMP_MASK){

IntrStatusReg = XIicPs_ReadReg(BaseAddr, XIICPS_ISR_OFFSET);
/*
* If there is an error, tell the caller.
*/
if ((IntrStatusReg & Intrs) != 0) {
return XST_FAILURE;
}
}

why?

Looking forward to your help.

Mohamad

0 Kudos