Nils Bauch

FBI Mode of MC9S08DZ60

Discussion created by Nils Bauch on Jan 29, 2010
Latest reply on Jan 29, 2010 by pgo

Hi guy's

 

I am trying to switch my MC9S08DZ60 from the default reset operation mode FEI to the FBI mode.

Therefore I setup the following code:

 


  MCGC2 = 0x00;  /* Set BDIV to 0 -> Divide by 1 */  MCGC1 |= 0x03; /* Enable Internal Reference Clock and let them stay enabled in Stop mode  MCGC1 |= 0x40; /* Select Clock source: Internal Reference Clock */     while((MCGSC&0x0C)!=0x04);   /* Wait until Internal Reference Clock is selected */

 After the command:

 

MCGC1 |= 0x40

the program flow will be frozen, and all displayed data in the debugger will be invalid.

 

Have anybody an idea? What I did wrong?

Outcomes