IO Port speed does not match BUSCLK frequency

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

IO Port speed does not match BUSCLK frequency

ソリューションへジャンプ
1,192件の閲覧回数
silviopistolesi
Contributor II

KL25, external oscillator 8Mhz, core freq. 48Mhz, bus freq. 24Mhz.

when I test the bus speed with the following code, the max freq. speed is 8 Mhz and not 24Mhz, why?

How do I must configure the microprocessor?

  while (1)

  {

  GPIOB_PCOR = 0x00000100;

  GPIOB_PSOR = 0x00000100;

  GPIOB_PCOR = 0x00000100;

  GPIOB_PSOR = 0x00000100;

  GPIOB_PCOR = 0x00000100;

  GPIOB_PSOR = 0x00000100;

  GPIOB_PCOR = 0x00000100;

  GPIOB_PSOR = 0x00000100;

  GPIOB_PCOR = 0x00000100;

  GPIOB_PSOR = 0x00000100;

}

Thanks

ラベル(2)
タグ(2)
1 解決策
915件の閲覧回数
chris_brown
NXP Employee
NXP Employee

Hi Silvio,

You're not actually using the IO Port in your code.  If you want to use the IO Port, write FGPIOB_PCOR = <value> instead.

Also, remember that the while(1) will take instruction cycles and your compiler settings may compile the statements into multiple instructions.  So you may still not be able to achieve pin toggling at half the core clock frequency.

Thanks,

Chris

元の投稿で解決策を見る

2 返答(返信)
916件の閲覧回数
chris_brown
NXP Employee
NXP Employee

Hi Silvio,

You're not actually using the IO Port in your code.  If you want to use the IO Port, write FGPIOB_PCOR = <value> instead.

Also, remember that the while(1) will take instruction cycles and your compiler settings may compile the statements into multiple instructions.  So you may still not be able to achieve pin toggling at half the core clock frequency.

Thanks,

Chris

915件の閲覧回数
silviopistolesi
Contributor II

thanks!

Now it's ok.