Fujitsu MB90335 Series Hardware Manual page 377

16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 15 8/16-BIT PPG TIMER
15.3 Operation of 8/16-bit PPG Timer
■ Writing Timing to Reload Register
In any modes other than the 16-bit PPG mode, the word transfer instruction is recommended to write data
into the reload registers PRLL and PRLH. When the data item is written in the register by using the byte
transfer instructions for two times, an unexpected pulse width output may be generated depending on the
timing.
Figure 15.3-3 shows the timing for writing in reload register.
PPG0
In Figure 15.3-3, when the PRLL is updated from A to C before the [1] timing and the PRLH value is
updated from B to D after the [1] timing, the PRL values at the [1] timing are represented as PRLL = C and
PRLH = B to generate pulses of the count number C for the L side and the count number B for H side only
once. Similarly, in order to write data in the PRL of ch.0/ch.2 and ch.1/ch.3 in the 16-bit PPG mode, the
long-word transfer instruction is used or the word transfer instruction is sequentially used for the PRL of
the ch.0 → ch.1 (ch.2 → ch.3). In this mode, the data are temporally written from the ch.0/ch.2 to the
PRL. Then, when they are written in the PRL of ch.1/ch.3, they actually written in the PRL of ch.0.
In modes other than the 16-bit PPG mode, data can be written independently to the ch.0/ch.2 and ch.1/ch.3.
Figure 15.3-4 shows the block diagram of writing to PRL register.
Writing data of PRL of ch.0
Writing to ch.0
other than
16-bit PPG mode
356
Figure 15.3-3 Timing Chart for Writing in Reload Register
A
B
A
Figure 15.3-4 Block Diagram of Writing to PRL Register
Temporary latch
PRL of ch.0
FUJITSU MICROELECTRONICS LIMITED
B
C
B
C
[1]
Writing data of PRL of ch.1
Synchronize with writing
to ch.1 at 16-bit PPG mode
and transfer
MB90335 Series
D
C
D
Written data of ch.1
PRL of ch.1
CM44-10137-6E

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lxMb90v330aMb90f337Mb90337

Table of Contents