English
Language : 

SH7616 Datasheet, PDF (145/935 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH™ RISC engine Family/SH7600 Series
Section 3 Oscillator Circuits and Operating Modes
Sample code for changing the frequency is shown below.
;
SH7616 frequency change
;
;
FMR .equ h'fffffe90
WTCSR .equ h'fffffe80
RSTCSR .equ h'fffffe83
PACR .equ h'fffffc80
XRAM .equ h'1000e000
.export _init_FMR
_init_FMR:
mov.l #XRAM,r1
mov.l r1,r5
mov.l #FREQUENCY,r2
mov.l #FREQUENCY_END,r3
program_move:
mov.w @r2,r0
mov.w r0,@r1
add #2,r1
add #2,r2
cmp/eq r2,r3
bf
program_move
nop
mov.l #PACR,r1
mov.w #h'0008,r0
mov.w r0,@r1
Rev. 2.00 Mar 09, 2006 page 119 of 906
REJ09B0292-0200