Limitation point on the use of DFM
1. It’ s prohibited to execute DFM enable/disable control in the SLOW mode(fs)
(write to DFMCR0<ACT1:0>=”10”). You should control DFM in the NORMAL mode.
2. If you stop DFM operation during using DFM (DFMCR0<ACT1:0>=” 10”) , you shouldn’t execute the
commands that change the clock f
DFM
to f
OSCH
and stop the DFM at the same time. Therefore the above
execution should be separated into two procedures as showing below.
LD (DFMCR0),C0H ; Change the clock f
DFM
to f
OSCH
LD (DFMCR0),00H ; DFM stop
3. If you stop high frequency oscillator during using DFM(DFMCR0<ACT1:0>= ”10”) , you should stop DFM
before you stop high frequency oscillator.
Examples of settings are below.
(1) Start Up / Change Control
(OK) Low frequency oscillator operation mode(fs) (high frequency oscillator STOP)
→ High frequency oscillator start up → High frequency oscillator operation mode(f
OSCH
)→DFM
start up → DFM use mode (f
DFM
)
LD (SYSCR0), 11---1--B ; High frequency oscillator start up/ Warming up start
WUP: BIT 2,(SYSCR0) ;
JR NZ,WUP ;
LD (SYSCR1), ----0---B ; Change the system clock fs to f
OSCH
LD (DFMCR0),01-0----B ; DFM start up / lock up start
LUP: BIT 5, (DFMCR0) ;
JR NZ,LUP ;
LD (DFMCR0),10-0----B ; Change the system clock f
OSCH to fDFM
(OK) Low frequency oscillator operation mode(fs) (high frequency oscillator Operate)
→ High frequency oscillator operation mode(f
OSCH
)→DFM start up → DFM use mode (f
DFM
)
LD (SYSCR1), ----0---B ; Change the system clock fs to f
OSCH
LD (DFMCR0), 01 -0----B ; DFM start up / lock up start
LUP: BIT 5, (DFMCR0) ;
JR NZ,LUP ;
LD (DFMCR0),10-0----B ; Change the system clock f
OSCH to fDFM
(NG) Low frequency oscillator operation mode(fs) (high frequency oscillator STOP)
→ High frequency oscillator start up → DFM start up → DFM use mode (f
DFM
)
LD (SYSCR0),11---1--B ; High frequency oscillator start up/ Warming up start
WUP: BIT 2,(SYSCR0) ;
JR NZ,WUP ;
LD (DFMCR0),01-0----B ; DFM start up / lock up start
LUP: BIT 5, (DFMCR0) ;
JR NZ,LUP ;
LD (DFMCR0),10-0----B ; Change the internal clock f
OSCH to fDFM
LD (SYSCR1), -----0---B ; Change the system clock fs to f
DFM
Check for the flag of warming up end
Check for the flag of warming up end