EasyManua.ls Logo

Panasonic MN101L Series

Panasonic MN101L Series
563 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 13
Serial Interface
IIC Communication XIII - 57
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.
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.
Start Condition Setup Example
Figure:13.5.2 Setting Example of Start Condition
(1)
Start condition Slave address Slave addressRestart condition Data
(2) (3)
Write slave address in TXBUFn
after setting SCnMD0.IIC3STE to "1"
Write data in TXBUFn
after setting SCnMD0.IIC3STE to "1"
Write slave address in TXBUFn
after setting SCnMD0.IIC3STE to "1"

Table of Contents

Related product manuals