Fujitsu MB91F109 FR30 Hardware Manual page 134

Fr30 series 32-bit microcontroller
Table of Contents

Advertisement

CHAPTER 3 CLOCK GENERATOR AND CONTROLLER
CHC_1:
call
VCO_RUN
PLL_SET_END:
ld
@R15+, PS
; ************************************************************
;
VCO Setting
; ************************************************************
VCO_RUN:
st
R3, @-R15
ldi:8
#PCTR _MASK, R3
and
R5, R3
beq
LOOP_100US_END
bandl
#0111B, @r1
st
R2, @-R15
ldi:20
#0x15E, R2
WAIT_100US:
add2
#(-1), R2
bne
WAIT_100US
LOOP_100US_END:
ld
@R15+, R2
ld
@R15+, R3
ret
110
; pop processor status
; push R3
; PCTR_MASK =0000 1000 b
; PTCR->VSTP=1 ?
; if VSTP = 0 return
; set VSTP = 0
; push R2 for Loop counter
; wait 100 S
; 100us = 160ns(6.25MHz) * 7 * 100 (2BC)cycle
; 2BCh/2 = 15Eh (if cache on)
;
; Pop R2
; Pop R3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91f109

Table of Contents