How to speed up GPIO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to speed up GPIO

跳至解决方案
1,519 次查看
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?

标签 (1)
0 项奖励
回复
1 解答
1,370 次查看
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 项奖励
回复
2 回复数
1,371 次查看
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 项奖励
回复
1,370 次查看
tiejunhe
Contributor I

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

0 项奖励
回复