Setting Up The I; Registers Settings For Sda0/Scl0 Or Sda1/Scl1 Ports; Pin Control Circuit For The I; Panasonic - Panasonic MN10285K User Manual

Panax series microcomputer
Table of Contents

Advertisement

Panasonic Semiconductor Development Company

13.4 Setting Up the I

2
Set the I
C connection in the I2CSEL0 and I2CSEL1 bits of the PCNT0 register
(x'00FF90'). Since the SCL0, SDA0, SCL1, and SDA1 pins also serve as
general-purpose port pins, and reset to the general-purpose function, you must set
these bits every time the program uses the I
2
I
C function in the port mode registers. For I
of the P6MD register (x'00FFFC'). For I
the P0MD register (x'00FFF0').
Table 13-4 shows the register settings required to use either SDA0/SCL0 or
SDA1/SCL1 alone, and figure 13-5 shows the control circuit for this pin setup.
Table 13-4 Registers Settings for SDA0/SCL0 or SDA1/SCL1 Ports
Register
Bit
P0MD (x'00FFF0)
1
2
P6MD (x'00FFFC')
0
1
PCNT0 (x'00FF90')
8
9
SDA IN
SDA OUT
2
I
C
Circuit
SCL IN
SCL OUT
Figure 13-5 Pin Control Circuit for the I
298

Panasonic

Setting Up the I
2
C Bus Connection
2
C function. You must also select the
2
C bus connection 0, set bits 0 and 1
2
C bus connection 1, set bits 1 and 2 of
SDA0, SCL0 Only
0 (selects P01)
0 (selects P02)
1 (selects SDA0)
1 (selects SCL0)
1 (enables SDA0, SCL0)
0 (disables SDA1, SCL1)
Port control register 0
x'00FF90' bit 8
I2CSEL0
1: on
0: off
I2CSEL0
x'00FF90' bit 9
Port control register 0
x'00FF90' bit 8
I2CSEL0
I2CSEL0
x'00FF90' bit 9
2
C Bus Controller
MN102H75K/F75K/85K/F85K LSI User Manual
2
I
C Bus Controller
2
C Bus Connection
SDA1, SCL1 Only
1 (selects SDA1)
1 (selects SCL1)
0 (selects P60)
0 (selects P61)
0 (disables SDA0, SCL0)
1 (enables SDA1, SCL1)
SDA 0
SDA1
SCL0
SCL1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn102f75kMn102f85kMn102h75kMn102h85k

Table of Contents