cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vamshig51
Contributor
Contributor
365 Views
Registered: ‎06-10-2019

64-bit GTC in ZYNQ7000 SoC

Dear Support Team,

I am working on ZC702, and trying to use 64-bit global timer in comparator mode with interrupt enabled.

timer1 to interrupt for every 10sec

I see interrupt handler is called twice for every 10sec, difference betwen the two interrupts is 30 nanosec 

  • 10sec & 10+30nanosec
  • 20+30 & 20 + 60

Following steps I followed to initialze timer.

  • disable timer
  • clear counter registers
  • load comparator value equal to count for 10sec
  • I have connected the gic to handle 27 irq_id using XScuGic_Connect & enabled using XScuGic_Enable;
  • start timer
  • clear event flag in interrupt status reg of timer, by writing 1
  • enable timer itself interrupt


in isr handler

  • clear event flag in interrupt status reg of timer, by writing 1
  • disable timer
  • clear count register
  • enable timer

Please suggest

Tags (3)
0 Kudos
0 Replies