Gordon,
I'ts the first time I use PE and its look great, have more experience with other controllers and IDE's. but no problem.
I can't find in the PE where/how I can set de HGO bit, When I imported the project from PE 6.3 the frequency was set on 4Mhz.
but searching in de files I found:
this was generated in the old version CW 6.3 ;
/* ICGC1: HGO=1,RANGE=1,REFS=1,CLKS1=1,CLKS0=1,OSCSTEN=0,LOCD=0,??=0 */
ICGC1 = 0xF8; /* Initialization of the ICG control register 1 */
This generated in the CW10.5 version;
/* ICGC1: HGO=0,RANGE=1,REFS=1,CLKS1=0,CLKS0=0,OSCSTEN=0,LOCD=0,??=0 */
ICGC1 = 0x60; /* Initialization of the ICG control register 1 */
So you are right and yes I think the ICG1 setting are right generated if I make the right settings.
I have fount what I have to set in the PE if I set Operating mode to High gain the clock range is changing to <1MHz,16Mhz>
So this is not changing automatically.......
Thanks Gordon for the information that lead me to the solution..
Rob