BAT32G1x9 user manual | Chapter 20 Serial interface IICA
737 / 1149
Rev.1.02
20.3.1
Peripheral enable register 0/1 (PER0/1).
Per0/1 registers are registers that are set to enable or disable clocks to each peripheral hardware. Reduce power
consumption and noise by stopping clocking hardware that is not in use.
To use the serial interface IICA0, you must replace PER0 Bit5 (IICA0EN) is set to "1".
To use the serial interface IICA1, you must replace PER1 Bit2 (IICA1EN) is set to "1".
The PER0 register is set via the 8-bit memory operation instruction.
After generating a reset signal, the value of this register changes to "00H".
For more information about registers, see "4.3.6 Peripheral Allowable Registers 0, 1, 1 (PER0, PER1, PER1)
”.
Note 1
To set the serial interface
IICA, the following registers must first be set in
the
IICAnEN
bit "1". When
the IICAnEN
bit
is
"0"
, the value of the control register of
the serial interface
IICAn
is the initial value, ignoring the write operation (port
multiplexing function configuration register (PxxCFG),
port mode registers (PMxx), and port mode control registers
(PMCxx).)
•
IICA control register
n0
(IICCTLn0).
•
IICA flag register
n
(IICFn).
•
IICA status register
n
(IICSn).
•
IICA control register
n1
(IICCTLn1).
•
IICA low-level width setting register
n
(IICWLn).
•
IICA high level width setting register
n
(IICWHn).
Note: n=0,1
20.3.2
IICA control register n0 (IICCTLn0).
This is a register that starts or stops
I2C
operation, sets the wait sequence, and sets other
I2C
operations.
The IICCTLn0 register is set by the 8-bit memory operation instruction. However, the SPIEn bits, WTIMn bits,
and ACKEn bits must be set when the IICEn bit is "0" or during waiting, and the IICEn bits must be set Bits can be
set simultaneously when the bits are set from "0" to "1".
After generating a reset signal, the value of this register changes to "00H".
Note: n=0,1