[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] USRP2: PPS interrupt handler?

From: Matt Ettus
Subject: Re: [Discuss-gnuradio] USRP2: PPS interrupt handler?
Date: Tue, 29 Sep 2009 14:51:45 -0700
User-agent: Thunderbird (X11/20090825)

john brzustowski wrote:
Does the current USRP2 FPGA/firmware release allow for a PPS interrupt
handler?  I've tried adding these lines to the txrx.c firmware app:

   static void
   test_pps_handler(unsigned irq)
     putstr("Got to PPS handler at time:");
     pic_regs->pending = PIC_PPS_INT;

     /* inside main() */
     pic_register_handler(IRQ_PPS, test_pps_handler);
     putstr("\nRegistered pps interrupt handler\n");

Sending a pulse into the PPS SMA port doesn't trigger the handler.
Based on fragments I found in the mailing lists, I also tried including these lines inside main():

The pps interrupt is currently disabled in the FPGA, commented out in timing/time_sync.v

We can re-enable it if you need, or you can build your own fpga with that piece of logic included.

     timesync_regs->tick_control |= TSC_TRIGGER_EVERYPPS;

but that changed nothing.  Am I doing something wrong, or is this

Those won't affect what you're trying to do.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]