ICS and Port toggling Frequency

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

ICS and Port toggling Frequency

931件の閲覧回数
Designer11
Contributor IV

Hi All,

 

I tried to determine whether my bus clock was set correctly at 8Mhz on the QGE32 microcontroller. I wrote a little program to toggle a port and I measured the frequency, 280Khz or 3.57 uSec. My question is how doe this port toggle frequency correlate to whether the bus frequency is 8Mhz or not. 

 

Below is my little program

ICSC2 = 0x20;

ICSC1 = 0x06;

PTBD_PTBD7 = 0x00;

PTBDD_PTBDD7 = 0x01; //Set port B.7 output  
for(;:smileywink:
  {
      PTBD_PTBD7 ^=1;
    __RESET_WATCHDOG();    /* feeds the dog */
  } /* loop forever */

 

 

BR,

D

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

731件の閲覧回数
Designer11
Contributor IV

Thanks, to this thread.

https://community.freescale.com/message/34070#34070

 

I finally figured out the correlation between bus and port toggle frequency.

0 件の賞賛
返信