DEMO9S12NE64 dont run in normal mode

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

DEMO9S12NE64 dont run in normal mode

1,298 Views
fmaesso
Contributor II
Hi!
My english is very bad, sorry!
Im using the DEMO9S12NE64 with demotcp. Whem I run the demo in the debug mode the DEMO9S12NE64 send a message in TCP and UDP protocol. When I start the DEMO9S12NE64 with SW3 in the position 1, the webserver run, dhcp run but the message in TCP or UDP protocol dont run. Im setting the PLL like this:

CLKSEL=0;
PLLCTL_PLLON = 0; /* Disable the PLL */
SYNR = 15; /* Set the multiplier register */
REFDV = 15; /* Set the divider register */
PLLCTL = 112;
while(!CRGFLG_LOCK); /* Wait */
CLKSEL_PLLSEL = 1; /* Select clock source from PLL */

what happen?

thanks
Labels (1)
0 Kudos
1 Reply

205 Views
CCandido
Contributor V
ola fmaesso,
eu tenho cofiguração de PLL para cristal 4mhz /24mhz de bus.
feito para DP256 mas, deve funcionar.
 
Xtal=4mhz
#define _BUSCLOCK  24
 
void PLL_Init(void){
  
    
 #if _BUSCLOCK == 24
 SYNR = 0x05;      // PLLOSC = 48 MHz
 #else
 SYNR = 0x00;      // PLLOSC = 8 MHz
 #endif
 
 REFDV = 0x00;
  
 CLKSEL = 0x00;
    
 PLLCTL = 0xD1;
  
 while((CRGFLG&0x08) == 0){ }       
 CLKSEL_PLLSEL = 1;  
     
}
0 Kudos