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: 
Highlighted
Contributor
Contributor
2,392 Views
Registered: ‎09-15-2008

Timer values in the XPS Timer core

I'm working on a design with the XPS Timer core which requires clock-cycle accuracy of the timer's generator output, and I'm having a little bit of trouble figuring something out from the datasheet for the core.

 

In generator mode, exactly how long is the interval between interrupts? The datasheet says that the timer value loaded into the "Load Register" is called the "generate value". That seems normal enough. But then on page 3 of the datasheet, there is this little gem:

 

"If the counter is set up as a down counter, the generate value is the number of clocks in the timing interval. The period of the GenerateOut signal is the generate value times the clock period. When the counter is set to count down, TIMING_INTERVAL = (TLRx + 2) x PLB_CLOCK_PERIOD".

 

It seems to say two different things - in one, the number of clocks in each interval is whatever value I load into TLR. In the other, the number of clocks per interval is (TLR + 2) . Which one is it?

0 Kudos