HW clock division possible with TX2? (30hz => 5 hz, low latency is main goal)

Is there a way to do HW-assisted clock division with the TX2 with a clock coming in via GPIO? e.g. perhaps the PWM frequency divider can be fed from a GPIO pin? Even a hack approach would be interesting, as long as I don’t have to deal with Linux kernel latency doing GPIO.

This is very low frequency, the clock would be 30hz. The reason for looking for a HW approach is the latency needs to be very low, ideally in the microsecond range, though I’ll take what I can get ;-)

Hi, please refer to this topic: https://devtalk.nvidia.com/default/topic/1052140/jetson-tx2/can-i-make-a-25mhz-pwm-signal-/post/5344004/#5344004

Hi Trumany! Thanks for your response, I had looked at that thread before, but it doesn’t cover the possibility of using an external clock source fed via GPIO. Maybe the answer is “you can’t”.

GPIO can be set as input of external clock. The sampling rate is up to about 50Khz.