Skip to main content
Knowledgebase
Home
Renesas Singapore - Knowledgebase

How to set BBSY, SCP of ICCR2 register to 1 and 0 for I2C start condition?

Latest Updated:09/11/2012

Question:

In order to issue the I2C start condition, it is required to set BBSY and SCP of the ICCR2 register to 1 and 0 respectively. Is it possible to write as follows for bit operating instruction?
IIC3.ICCR2.BIT.BBSY = 1
IIC3.ICCR2.BIT.SCP = 0

Answer:

Provide concurrent access to the ICCR2 register using the MOV instruction, not the bit setting instruction.
Suitable Products
SH7285, SH7286
SH7214, SH7216
SH7231
SH7239, SH7237
SH7211
SH7124, SH7125
SH7146, SH7149
SH7131, SH7132, SH7136, SH7137
SH7083, SH7084, SH7085, SH7086