GPIO Pin Up-Down

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPIO Pin Up-Down

1,015 Views
Nirjul_Patel
Contributor III


Hello,

 

We Want A GPIO Pin Up-down time is nanosecond As Per our Application Requirement . But Now We Create a GPIO Driver module and use this module throughout GPIO pin up-down take 8 millisecond, So Can You Explain how to we achieve GPIO Pin up-down time in 8 millisecond to  1-5 nanosecound.

And we try to Add Clock-frequency in .dts file then time take also 8 millisecond,

Change in .dts File

gpioctr_device {
compatible = "myir,gpioctr";
clock-frequency = <1000000000>;
status = "okay";
gpioctr-gpios = <&gpio3 21 0>;
};

0 Kudos
5 Replies

897 Views
josephzhou1
Contributor V

 : r u a pure software engineer or have some triple E backgrd?

1-5 nanosecound?

i not heard that faster in a MCU GPIO  , it is impossible :1 machine clock also need 3--12 timer clocks right? hardware also cannot support right?

 
 

 

 

 

 

i.MX 8 series
Name                     Clock speed                            CPU cores
i.MX 8 QuadMax1.2 GHz + 1.6 GHz4× Cortex-A53 + 2× Cortex-A72
i.MX 8 QuadPlus1.2 GHz + 1.6 GHz4× Cortex-A53 + 1× Cortex-A72
i.MX 8 DualMax1.6 GHz2× Cortex-A72

 

 

thanks 

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 Kudos

1,005 Views
josephzhou1
Contributor V

 : r u a pure software engineer or have some triple E backgrd?

1-5 nanosecound?

i not heard that faster in a MCU GPIO  , it is impossible :1 machine clock also need 3--12 timer clocks right? hardware also cannot support right?

 
 

 

 

 

 

i.MX 8 series
Name                     Clock speed                            CPU cores
i.MX 8 QuadMax1.2 GHz + 1.6 GHz4× Cortex-A53 + 2× Cortex-A72
i.MX 8 QuadPlus1.2 GHz + 1.6 GHz4× Cortex-A53 + 1× Cortex-A72
i.MX 8 DualMax1.6 GHz2× Cortex-A72

 

 

thanks 

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 Kudos

989 Views
Nirjul_Patel
Contributor III

 

Hello@josephzhou1

I am pure Software Engineer

And I use i.mx8mm processor  board I want to know minimum time of GPIO pin up-down?
And Which factor affect On GPIO pin Up-down time ?
I want know how to set clock-frequency on particular GPIO pin?

 

0 Kudos

976 Views
Aubineau_FAE
NXP Employee
NXP Employee

Hi,

Max GPIOs frequency is in the datasheet:

vincent_aubinea_0-1648466581007.png

If you want to output a clock, you have CLKOUT1 & CLKOUT2 pins for this purpose, as described in the reference manual:

vincent_aubinea_1-1648467038447.png

/BR

Vincent

 

 

Tags (1)
0 Kudos

952 Views
Nirjul_Patel
Contributor III

 

Hello,

I changed a clock-frequency in dts file for particular pin, .dts file format is given below

gpioctr_device {
              compatible = "myir,gpioctr";
              status = "okay";
              clock-frequency = <4000000>;
              gpioctr-gpios = <&gpio3 21 0>;

}

if i change clock frequency then gpio pin up-down time will change or not???
and my second question is how to decrease a gpio toggle time???

0 Kudos