h8s-2158 Renesas Electronics Corporation., h8s-2158 Datasheet - Page 538

no-image

h8s-2158

Manufacturer Part Number
h8s-2158
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 17 I
Rev. 3.00 Jan 25, 2006 page 486 of 872
REJ09B0286-0300
Bit
5
4
Bit Name
MST
TRS
2
C Bus Interface (IIC)
Initial Value R/W
0
0
R/W
R/W
Description
Master/Slave Select
Transmit/Receive Select
00: Slave receive mode
01: Slave transmit mode
10: Master receive mode
11: Master transmit mode
Both these bits will be cleared by hardware when they
lose in a bus conflict in master mode of the I
format. In slave receive mode, the R/W bit in the first
frame immediately after the start condition automatically
sets these bits in receive mode or transmit mode by
hardware. The settings can be made again for the bits
that were set/cleared by hardware, by reading these bits.
When the TRS bit is intended to change during a transfer,
the bit will not be switched until data transfer ends.
[MST clearing conditions]
1. When 0 is written by software
2. When lost in bus conflict in I
[MST setting conditions]
1. When 1 is written by software (for MST clearing
2. When 1 is written in MST after reading MST = 0 (for
[TRS clearing conditions]
1. When 0 is written by software (except for TRS setting
2. When 0 is written in TRS after reading TRS = 1 (for
3. When lost in bus conflict in I
[TRS setting conditions]
1. When 1 is written by software (except for TRS
2. When 1 is written in TRS after reading TRS = 0 (for
3. When 1 is received for the R/W bit value of the first
mode
condition 1)
MST clearing condition 2)
condition 3)
TRS setting condition 3)
mode
clearing condition 3)
TRS clearing condition 3)
frame in I
2
C bus format slave mode
2
2
C bus format master
C bus format master
2
C bus

Related parts for h8s-2158