269
Chapter 9
Clock Generator
Preliminary User’s Manual U15839EE1V0UM00
Sample coding
<1> ST.B
r11, PSM [r0]
; Set PSM register
<2> MOV 0x04, r10
<3> ST.B
r10, PRCMD [r0] ; Write PRCMD register
<4> ST.B
r10, PSC [r0]
; Set PSC register
<5> NOP
; Dummy instruction
<6> NOP
; Dummy instruction
<7> NOP
; Dummy instruction
<8> NOP
; Dummy instruction
<9> NOP
; Dummy instruction
(next instruction)
; Execution routine after software STOP mode and IDLE mode release
No special sequence is required to read the specific register.
Cautions: 1. A store instruction for the command register does not accept interrupts. This
coding is made on assumption that <3> and <4> above are executed by the pro-
gram with consecutive store instructions. If another instruction is set between
<3> and <4>, the above sequence may become ineffective when the interrupt is
accepted by that instruction, and a malfunction of the program may result.
2. Although the data written to the PHCMD register is dummy data, use the same
register as the general register used in specific register setting <4> for writing to
the PHCMD register (<3>). The same method should be applied when using a
general register for addressing.
3. At least 5 NOP instructions must be inserted after executing a store instruction to
the PSC register to set software STOP or IDLE mode.
4. Do not perform a write operation to the PRCMD and specific registers using DMA
transfer.
Remarks: 1. To write data to the PSC register, use the store instruction (ST/SST) and bit manipula-
tion instruction (SET1/CLR1/NOT1). The contents of this register can be read in the nor-
mal sequence.
2. It is recommended to monitor the status of the clock-sources after a power-save mode
has been released. If a power-save mode release condition happened after setting the
STP bit, but before the system has entered the related power-save mode, the clock
source may not be changed already to the main-oscillator. In this case PLL/SSCG still
remains operating.
Содержание mPD703128
Страница 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Страница 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Страница 612: ......