• 0
Sign in to follow this  
Bilal29

XADC Automatic Channel Sequencer (Default Mode)

Question

In this mode results are stored automatically in status register like 00h (temperature), etc. No need to select channel for conversation and configure once sets initially in IP core.

I know default mode monitors on chip sensors only.

My question is that how you can read status register without selecting channel (01h, 02h,06h…)? We have to write address through drp Daddr register and enabling den and dwe register and then read dout by disabling dwe and enabling den again. When drdy==1  read dout ?

 

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi,

this may be a typo but "daddr" is not a "register". It's an input to the XADC.

- wait for eoc
- take the output from "chan" and - put it into daddr (zero-padded with two high bits) , raise den with dwe=0
- when drdy goes up, get the result from dout
 

Share this post


Link to post
Share on other sites
  • 0

Hi  @Bilal29

You can find two examples of default XADC usage in Xilinx library Xilinx\SDK\201....\data\embeddedsw\XilinxProcessorIPLib\drivers\xadcps_v2_2\examples

It is well documented and it pretty much effortless. Everything is done in SDK, no hardware configuration is required. It worked for me.

I don't know what is your goal but these examples could be a good starting point.

Good luck!

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this