Registers To Controlling Serial Interface Iic0 - NEC 78K0R/KE3 User Manual

16-bit single-chip microcontrollers
Table of Contents

Advertisement

12.3 Registers to Controlling Serial Interface IIC0

Serial interface IIC0 is controlled by the following eight registers.
• Peripheral enable register 0 (PER0)
• IIC control register 0 (IICC0)
• IIC flag register 0 (IICF0)
• IIC status register 0 (IICS0)
• IIC clock select register 0 (IICCL0)
• IIC function expansion register 0 (IICX0)
• Port mode register 6 (PM6)
• Port register 6 (P6)
(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 interface IIC0 is used, be sure to set bit 4 (IIC0EN) 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
IIC0EN
0
1
Cautions 1. When setting serial interface IIC0, be sure to set IIC0EN to 1 first. If IIC0EN = 0, writing to a
control register of serial interface IIC0 is ignored, and, even if the register is read, only the
default value is read (except for port mode register 6 (PM6) and port register 6 (P6)).
2. Be sure to clear bits 1 and 6 of PER0 register to 0.
(2) IIC control register 0 (IICC0)
This register is used to enable/stop I
IICC0 can be set by a 1-bit or 8-bit memory manipulation instruction. However, set the SPIE0, WTIM0, and
ACKE0 bits while IICE0 bit = 0 or during the wait period. These bits can be set at the same time when the
IICE0 bit is set from "0" to "1".
Reset signal generation clears this register to 00H.
CHAPTER 12 SERIAL INTERFACE IIC0
Figure 12-5. Format of Peripheral Enable Register 0 (PER0)
R/W
6
<5>
0
ADCEN
Control of serial interface IIC0 input clock
Stops supply of input clock.
• SFR used by serial interface IIC0 cannot be written.
• Serial interface IIC0 is in the reset status.
Supplies input clock.
• SFR used by serial interface IIC0 can be read/written.
2
C operations, set wait timing, and set other I
User's Manual U17854EJ9V0UD
<4>
<3>
IIC0EN
SAU1EN
SAU0EN
<2>
1
<0>
0
TAU0EN
2
C operations.
479

Advertisement

Table of Contents
loading

Table of Contents