HOW CAN MAKE GPIO TOGGLE FASTER?

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

HOW CAN MAKE GPIO TOGGLE FASTER?

跳至解决方案
1,421 次查看
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 解答
907 次查看
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 回复数
907 次查看
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 项奖励
907 次查看
JHY
Contributor IV

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

0 项奖励
907 次查看
lategoodbye
Senior Contributor I

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

0 项奖励
908 次查看
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 项奖励
907 次查看
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 项奖励