HelplessGuy Posted October 8, 2018 Share Posted October 8, 2018 Hello everyone, I am trying to read a bit of a register, but it is never changing. But I know that it is changing. So I think, I am having a some mistake. Can someone help me? XAdcPs XAdcPs_Inst; [here init] XAdcPs_ReadReg((&XAdcPs_Inst)->Config.BaseAddress, 0x04) & 0x00000040) == 0x00000040 Link to comment Share on other sites More sharing options...
jpeyron Posted October 8, 2018 Share Posted October 8, 2018 Hi @HelplessGuy, I would suggest to incorporate the Integrated Logic Analyzer (ILA) into your design. Here is a tutorial for the ILA. thank you, Jon Link to comment Share on other sites More sharing options...
HelplessGuy Posted October 9, 2018 Author Share Posted October 9, 2018 Hi @jpeyron Thanks for the advice. Is this function not working correct? Link to comment Share on other sites More sharing options...
jpeyron Posted October 9, 2018 Share Posted October 9, 2018 Hi @HelplessGuy, Have you tried using the XAdcPs_ReadFifo(InstancePtr) function in the xadcps.h. I suggested the ILA to help with debugging your design. thank you, Jon Link to comment Share on other sites More sharing options...
HelplessGuy Posted October 15, 2018 Author Share Posted October 15, 2018 What is the difference between both functions? I want to understand, what kind of function I have to use for what Link to comment Share on other sites More sharing options...
jpeyron Posted October 15, 2018 Share Posted October 15, 2018 Hi @HelplessGuy, I suggest using the XAdcPs_ReadFifo(InstancePtr) since this function calls the XAdcPs_ReadReg() function. Here and here are links to more XADc documentation that should be useful. I would suggest reaching out to Xilinx support about the differences between the two functions in their IP Core. thank you, Jon Link to comment Share on other sites More sharing options...
Question
HelplessGuy
Hello everyone,
I am trying to read a bit of a register, but it is never changing. But I know that it is changing. So I think, I am having a some mistake. Can someone help me?
XAdcPs XAdcPs_Inst; [here init] XAdcPs_ReadReg((&XAdcPs_Inst)->Config.BaseAddress, 0x04) & 0x00000040) == 0x00000040
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.