ICS and Port toggling Frequency

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

ICS and Port toggling Frequency

740 次查看
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 回复

540 次查看
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 项奖励
回复