KL03 Fast GPIO Registers

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

KL03 Fast GPIO Registers

512件の閲覧回数
ChristopherParn
Contributor I


Hello

I have started to used the fast GPIO registers on the KL03 but only seeing a marginal increase in I/O performance from 3.6MHz to 4MHz.

What performance increase should I be seeing?

How is the KL03 correctly setup to enable the faster I/O performance?

many thanks

Chris Parnell

ラベル(2)
0 件の賞賛
2 返答(返信)

285件の閲覧回数
egoodii
Senior Contributor III

I expect the 'fast GPIO register' accesses are but a small part of your total instruction count.  You MUST look very carefully at the assembly-code for ANY application needing speed-optimization., and understand the consequences of 'functions' and 'branches' in such a loop.  Above all, you must maximize CPU register usage to avoid excess loads & stores.

0 件の賞賛

285件の閲覧回数
mjbcswitzerland
Specialist V

Hi Chris

WIth 48MHz system clock, 24MHz bus clock and 24MHz flash clock (last one probably not relevant) the port output toggle rate using the normal GPIO is 8MHz

The same using the FGPIO is 24MHz.

The FPGIO accesses are 3x faster (1 output change per core clock, compared to 1 output change per 3 core clocks).

As Earl pointed out, it depends on your test SW since if it has additional instructions being executed the port accesses will only be a percentage of the overhead.

Regards

Mark

Kinetis: µTasker Kinetis support

KL03: µTasker FRDM-KL03Z support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 件の賞賛