Pwc Data Buffer Register (Pwcr) - Fujitsu F2MC-16LX Hardware Manual

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 15 PWC TIMER
15.2.2

PWC Data Buffer Register (PWCR)

Configuration and function of PWC data buffer register (PWCR) are described.
PWC Data Buffer Register (PWCR)
Figure 15.2-3 shows the bit configuration of PWC data buffer register (PWCR).
Figure 15.2-3 Bit Configuration of PWC Data Buffer Register (PWCR)
00005F
00005E
R/W : Readable/Writable
The function of PWC data buffer register (PWCR) varies in between the timer mode and the pulse width
setting mode that are set by the PWCSR register bit 2 to "0" (MOD2 to MOD0).
In the timer mode (read/write enabled)
Becomes the reload register that holds the reload data when the reload timer operates (PWCSR bit 3: S/C =
1). It is reading/writing in this case, it is possible in both writing.
Becomes a direct access to the up count timer in the one-shot timer operation mode (PWCSR bit 3: S/C =
0). Perform the write operation when the timer stops although either read or write is possible also in this
case. Reading is always enabled to read the timer value in the count operation.
In the pulse width measurement mode (read only enabled)
Becomes the buffer register that holds the previous measurement result in the continuous measurement
mode (PWCSR bit 3: S/C = 1).
In this case, the read only is enabled and no register value will be changed even when writing.
Becomes a direct access to the up count timer in the single mode (PWCSR bit 3: S/C = 0).
Also in this case, the read only is enabled and no register value will be changed even when writing.
Reading is anytime enabled to obtain the timer value during the count operation. When the measurement is
finished, the measured value is held.
Note:
Please access the PWCR register by word move operation. Be initialized to "00
364
15
14
13
12
D15
D14
D13
D12
H
(R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W)
7
6
5
4
D7
D6
D5
D4
H
(R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W) (R/W)
11
10
9
8
D11
D10
D9
D8
3
2
1
0
D3
D2
D1
D0
PWCR
PWC data buffer register
Initial value 00000000
B
PWCR
PWC data buffer register
Initial value 00000000
B
" when resetting.
B

Advertisement

Table of Contents
loading

Table of Contents