Operation - Panasonic MN101L Series User Manual

Lsi
Table of Contents

Advertisement

13.5.2

Operation

Serial Reset
SCIFn has a built-in serial reset function for abnormal operation.
SCnMD0-3 other than SCnMD0.IIC3STE, SCnMD3.IIC3STPC, SCnMD3.IIC3REX, and SCnMD3.IIC3ACKO
must be changed during the serial reset of SCIFn.
SCnSTR.SCnTEMP/SCnREMP/SCnORE, bp6-0 of SCnIICSTR, and SC3MD3.IIC3STPC are initialized by the
serial reset when setting SC3MD2.SCnRSTN to "0".
Generating Transfer Clock (SCnCLK) and Baud Rate Timer Output Clock (BRTM_SCnCLK)
SCnCLK is identical with BRTM_SCnCLK in IIC communication mode.
This function is common with the Clock-Synchronous communication. For more information, see XIII-30.
In slave communication, set BRTM_SCnCLK to detect start/stop condition. (See Table:13.5.1.)
Interrupt Source
A communication completion interrupt (SCnTICR) occurs when transmitting/receiving ACK/NACK or detecting
the forced termination of a communication. A stop condition detection interrupt (SCnSICR) occurs when s stop
condition is detected. (SCnSIRQ doesn't occur when it is generated by the LSI.)
Generating Start/Restart Condition
When SC3MD0.IIC3STE is "1", a restart condition is generated by setting an address data (consisting of 7-bit
slave address + R/W bit) to TXBUFn. A start condition is generated by writing a address data to TXBUFn regard-
less of the value of SC3MD0.IIC3STE.
Start Condition Setup Example
Start condition
Write slave address in TXBUFn
after setting SCnMD0.IIC3STE to "1"
Generating Stop Condition
A stop condition is generated by writing "1" to SC3MD3.IIC3STPC.
When a stop condition is generated, IIC3STPC is automatically cleared.
Note that a stop condition is generated by writing "1" to IIC3STPC even if SCIFn is not a master.
In addition, a stop condition detection interrupt (SCnSIRQ) does not occur when the LSI generates the stop condi-
tion.
(1)
Slave address
Write slave address in TXBUFn
after setting SCnMD0.IIC3STE to "1"
Figure:13.5.2 Setting Example of Start Condition
(2)
Restart condition
Slave address
Serial Interface
(3)
Data
Write data in TXBUFn
after setting SCnMD0.IIC3STE to "1"
IIC Communication
Chapter 13
XIII - 57

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents