ICS and Port toggling Frequency

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ICS and Port toggling Frequency

739 Views
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

Labels (1)
0 Kudos
Reply
1 Reply

539 Views
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 Kudos
Reply