This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I can't select external XTAL (ADuC7026)

Hi,
well i am using de ADuC7026 and have problems in configure the external clock. I can't debug if i put at the beginning of main():
// PLLKEY1=0xAA;
// PLLCON=0x01;
// PLLKEY2=0x55;
// dummy1=27;
// dummy2=14;
// dummy1=dummy1+dummy2;

and i need to use the external xtal because of precision. What am i doing wrong?
I can't debug and uVision gets lots of errors like JTAG, dll cancelled....
I tried to run without debugging but the ADuC doesn't work well... i have 3 leds on I/O ports and at the beggining (in main) i turn on one, but sometimes when i reset de uC the all three turn on, and sometimes not.... so it doesn't do what i want.

Can you please help me?

Parents
  • I do not know about the ADuc, but many other provblems with configurable chips (I use SILabs f12x and Philips LPC) have been fixed by moving the configuration to the very beginning of (a local, renamed copy of) startup.a51.

    Erik

    Some things go awry when the code which you do not see that lies from the beginning of startup till the entry to main() operate with the default initialization. The your code operates with diffrent parametres (from top of main) and "something" is out of synch.

Reply
  • I do not know about the ADuc, but many other provblems with configurable chips (I use SILabs f12x and Philips LPC) have been fixed by moving the configuration to the very beginning of (a local, renamed copy of) startup.a51.

    Erik

    Some things go awry when the code which you do not see that lies from the beginning of startup till the entry to main() operate with the default initialization. The your code operates with diffrent parametres (from top of main) and "something" is out of synch.

Children
No data