@Zdenek Krejci
Retry with just the POWKEY, POWCON, POWKEY sequence without the PLLKEY,
PLLCON. This should do when using the internal 32kHz R/C as source for
the PLL. Anyway: the question can not be answered without showing more
code, at least the implementation of sysdelay_ms().
@"jenny Lau"
There is no need to place links to Chip-Broker websites here. They will
not help to solve the OP's issue. The only useful technical information
on the linked pages have been links to datasheets which can be
downloaded from the ADI website directly.