I've been making reasonable (good, even) progress with the Vitis IDE and the ZyboZ7. A question though about clocks on this board and their interface to the Zybo.
I've been using the xscutimer module in interrupt mode. However, I'm struggling to figure out appropriate values for the TIME_LOAD_VALUE.
If I set it to a pretty high number (hex FFFF FFFF) (dec 4,294,967,295), I see events happen at about 0.8s. If I set it to 9FFF FFFF (dec 2,684,354,559), I see an event about every 0.5s (they scaled pretty linearly). Since I believe the timer is just counting this many clock cycles, it seems the clock is way too high - somewhere around 5.3E9 (or I'm not sure how to set this value).
I've looked at the Zybo reference docs and seem some references to clocks (667Mhz). I will look further at the Arm9 cortex reference to gain some insight. But if anyone can help me out, much appreciated.
Question
engrpetero
I've been making reasonable (good, even) progress with the Vitis IDE and the ZyboZ7. A question though about clocks on this board and their interface to the Zybo.
I've been using the xscutimer module in interrupt mode. However, I'm struggling to figure out appropriate values for the TIME_LOAD_VALUE.
If I set it to a pretty high number (hex FFFF FFFF) (dec 4,294,967,295), I see events happen at about 0.8s. If I set it to 9FFF FFFF (dec 2,684,354,559), I see an event about every 0.5s (they scaled pretty linearly). Since I believe the timer is just counting this many clock cycles, it seems the clock is way too high - somewhere around 5.3E9 (or I'm not sure how to set this value).
I've looked at the Zybo reference docs and seem some references to clocks (667Mhz). I will look further at the Arm9 cortex reference to gain some insight. But if anyone can help me out, much appreciated.
Peter
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now