Re: Fujitsu microcontroller (8-Bit) Clock Modes Problems
- From: Chris <christophe.ringler@xxxxxxxxx>
- Date: Wed, 7 Jan 2009 02:53:55 -0800 (PST)
On 6 Jan., 19:28, Jasen Betts <ja...@xxxxxxxxxx> wrote:
On 2009-01-06, Chris <christophe.ring...@xxxxxxxxx> wrote:
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 ?
perhaps you are misusing the symbol, maybe it should be used something
like this:
PLLC_MPEN = 1;
while(!(PLLC_MPEN & (1<<PLLC_MPRDY))){ /* wait */};
Hi,
It works ! That was the problem !
Thanks for the answer :-)
bye
Chris
.
- Follow-Ups:
- References:
- Fujitsu microcontroller (8-Bit) Clock Modes Problems
- From: Chris
- Re: Fujitsu microcontroller (8-Bit) Clock Modes Problems
- From: Jasen Betts
- Fujitsu microcontroller (8-Bit) Clock Modes Problems
- Prev by Date: Re: OT: Hot, Flat and Crowded
- Next by Date: Re: OT: Hot, Flat and Crowded
- Previous by thread: Re: Fujitsu microcontroller (8-Bit) Clock Modes Problems
- Next by thread: Re: Fujitsu microcontroller (8-Bit) Clock Modes Problems
- Index(es):
Relevant Pages
|