All of lore.kernel.org
 help / color / mirror / Atom feed
* [OpenRISC] tick timer doubt
@ 2019-11-22 13:41 ecalvo
  2019-11-24  0:04 ` Stafford Horne
  0 siblings, 1 reply; 8+ messages in thread
From: ecalvo @ 2019-11-22 13:41 UTC (permalink / raw)
  To: openrisc

Hi!!

 

I have some doubts about the tick timer. Could someone help me? I explain
them below

 

*	I don't understand really well the example of or1k timer control
that is in that file: For example, how is ticks variable updated? 
*	If it was updated, I understand that if frequency is 100Hz, a new
tick takes place each 0.01 seg and with 100 ticks, a second has elapsed.
However, If I compile and run this code and, and I open with gtkwave the
generated vcd, I don't understand why the value of TTMR register is 1000000.
Is The value of TTMR register fixed by software using or1k_timer_set_period
function? Is it measured in Hz?

 

Thanks in advance

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.librecores.org/pipermail/openrisc/attachments/20191122/85f0c147/attachment.html>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-11-25 23:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-22 13:41 [OpenRISC] tick timer doubt ecalvo
2019-11-24  0:04 ` Stafford Horne
2019-11-25  8:20   ` ecalvo
2019-11-25  9:22     ` Stafford Horne
2019-11-25 10:09       ` ecalvo
2019-11-25 13:03         ` Stafford Horne
2019-11-25 13:24           ` ecalvo
2019-11-25 23:12             ` Stafford Horne

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.