Other Parts Discussed in Thread: SYSBIOS
Hi,
When using the PRU for PTP applications, sync0 provides a 1Hz-1KHz clock synchronized to PTP. Would it be possible to have this output on Sync1 instead?
Thank you
David
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: SYSBIOS
Hi,
When using the PRU for PTP applications, sync0 provides a 1Hz-1KHz clock synchronized to PTP. Would it be possible to have this output on Sync1 instead?
Thank you
David
David,
1PPS output can only come out of Sync0 at the moment. It’s hard-coded in the firmware.
Regards, Garrett
David,
Industrial SDK (PRU SYNC0) is supported on AM572x IDK board:
.
Regards,
Garrett
Thank you Garret,
I think I just have one more question: Can I change the frequency of the sync0 output to higher values than 1kHz? If yes, how high this frequency can go ?
Thank you
David
David
1PPS signal is generated by Sync unit inside the IEP which is based on Compare1 event. The sync interval can be from 1ms to 1s, i.e., 1Hz to 1KHz by design. You can experiment the sync0 output (PTP_SYNC0_CYCLE_COUNT) with the following code snippet:
C:\ti\sysbios_ind_sdk_02.01.02.02\sdk\protocols\ptp\include\icss_ptp_time.h
#define PTP_SYNC0_CYCLE_COUNT 1000000
C:\ti\sysbios_ind_sdk_02.01.02.02\sdk\protocols\ptp\drivers\icss_ptp_time.c
/*Program compare 1 event value*/
ptpObjPtr->pulseInterval = PTP_ONE_SEC_NS_COUNT;
iep_reg_val = PTP_SYNC0_CYCLE_COUNT;
HWREG(emacBaseAddr->prussIepRegs + HW_ICSS_IEP_CMP1) = iep_reg_val;
Regards,
Garrett