M38867E8AHP MITSUBISHI [Mitsubishi Electric Semiconductor], M38867E8AHP Datasheet - Page 44

no-image

M38867E8AHP

Manufacturer Part Number
M38867E8AHP
Description
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER??
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M38867E8AHP
Quantity:
360
Part Number:
M38867E8AHP
Manufacturer:
MITSUBISHI
Quantity:
20 000
Part Number:
M38867E8AHP EA
Manufacturer:
FUJI
Quantity:
10 800
Part Number:
M38867E8AHP EA
Manufacturer:
RENESAS
Quantity:
1 000
Part Number:
M38867E8AHP EA
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
[I
The I
terface status. The low-order 4 bits are read-only bits and the
high-order 4 bits can be read out and written to.
Set “0000
reserved bits at writing.
•Bit 0: Last receive bit (LRB)
This bit stores the last bit value of received data and can also be
used for ACK receive confirmation. If ACK is returned when an
ACK clock occurs, the LRB bit is set to “0.” If ACK is not returned,
this bit is set to “1.” Except in the ACK mode, the last bit value of
received data is input. The state of this bit is changed from “1” to
“0” by executing a write instruction to the I
(address 0012
•Bit 1: General call detecting flag (AD0)
When the ALS bit is “0,” this bit is set to “1” when a general call
whose address data is all “0” is received in the slave mode. By a
general call of the master device, every slave device receives con-
trol data after the general call. The AD0 bit is set to “0” by
detecting the STOP condition or START condition, or reset.
•Bit 2: Slave address comparison flag (AAS)
This flag indicates a comparison result of address data when the
ALS bit is “0”.
•Bit 3: Arbitration lost detecting flag (AL)
In the master transmission mode, when the SDA is made “L” by
any other device, arbitration is judged to have been lost, so that
this bit is set to “1.” At the same time, the TRX bit is set to “0,” so
that immediately after transmission of the byte whose arbitration
was lost is completed, the MST bit is set to “0.” The arbitration lost
can be detected only in the master transmission mode. When ar-
bitration is lost during slave address transmission, the TRX bit is
set to “0” and the reception mode is set. Consequently, it becomes
possible to detect the agreement of its own slave address and ad-
dress data transmitted by another master device.
44
General call: The master transmits the general call address “00
Arbitration lost :The status in which communication as a master is dis-
2
This bit is set to “0” by executing a write instruction to the I
selected, this bit is set to “1” in one of the following conditions:
is selected, this bit is set to “1” with the following condition:
data shift register (address 0012
reset.
In the slave receive mode, when the 7-bit addressing format is
In the slave reception mode, when the 10-bit addressing format
C Status Register (S1)] 0014
A general call is received.
When the address data is compared with the I
ister (8 bits consisting of slave address and RBW bit), the first
bytes agree.
The address data immediately after occurrence of a START
condition agrees with the slave address stored in the high-or-
der 7 bits of the I
2
C status register (address 0014
2
” to the low-order 4 bits, because these bits become the
slaves.
16
abled.
).
2
C address register (address 0013
16
16
) when ES0 is set to “1” or
) controls the I
16
2
C data shift register
2
C address reg-
2
C-BUS in-
16
).
16
” to all
2
C
•Bit 4: I
This bit generates an interrupt request signal. Each time 1-byte
data is transmitted, the PIN bit changes from “1” to “0.” At the
same time, an interrupt request signal occurs to the CPU. The PIN
bit is set to “0” in synchronization with a falling of the last clock (in-
cluding the ACK clock) of an internal clock and an interrupt
request signal occurs in synchronization with a falling of the PIN
bit. When the PIN bit is “0,” the S
clock generation is disabled. Figure 40 shows an interrupt request
signal generating timing chart.
The PIN bit is set to “1” in one of the following conditions:
• Executing a write instruction to the I
• When the ES0 bit is “0”
• At reset
• When writing “1” to the PIN bit by software
The conditions in which the PIN bit is set to “0” are shown below:
• Immediately after completion of 1-byte data transmission (includ-
• Immediately after completion of 1-byte data reception
• In the slave reception mode, with ALS = “0” and immediately af-
• In the slave reception mode, with ALS = “1” and immediately af-
•Bit 5: Bus busy flag (BB)
This bit indicates the status of use of the bus system. When this
bit is set to “0,” this bus system is not busy and a START condition
can be generated. The BB flag is set/reset by the S
put signal regardless of master/slave. This flag is set to “1” by
detecting the start condition, and is set to “0” by detecting the stop
condition. The condition of these detecting is set by the start/stop
condition setting bits (SSC4–SSC0) of the I
control register (address 0017
I
set to “0.”
For the writing function to the BB flag, refer to the sections
“START Condition Generating Method” and “STOP Condition Gen-
erating Method” described later.
2
dress 0012
the internal clock is released and data can be communicated ex-
cept for the start condition detection.)
ing when arbitration lost is detected)
ter completion of slave address agreement or general call
address reception
ter completion of address data reception
C control register (address 0015
2
C-BUS interface interrupt request bit (PIN)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
16
). (This is the only condition which the prohibition of
MITSUBISHI MICROCOMPUTERS
16
). When the ES0 bit (bit 3) of the
16
CL
) is “0” or reset, the BB flag is
is kept in the “0” state and
2
C data shift register (ad-
3886 Group
2
C start/stop condition
CL
, S
DA
pins in-

Related parts for M38867E8AHP