How to speed up GPIO

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

How to speed up GPIO

Jump to solution
840 Views
tiejunhe
Contributor I

Hi everyone,   I'm working on iMX515, My linux driver has 3 statements :

  gpio_set_value(pin,1);

  gpio_set_value(pin,0);

  gpio_set_value(pin,1);

Then ,I can get a  negative pulse which pulse width is about 320ns. It seems too slowly, How can I speed it up?

Labels (1)
0 Kudos
Reply
1 Solution
691 Views
igorpadykov
NXP Employee
NXP Employee

Hi tiejun

one can write small subroutine on assembler for faster access, also it may be

recommended to have L2 cache enabled and the MMU, then try to find the entry

that corresponds to the area where the GPIO registers are mapped and set the

bufferable field for that particular mmu entry.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
2 Replies
692 Views
igorpadykov
NXP Employee
NXP Employee

Hi tiejun

one can write small subroutine on assembler for faster access, also it may be

recommended to have L2 cache enabled and the MMU, then try to find the entry

that corresponds to the area where the GPIO registers are mapped and set the

bufferable field for that particular mmu entry.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
691 Views
tiejunhe
Contributor I

Thanks,I use your method,and get a negative pulse which width is about 80ns.

0 Kudos
Reply