HOW CAN MAKE GPIO TOGGLE FASTER?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HOW CAN MAKE GPIO TOGGLE FASTER?

ソリューションへジャンプ
3,726件の閲覧回数
JHY
Contributor IV

I use i.MX6DL with linux 3.0.35 and run GPIO toggle only.

From above tests, GPIO toggle is measured only 50KHz.

It is too slow, I think, so do I miss anything?

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
3,212件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

one can find assembler examples in folder

uboot/cpu/arm_cortexa8

it is not possible to answer if it will generate about 300KHz in linux,

since this depends on board configuration. Only running test on real board

can answer on that.

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
3,212件の閲覧回数
lategoodbye
Senior Contributor I

Hi JHY,

please describe more in detail how you toggle the GPIOs (user space, kernel space).

Why do you need such high frequencies? For SPI or I2C?

Best regards

Stefan

0 件の賞賛
返信
3,212件の閲覧回数
JHY
Contributor IV

How can I find references of assembler subrutines? Using that, is it possible to generate about 300KHz in linux?

0 件の賞賛
返信
3,212件の閲覧回数
lategoodbye
Senior Contributor I

By the way there is also another way from userspace: http://chiragnagpal.com/examples.html

0 件の賞賛
返信
3,213件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

one can find assembler examples in folder

uboot/cpu/arm_cortexa8

it is not possible to answer if it will generate about 300KHz in linux,

since this depends on board configuration. Only running test on real board

can answer on that.

0 件の賞賛
返信
3,212件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi JHY

in general Linux is not real time system, it can have

large delays. In particular one can look at context switching

delays:

LMbench Benchmarks on i.MX

Probably you can write assembler subrouite for GPIOs or use

realtime OS like QNX.

Best regards

igor

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

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

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

0 件の賞賛
返信