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?