вот инициализационный код для процессора LPC2103, отладчик IAREW при отладке через JTAG почему-то зависает на строчке "while(!(PLLSTAT & PLOCK)){}" в чем проблема? /* Setting Multiplier and divider values */ PLLCFG=0x25; feed(); /* Enabling the PLL */ PLLCON=0x1; feed(); /* Wait for the PLL to lock to set frequency */ while(!(PLLSTAT & PLOCK)){} /* Connect the PLL as the clock source */ PLLCON=0x3; feed(); /* * Enabling MAM and setting number of clocks used for * Flash memory fetch */ MAMCR=0x2; MAMTIM=0x4; /* * Setting peripheral Clock (pclk) to System * Clock (cclk) */ VPBDIV=0x1;
|