AnsweredAssumed Answered

MC9S08QE4 not running with external crystal

Question asked by soli255 on Jan 30, 2013
Latest reply on Feb 5, 2013 by soli255

Hello, I have a problem with running my QE4 with external crystal (I have tried 11.0592MHz / 8MHz / 4MHz - different packages and manufacturers)

 

My code:

 

  ICSC2_BDIV     = 0b10;

  ICSC2_RANGE    = 1;

  ICSC2_HGO      = 1;

  ICSC2_LP       = 0;

  ICSC2_EREFS    = 1;

  ICSC2_ERCLKEN  = 0;

  ICSC2_EREFSTEN = 0;

  

while ( ICSSC_OSCINIT == 0 );

  ICSC1_CLKS     = 0b10;

  ICSC1_RDIV     = 3;

  ICSC1_IREFS    = 0;

  ICSC1_IRCLKEN  = 0;

  ICSC1_IREFSTEN = 0;

 

Problem is that program freez on while condition - crystal is not running. I use standart connection to XTAL and EXTAL pins with 22p capacitors and 1MR resistor.

 

Any suggestion what is wrong?

 

Thx

Outcomes