How to speed up GPIO

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,046件の閲覧回数
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 解決策
897件の閲覧回数
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 返答(返信)
898件の閲覧回数
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 件の賞賛
返信
897件の閲覧回数
tiejunhe
Contributor I

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

0 件の賞賛
返信