I want to use GPIO pins in the camera expansion connector pins.
There are 4 pins that I want to use : GPIO10(#85), GPIO6(#97), GPIO13(#96), GPIO7(#98)
I could see that they are for Camera FRSYNC, so I want to make “square wave”(PWM) to frame sync generation.
I tried to configure from /opt/nvidia/jetson-io/jetson-io.py but there was only #96 for dmic2 which I don’t know well.
How can I use these pins for PWM generator?
And I want to know if I can use it with python Jetson.GPIO module.
NO, I mean please learn more about pinmux.
You cannot use these pins now because they are not configured as GPIO, and you have to change it by specifying them in the pinmux spreadsheet.
It has nothing to do with Jetson.GPIO.
I think this way makes only the pins to normal GPIO, not PWM-able pin.
Since I want to use this as Frame synchronization,
is there any way to output desirable frame sync signal from these pins?
The original usage of CAM_FRSYNC1 (CIM PIN#85) is TSC_EDGE_OUT0 and I found out that TSC_EDGE_OUT signals are used as FSYNC signals supplied to sensors through the deserializer and the serializer.
for ex. I want to make 30fps frame sync signal.
Hello JerryChang,
Thank you for your answer.
My use-case is to connect 4cameras, via custom made board,
and the cameras are slave mode, which takes the image when the edge signal comes. So I want to make this signal and synchronize all.
So I designed a board to pull the signals of CAM_FRSYNCs, and wanted to enable it.
It is okay with at least one signal, but I want to enable and control them.
Or I can try to use pin #91(EXTPERIPH1_CLK/GPIO PP0), if I can use.
Is there any chance to control?
J54 MCLK02 EXTPERIPH1_CLK GP52_CLK1 50k pd EXTPERIPH1_CLK Output Drive 0 Disable Camera Master Clock 1 MCLK02_MCLK
assume you already have hardware connection to the FSYNC pin.
you’ll need to configure the pin as PWM, for example, you may use pin-15 on 40-pin expansion header. since this is by default configured as GPIO, you should also modify pinmux spreadsheet to update the customer usage as GP_PWM1.
please refer to Changing the Pinmux section for steps to change the pinmux.
besides, you may see-also Topic 229603 regarding to PWM configuration.
The developer kit camera connector does not have a pin with PWM capability.
so,
if FSYNC must be a periodic signal but does not need high accuracy (in terms of jitter),
you may use GPIO signal (the 120-pin camera connector) of AGX Orin developer kit.
please check design guide, [Table 3-3. GPIO Pin Description] for more details.