EasyManuals Logo
Home>Renesas>Control Unit>R8C/20

Renesas R8C/20 User Manual

Renesas R8C/20
501 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #444 background imageLoading...
Page #444 background image
R8C/20 Group, R8C/21 Group 21. Usage Notes
Rev.2.00 Aug 27, 2008 Page 428 of 458
REJ09B0250-0200
21. Usage Notes
21.1 Notes on Clock Generation Circuit
21.1.1 Stop Mode
When entering stop mode, set the FMR01 bit to “0” (CPU rewrite mode disabled) and the CM10 bit to “1” (stop
mode). An instruction queue pre-reads 4 bytes from the instruction which sets the CM10 bit in the CM1 register
to “1” (stop mode) and the program stops. Insert at least 4 NOP instructions following the JMP.B instruction
immediately after the instruction which sets the CM10 bit to “1”.
Example to enter stop mode
BCLR 1,FMR0 ; CPU rewrite mode disabled
BSET 0,PRCR ; Protect disabled
FSET I ; Enable interrupt
BSET 0,CM1 ; Stop mode
JMP.B LABEL_001
LABEL_001:
NOP
NOP
NOP
NOP
21.1.2 Wait Mode
When entering wait mode, set the FMR01 bit to “0” (CPU rewrite mode disabled) and execute the WAIT
instruction. An instruction queue pre-reads 4 bytes from the WAIT instruction and the program stops. Insert at
least 4 NOP instructions after the WAIT instruction.
Example to execute the WAIT instruction
BCLR 1,FMR0 ; CPU rewrite mode disabled
FSET I ; Enable interrupt
WAIT ; Wait mode
NOP
NOP
NOP
NOP
21.1.3 Oscillation Stop Detection Function
Since the oscillation stop detection function cannot be used if the XIN clock frequency is less than 2 MHz, set
the OCD1 to OCD0 bits to 00b.
21.1.4 Oscillation Circuit Constants
Ask the maker of the oscillator to specify the beat oscillation circuit constants on your system.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas R8C/20 and is the answer not in the manual?

Renesas R8C/20 Specifications

General IconGeneral
BrandRenesas
ModelR8C/20
CategoryControl Unit
LanguageEnglish

Related product manuals