16-Bit Mpg Compare Clear Register (Upper/Lower) (Cpcur/Cpclr) - Fujitsu 8FX Hardware Manual

8-bit microcontroller new 8fx family
Table of Contents

Advertisement

MB95630H Series
21.6.6
16-bit MPG Compare Clear Register (Upper/Lower)
(CPCUR/CPCLR)
The 16-bit MPG compare clear register (upper/lower) (CPCUR/CPCLR) consists
of two 8-bit registers. CPCUR is the upper byte register and CPCLR the lower
byte register. When the values of these registers match the count value of the
16-bit timer, the 16-bit timer is reset to "0x0000".
The 16-bit MPG compare clear register (upper) (CPCUR) and the 16-bit MPG compare clear
register (lower) (CPCLR) are two 8-bit registers used to compare with the counter value of the
16-bit timer. Since the initial values of these registers are indeterminate, write values to these
registers before starting an operation.
Always use one of the following methods to access these registers.
Use the "MOVW" instruction (use a 16-bit access instruction to read and write the CPCUR
register address).
Use the "MOV" instruction to read or write CPCUR first and then CPCLR.
■ Register Configuration
CPCUR
bit
7
Field
CL15
Attribute
R/W
Initial value
X
CPCLR
bit
7
Field
CL07
Attribute
R/W
Initial value
X
Notes:
When the values of these registers match the count value of the 16-bit timer, the 16-bit
timer is reset to "0x0000" and the compare clear interrupt request flag bit (TCSR:ICLR) is
set. In addition, when the interrupt operation is enabled, an interrupt request is sent to the
CPU.
If the values loaded to the 16-bit MPG compare clear register (upper) (CPCUR) and the
16-bit MPG compare clear register (lower) (CPCLR) are the same as the 16-bit timer
counter value, the compare operation will not be performed until the next occasion in
which the values of CPCUR and CPCLR are the same as the 16-bit timer counter value.
MN702-00009-2v0-E
6
5
CL14
CL13
R/W
R/W
X
X
6
5
CL06
CL05
R/W
R/W
X
X
FUJITSU SEMICONDUCTOR LIMITED
CHAPTER 21 MULTI-PULSE GENERATOR
4
3
CL12
CL11
R/W
R/W
X
X
4
3
CL04
CL03
R/W
R/W
X
X
21.6 Registers
2
1
CL10
CL09
R/W
R/W
X
X
2
1
CL02
CL01
R/W
R/W
X
X
0
CL08
R/W
X
0
CL00
R/W
X
445

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95630h series

Table of Contents