Freelance Electronics Components Distributor
Closed Dec 25th-26th
800-300-1968
We Stock Hard to Find Parts

7207E

Part # 7207E
Description
Category SWITCH
Availability Out of Stock
Qty 0



Technical Document


DISCLAIMER: The information provided herein is solely for informational purposes. Customers must be aware of the suitability of this product for their application, and consider that variable factors such as Manufacturer, Product Category, Date Codes, Pictures and Descriptions may differ from available inventory.

37
MITSUBISHI MICROCOMPUTERS
M37207MF-XXXSP/FP, M37207M8-XXXSP
M37207EFSP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
and ON-SCREEN DISPLAY CONTROLLER
(10) Address Data Communication
There are two address data communication formats, namely, 7-bit
addressing format and 10-bit addressing format. The respective ad-
dress communication formats is described below.
7-bit addressing format
To meet the 7-bit addressing format, set the 10BIT SAD bit of the
I
2
C control register (address 00DC16) to “0.” The first 7-bit ad-
dress data transmitted from the master is compared with the high-
order 7-bit slave address stored in the I
2
C address register (ad-
dress 00DA16). At the time of this comparison, address compari-
son of the RBW bit of the I
2
C address register (address 00DA16)
is not made. For the data transmission format when the 7-bit ad-
dressing format is selected, refer to Figure 34, (1) and (2).
10-bit addressing format
To meet the 10-bit addressing format, set the 10BIT SAD bit of the
I
2
C control register (address 00DC16) to “1.” An address compari-
son is made between the first-byte address data transmitted from
the master and the 7-bit slave address stored in the I
2
C address
register (address 00DA16). At the time of this comparison, an ad-
dress comparison between the RBW bit of the I
2
C address regis-
__
ter (address 00DA16) and the R/W bit which is the last bit of the
address data transmitted from the master is made. In the 10-bit
__
addressing mode, the R/W bit which is the last bit of the address
data not only specifies the direction of communication for control
data but also is processed as an address data bit.
When the first-byte address data matches the slave address, the
AAS bit of the I
2
C status register (address 00DB16) is set to “1.” After
the second-byte address data is stored into the I
2
C data shift register
(address 00D916), make an address comparison between the sec-
ond-byte data and the slave address by software. When the address
data of the 2nd bytes matches the slave address, set the RBW bit of
the I
2
C address register (address 00DA16) to “1” by software. This
__
processing can match the 7-bit slave address and R/W data, which
are received after a RESTART condition is detected, with the value
of the I
2
C address register (address 00DA16). For the data transmis-
sion format when the 10-bit addressing format is selected, refer to
Figure 34, (3) and (4).
(11) Example of Master Transmission
An example of master transmission in the standard clock mode, at
the SCL frequency of 100 kHz and in the ACK return mode is shown
below.
Set a slave address in the high-order 7 bits of the I
2
C address
register (address 00DA16) and “0” in the RBW bit.
Set the ACK return mode and SCL = 100 kHz by setting “8516” in
the I
2
C clock control register (address 00DD16).
Set “1016” in the I
2
C status register (address 00DB16) and hold
the SCL at the HIGH.
Set a communication enable status by setting “4816” in the I
2
C
control register (address 00DC16).
Set the address data of the destination of transmission in the high-
order 7 bits of the I
2
C data shift register (address 00D916) and set
“0” in the least significant bit.
Set “F016” in the I
2
C status register (address 00DB16) to generate
a START condition. At this time, an SCL for 1 byte and an ACK
clock automatically occurs.
Set transmit data in the I
2
C data shift register (address 00D916).
At this time, an SCL and an ACK clock automatically occurs.
When transmitting control data of more than 1 byte, repeat step
.
Set “D016” in the I
2
C status register (address 00DB16). After this,
if ACK is not returned or transmission ends, a STOP condition will
be generated.
(12) Example of Slave Reception
An example of slave reception in the high-speed clock mode, at the
SCL frequency of 400 kHz, in the ACK non-return mode, using the
addressing format, is shown below.
Set a slave address in the high-order 7 bits of the I
2
C address
register (address 00DA16) and “0” in the RBW bit.
Set the no ACK clock mode and SCL = 400 kHz by setting “2516
in the I
2
C clock control register (address 00DD16).
Set “1016” in the I
2
C status register (address 00DB16) and hold
the SCL at the HIGH.
Set a communication enable status by setting “4816” in the I
2
C
control register (address 00DC16).
When a START condition is received, an address comparison is
made.
•When all transmitted addresses are “0” (general call) :
AD0 of the I
2
C status register (address 00DB16) is set to “1” and
an interrupt request signal occurs.
•When the transmitted addresses match the address set in :
AAS of the I
2
C status register (address 00DB16) is set to “1” and
an interrupt request signal occurs.
•In the cases other than the above :
AD0 and AAS of the I
2
C status register (address 00DB16) are
set to “0” and no interrupt request signal occurs.
Set dummy data in the I
2
C data shift register (address 00D916).
When receiving control data of more than 1 byte, repeat step
.
When a STOP condition is detected, the communication ends.
38
MITSUBISHI MICROCOMPUTERS
M37207MF-XXXSP/FP, M37207M8-XXXSP
M37207EFSP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
and ON-SCREEN DISPLAY CONTROLLER
Fig. 34. Address Data Communication Format
S Slave address A Data A Data A/A PR/W
7 bits “0” 1 to 8 bits 1 to 8 bits
S Slave address A
Data A Data AP
7 bits “1” 1 to 8 bits 1 to 8 bits
(1) A master-transmitter transmits data to a slave-receiver
S
Slave address
1st 7 bits
A
A Data
7 bits “0” 8 bits 1 to 8 bits
(2) A master-receiver receives data from a slave-transmitter
Slave address
2nd byte
A Data A/A P
1 to 8 bits
S
Slave address
1st 7 bits
A
A
7 bits “0” 8 bits 7 bits
(3) A master-transmitter transmits data to a slave-receiver with a 10-bit address
Slave address
2nd byte
Data
1 to 8 bits
Sr
Slave address
1st 7 bits
A Data
AP
1 to 8 bits“1”
(4) A master-receiver receives data from a slave-transmitter with a 10-bit address
S : START condition P : STOP condition
A : ACK bit R/W : Read/Write bit
Sr : Restart condition
From master to slave
From slave to master
R/W
R/W
R/W R/W
MITSUBISHI MICROCOMPUTERS
M37207MF-XXXSP/FP, M37207M8-XXXSP
M37207EFSP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
and ON-SCREEN DISPLAY CONTROLLER
39
PWM OUTPUT FUNCTION
This microcomputer is equipped with a 14-bit PWM (DA) and ten 8-
bit PWMs (PWM0–PWM9). DA has a 14-bit resolution with the mini-
mum resolution bit width of 250 ns and a repeat period of
4096 µs (for f(XIN) = 8 MHz). PWM0–PWM9 have the same circuit
structure and an 8-bit resolution with minimum resolution bit width of
4 µs and repeat period of 1024 µs (for f(XIN) = 8 MHz).
Figure 35 shows the PWM block diagram. The PWM timing generat-
ing circuit applies individual control signals to PWM0–PWM9 using
f(XIN) divided by 2 as a reference signal.
(1) Data Setting
When outputting DA, first set the high-order 8 bits to the DA-H regis-
ter (address 00CE16), then the low-order 6 bits to the DA-L register
(address 00CF16). When outputting PWM0–PWM9, set 8-bit output
data to the PWMi register (i means 0 to 9; addresses 00D016 to
00D416, 00F616 to 00FA16).
(2) Transferring Data from Registers to Latches
The data written to the 8-bit PWM register is transferred to the PWM
latch in each 8-bit PWM cycle period. For 14-bit PWM, the data is
transferred in the next high-order 8-bit period after the write. The
signals output to the PWM pins correspond to the contents of these
latches. When data in each PWM register is read, data in these
latches has already been read allowing the data output by the PWM
to be confirmed. However, bit 7 of the DA-L register indicated the
completion of the data transfer from the DA register to the DA latch.
When bit 7 is “0,” the transfer has been completed. When bit 7 is “1,”
the transfer has not yet begun.
(3) Operating of 8-bit PWM
The following explains PWM operation.
First, set the bit 0 of PWM output control register 1 (address 00D516)
to “0” (at reset, bit 0 is already set to “0” automatically), so that the
PWM count source is supplied.
PWM0–PWM7 are also used as pins P60–P67, PWM8, PWM9 are
also used as ports pins P47, P46, respectively. For PWM0–PWM9,
set the corresponding bits of the ports P4 or P6 direction register to
“1” (output mode). And select each output polarity by bit 3 of PWM
output control register 2(address 00D616). Then, for PWM0–PWM5,
set bits 2 to 7 of PWM output control register 1 to “1” (PWM output).
For PWM6 and PWM7, set bits 0 and 1 of the PWM output control
register 2 to “1.” For PWM8 and PWM9, set bits 3, 6 and 7 of the
serial I/O control register to “1.”
The PWM waveform is output from the PWM output pins by setting
these registers.
Figure 36 shows the 8-bit PWM timing. One cycle (T) is composed
of 256 (2
8
) segments. The 8 kinds of pulses, relative to the weight of
each bit (bits 0 to 7), are output inside the circuit during 1 cycle.
Refer to Figure 36 (a). The 8-bit PWM outputs waveform which is
the logical sum (OR) of pulses corresponding to the contents of bits
0 to 7 of the 8-bit PWM register. Several examples are shown in
Figure 36 (b). 256 kinds of output (HIGH area: 0/256 to 255/256) are
selected by changing the contents of the PWM register. A length of
entirely HIGH output cannot be output, i.e. 256/256.
(4) Operating of 14-bit PWM
As with 8-bit PWM, set the bit 0 of PWM output control register 1
(address 00D516) to “0” (at reset, bit 0 is already set to “0” automati-
cally), so that the PWM count source is supplied. Next, select the
output polarity by bit 2 of PWM output control register 2 (address
00D616). Then, the 14-bit PWM outputs from the D-A output pin by
setting bit 1 of PWM output control register 1 to “0” (at reset, this bit
already set to “0” automatically) to select the DA output.
The output example of the 14-bit PWM is shown in Figure 37.
The 14-bit PWM divides the data of the DA latch into the low-order 6
bits and the high-order 8 bits.
The fundamental waveform is determined with the high-order 8-bit
data “DH.” A HIGH area with a length τ DH (HIGH area of funda-
mental waveform) is output every short area of “t” = 256τ =
64 µs (τ is the minimum resolution bit width of 250 ns). The “H” level
area increase interval (tm) is determined with the low-order 6-bit data
“DL.” The HIGH are of smaller intervals “tm” shown in Table 5 is longer
by τ than that of other smaller intervals in PWM repeat period “T” =
64t. Thus, a rectangular waveform with the different HIGH width is
output from the D-A pin. Accordingly, the PWM output changes by τ
unit pulse width by changing the contents of the DA-H and DA-L
registers. A length of entirely HIGH cannot be output, i. e. 256/256.
(5) Output after Reset
At reset, the output of ports P60–P67, P46 and P47 are in the high-
impedance state, and the contents of the PWM register and the
PWM circuit are undefined. Note that after reset, the PWM output is
undefined until setting the PWM register.
PREVIOUS678910111213141516171819NEXT