I have use a christal with 8 MHz in Version 2.0.7.6.
This code works fine.
Now in Version 2.0.7.7 it's dont work.
[code:1:3c746b0f7c]$crystal = 32000000 ' xmega128 is running on 32 MHz
$regfile = "xm128a1def.dat"
$lib "xmega.lib" ' add a reference to this lib
$loader = &H10000
'configure the systemclock
Config Osc = Disabled , Extosc = Enabled , Range = 2mhz_9mhz , Startup = Xtal_256clk
'Set the Multiplication factor and select the clock Reference for the PLL
Cpu_ccp = &HD8
Osc_pllctrl = &B11_0_00100 ' EXTERNAL clock Source and Multiplication factor = 4
Bitwait Osc_status.3 , Set 'Check if XOSCRDY is ready
Set Osc_ctrl.4 ' PLL enable
Config Sysclock = Pll , Prescalea = 1 , Prescalebc = 1_1
[/code:1:3c746b0f7c]
[b:3c746b0f7c][color=red:3c746b0f7c](BASCOM-AVR version : 2.0.7.7 )[/b:3c746b0f7c][/color:3c746b0f7c]
↧