Complete the following steps to
generate a pulse train on PPS:
- Program 11 or 10 (for interrupt) in Bits [6:5], TRGTMODSEL, of
MAC_PPS_Control Register. This instructs the MAC to use the Target Time
registers for start time of the PPS signal output.
- Program the start time value in the Target Time
registers.
- Program the interval value between the train of pulses on the
PPS signal output in MAC_PPS (#i)_Width (for i=0;i <=1) Register.
- Program the width of the PPS system in MAC_PPS (#i)_interval
(for i=0;i <=1) Register.
- Program Bits[3:0], PPSCMD, of MAC_PPS_Control Register to
0010. This instructs the MAC to generate train of pulses on the PPS signal
output with start time programmed in Target Time registers.
- Program the stop value in the Target Time registers. Make sure
that Bit 31 (TSTRBUSY) of MAC_PPS(#i)_Target_Time_Nanoseconds (for i=0; i
<=1) Register s reset before programming the Target Time registers
again.
- Program the PPSCMD field (bit 3:0) of MAC_PPS_Control to 0100.
This stops the train of pulses on PPS signal output after the programmed stop
time specified in Step 6 elapses.
You can stop the pulse train at any
time by programming 0101 in the PPSCMD field. Similarly, you can cancel the Stop
Pulse train command (given in Step 7) by programming 0110 in the PPSCMD field before
the time (programmed in Step 6) elapses. You can cancel the pulse train generation
by programming 0011 in the PPSCMD field before the programmed start time (in Step 2)
elapses.