Ok I found the problem why I don't got the pll to work, because I don't activated the USB PLL.
UMCRH=0x40;
before the clk selection and pll settings
but I just get 2Mhz in an Loop with just toggling the portb. Shouldn't it be 60Mhz/4 (4 operations toggle portb and near jump and toggle portb back and jump again)
At 60Mhz one operation one clock should be 16,6ns. But it needs 250ns for setting a port and an near jmp.
this is my test programm for toggling the port (without the init. of the clock, before)
t:
PORTB ^= 0xff;
goto t;
I hope someone can help me with this problem, or explain me why.
Thanks