Setting Up The Second Interrupt; Setting Up The Third Interrupt; Waveform For Master Transmitter Transitioning To Master Receiver; Panasonic - Panasonic MN10285K User Manual

Panax series microcomputer
Table of Contents

Advertisement

2
I
C Bus Controller
2
I
C Interface Setup Examples
Data
(slave address)
S
1
1
1
1
1
1
SDA
SCL
Note: The circled areas are signals output from the MN102H75K/85K.
Figure 13-7 Waveform for Master Transmitter Transitioning to Master Receiver
MN102H75K/F75K/85K/F85K LSI User Manual

13.6.1.3 Setting Up the Second Interrupt

When the microcontroller receives the data x'85' from the slave device, it returns
an ACK = 0 signal and the I
implement the following settings:
To set up the interrupt:
Set the I2C0ICH and I2C0ICL register pair (x'00FC9C') to x'0100'. This
2
enables I
C interrupts and clears the previous interrupt request.
2
To set up the I
C registers:
1.
Read the I2CDREC register (x'007E42') to determine the I
status.
2.
Since the communication will end when the microcontroller receives the
next data byte, set the I2CDTRM register (x'007E40') to x'0100'. This sets
STA to 0, STP to 0, ACK to 1, and the transmission data to x'00'. With this
setting, the microcontroller returns an ACK = 1 signal on the ninth clock.

13.6.1.4 Setting Up the Third Interrupt

When the microcontroller receives the data x'33' from the slave device, it returns
an ACK = 1 signal and the I
implement the following settings:
To set up the interrupt:
Set the I2C0ICH and I2C0ICL register pair (x'00FC9C') to x'0100'. This
2
enables I
C interrupts and clears the previous interrupt request.
2
To set up the I
C registers:
1.
Read the I2CDREC register (x'007E42') to determine the I
status.
2.
Since the transfer has ended, set the I2CDTRM register (x'007E40') to
x'0300'. This sets STA to 0, STP to 1, ACK to 1, and the transmission data
to x'00'. With this setting, the microcontroller issues a stop condition and
frees the bus.
R/W
ACK
0
1
0
0
0
1
0

Panasonic

2
C bus controller generates an interrupt. At this point,
2
C bus controller generates an interrupt. At this point,
ACK
0
1
0
0
1
0
0
Panasonic Semiconductor Development Company
301
2
C bus controller
2
C bus controller
ACK
1
0
1
1
1
0
1
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn102f75kMn102f85kMn102h75kMn102h85k

Table of Contents