C
Chris
Hi,
I'm programming on a Fujitsu Microcontroller from the MB95Fxxx family
and I'm trying to switch the clock modes. (I'm using the MB95
So I can switch from MAIN-PLL Clock to SUB-PLL Clock without any
problems but I can not switch from SUB-PLL to MAIN-PLL correctly...
I managed to isolate the prob: to switch the clock modes we only have
2 registers (SYCC (0x07) and PLLC (0x06)).
If I read the value back (I copied them into a variable) and compare
them with the values in the memory map, respectively on address 0x06
and 0x07, the values don't correspond !
Code to switch from SUB-PLL to MAIN-PLL Code
PLLC_MPEN = 1;
While (!PLLC_MPRDY); /* the program waits here */
The Symbol PLLC_MPRDY is 0, but the corresponding bit in memory at
address 0x06 is set !
So the program works and switch every 2s in one of both modes. (I
checked if the quartz were oscillating)
Does someone already have this problem ? or have a solution ?
Thanks
Chris
I'm programming on a Fujitsu Microcontroller from the MB95Fxxx family
and I'm trying to switch the clock modes. (I'm using the MB95
So I can switch from MAIN-PLL Clock to SUB-PLL Clock without any
problems but I can not switch from SUB-PLL to MAIN-PLL correctly...
I managed to isolate the prob: to switch the clock modes we only have
2 registers (SYCC (0x07) and PLLC (0x06)).
If I read the value back (I copied them into a variable) and compare
them with the values in the memory map, respectively on address 0x06
and 0x07, the values don't correspond !
Code to switch from SUB-PLL to MAIN-PLL Code
PLLC_MPEN = 1;
While (!PLLC_MPRDY); /* the program waits here */
The Symbol PLLC_MPRDY is 0, but the corresponding bit in memory at
address 0x06 is set !
So the program works and switch every 2s in one of both modes. (I
checked if the quartz were oscillating)
Does someone already have this problem ? or have a solution ?
Thanks
Chris