NEC 78K0R/KE3 User Manual page 342

16-bit single-chip microcontrollers
Table of Contents

Advertisement

(1) Peripheral enable register 0 (PER0)
PER0 is used to enable or disable use of each peripheral hardware macro. Clock supply to a hardware macro
that is not used is stopped in order to reduce the power consumption and noise.
When serial array unit 0 is used, be sure to set bit 2 (SAU0EN) of this register to 1.
When serial array unit 1 is used, be sure to set bit 3 (SAU1EN) of this register to 1.
PER0 can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Address: F00F0H
After reset: 00H
Symbol
<7>
PER0
RTCEN
SAUmEN
0
1
Cautions 1. When setting serial array unit m, be sure to set SAUmEN to 1 first. If SAUmEN = 0, writing
to a control register of serial array unit m is ignored, and, even if the register is read, only
the default value is read (except for input switch control register (ISC), noise filter enable
register (NFEN0), port input mode register (PIM0), port output mode register (POM0), port
mode registers (PM0, PM1), and port registers (P0, P1)).
2. After setting the PER0 register to 1, be sure to set the SPSm register after 4 or more
clocks have elapsed.
3. Be sure to clear bits 1 and 6 of PER0 register to 0.
Remark m: Unit number (m = 0, 1)
(2) Serial clock select register m (SPSm)
SPSm is a 16-bit register that is used to select two types of operation clocks (CKm0, CKm1) that are
commonly supplied to each channel. CKm1 is selected by bits 7 to 4 of SPSm, and CKm0 is selected by bits 3
to 0.
Rewriting SPSm is prohibited when the register is in operation (when SEmn = 1).
SPSm can be set by a 16-bit memory manipulation instruction.
The lower 8 bits of SPSm can be set with an 8-bit memory manipulation instruction with SPSmL.
Reset signal generation clears this register to 0000H.
342
CHAPTER 11 SERIAL ARRAY UNIT
Figure 11-4. Format of Peripheral Enable Register 0 (PER0)
R/W
6
<5>
0
ADCEN
Stops supply of input clock.
• SFR used by serial array unit m cannot be written.
• Serial array unit m is in the reset status.
Supplies input clock.
• SFR used by serial array unit m can be read/written.
User's Manual U17854EJ9V0UD
<4>
<3>
IIC0EN
SAU1EN
Control of serial array unit m input clock
<2>
1
SAU0EN
0
TAU0EN
<0>

Advertisement

Table of Contents
loading

Table of Contents