The M37735S4LHP is a microcomputer using the 7700 Family core.
This microcomputer has a CPU and a bus interface unit. The CPU is
a 16-bit parallel processor that can be an 8-bit parallel processor,
and the bus interface unit enhances the memory access efficiency to
execute instructions fast. This microcomputer also includes a 32 kHz
oscillation circuit, in addition to the RAM, multiple-function timers,
serial I/O, A-D converter, and so on.
Its strong points are the low power dissipation, the low supply voltage,
and the small package.
FEATURES
●Number of basic instructions .................................................. 103
Control devices for general commercial equipment such as office
automation, office equipment, and so on.
Control devices for general industrial equipment such as
communication equipment, and so on.
Operating temperature range–40 to 85 °C
Device structureCMOS high-performance silicon gate process
Package80-pin plastic molded fine-pitch QFP (80P6D-A; 0.5 mm lead pitch)
3 external types, 16 internal types
Each interrupt can be set to the priority level (0 – 7.)
2 circuits built-in (externally connected to a ceramic resonator or a
27 mW (at 5 V supply voltage, external clock 12 MHz frequency)
Input/Output voltage5 V
Output current5 mA
3
MITSUBISHI MICROCOMPUTERS
M37735S4LHP
New product
16-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
PinNameInput/OutputFunctions
Vcc,Power sourceApply 2.7 – 5.5 V to Vcc and 0 V to Vss.
Vss
CNVssCNVss inputInputConnect to Vcc.
_____
RESETReset inputInputWhen “L” level is applied to this pin, the microcomputer enters the reset state.
XINClock inputInput
XOUTClock outputOutput
___
RDE
BYTE
Read enable output
Bus width
Output
InputThis pin determines whether the external data bus has an 8-bit width or a 16-bit width.
selection inputThe data bus has a 16-bit width when “L” signal is input and an 8-bit width when “H” signal
AVcc,Analog powerPower source input pin for the A-D converter. Externally connect AVcc to Vcc and AVss to Vss.
AVsssource input
V
REFReference InputThis is reference voltage input pin for the A-D converter.
voltage input
___
P00/CS0– Chip selectionOutput
___
P04/CS4output
____
P05/RSMP
Ready sampling
Output
output
P06/A16,
Address output
OutputAn address (A16, A17) is output.
P07/A17
P10/A8/D8 – Address output
P17/A15/D15/data
(high
I/OWhen the BYTE pin is set
-order) I/O
P20/A0/D0 –
P27/A7/D7
P30/WELWrite enableOutput
___
Address output
/data (low
-order) I/O
I/OLow-order data (D0 – D7) is input/output or an address (A0 – A7) is output.
outputis “L”. When the BYTE pin is “H” and writing to an even address or an odd address is performed,
___
P31/WEHWrite enableOutput
high output
P3
2/ALEAddress latch OutputThis is used to retrieve only the address from the multiplex signal which consists of address and
enable outputdata.
____
P33/HLDA Hold acknow-OutputThis outputs “L” level when the microcomputer enters hold state after a hold request is accepted.
____
HOLDHold requestInput
___
RDYReady inputInput
ledge output
inputsignal is “L”.
These are pins of main-clock generating circuit. Connect a ceramic resonator or a quartz-crystal
oscillator between X
connected to the XIN pin, and the XOUT pin should be left open.
When data/instruction read is performed, output level of RDE signal is “L”.
IN and XOUT. When an external clock is used, the clock source should be
___
is input.
___
When the specified external memory area is accessed, CS0– CS4 signals are “L”.
The timing signal to be input to the RDY pin is output.
to
___
“L”
and
external data bus has a 16-bit width, high-order data
___
(D8 – D15) is input/output or an address (A8 – A15) is output. When the BYTE pin is “H” and an
external data bus has an 8-bit width, only address (A8 – A15) is output.
When the BYTE pin is “L” and writing to an even address is performed, output level of WEL signal
output level of WEL signal is “L”.
When the BYTE pin is “L” and writing to an odd address is performed, output level of WEH signal
is “L”. When the BYTE pin is “H”, WEH signal is always “H”.
This is an input pin for HOLD request signal. The microcomputer enters hold state while this
This is an input pin for RDY signal. The microcomputer enters ready state while this signal is “L”.
___
___
____
___
___
___
P42/1Clock outputOutputThis pin outputs the clock 1.
P4
3 – P47 I/O port P4I/OThese pins become a 5-bit I/O port. An I/O direction register is available so that each pin can be
programmed for input or output. These ports are in the input mode when reset.
P5
0 – P57 I/O port P5I/OIn addition to having the same functions as port P4, these pins also function as I/O pins for timers
A0 to A3 and input pins for key input interrupt input (KI0 – KI3).
P6
0 – P67 I/O port P6I/OIn addition to having the same functions as port P4, these pins also function as I/O pins for timer
A4, input pins for external interrupt input (INT0 – INT2) and input pins for timers B0 to B2. P67 also
___ ___
__ __
functions as sub-clock SUB output pin.
P7
0 – P77 I/O port P7I/OIn addition to having the same functions as port P4, these pins function as input pins for A-D
converter. P72 to P75 also function as I/O pins for UART2. Additionally, P76 and P77 have the
function as the output pin (XCOUT) and the input pin (XCIN) of the sub-clock (32 kHz) oscillation
circuit, respectively. When P76 and P77 are used as the XCOUT and XCIN pins, connect a resonator
or an oscillator between the both.
P80 – P87 I/O port P8I/OIn addition to having the same functions as port P4, these pins also function as I/O pins for UART
0 and UART 1.
4
MITSUBISHI MICROCOMPUTERS
M37735S4LHP
New product
BASIC FUNCTION BLOCKS
The M37735S4LHP has the same functions as the M37735MHBXXXFP
except for the following:
(1) The memory map is different.
(2) The processor mode is different.
(3) The reset circuit is different.
(4) Pulse output port mode of timer A is available.
(5) The function of ROM area modification is not available.
Refer to the section on the M37735MHBXXXFP, except for above
(1)–(5).
MEMORY
The memory map is shown in Figure 1. The address space has a
capacity of 16 Mbytes and is allocated to addresses from 0
FFFFFF
16. The address space is divided by 64-Kbyte unit called bank.
The banks are numbered from 0
However, banks 10
16–FF16 of the M37735S4LHP cannot be
16 to FF16.
accessed.
000000
16
Bank 0
16
00FFFF
16
010000
16
16 to
000000
00007F
000080
16-BIT CMOS MICROCOMPUTER
Built-in RAM and control registers for internal peripheral devices are
assigned to bank 0
Addresses FFD6
addresses and contain the interrupt vectors. Use ROM for memory
of this address.
The 2048-byte area allocated to addresses from 80
built-in RAM. In addition to storing data, the RAM is used as stack
during a subroutine call or interrupts.
Peripheral devices such as I/O ports, A-D converter, serial I/O, timer,
and interrupt control registers are allocated to addresses from 0
7F
16.
A 256-byte direct page area can be allocated anywhere in bank 0
by using the direct page register (DPR). In the direct page addressing
mode, the memory in the direct page area can be accessed with two
words. Hence program steps can be reduced.
16
16
16
Internal RAM
2048 bytes
16.
16 to FFFF16 are the RESET and interrupt vector
16 to 87F16 is the
000000
16
Internal peripheral
devices
control registers
refer to Fig. 2 for
detail information
00007F
16
16 to
16
Bank 1
16
• • • • • • • • • • • • • • • • • • •
Bank FE
16
Bank FF
16
00087F
00FFD6
00FFFF
16
16
16
01FFFF
FE0000
FEFFFF
FF0000
FFFFFF
16
16
16
16
16
: Internal
: External
Note. Banks 1016–FF16 cannot be accessed in the M37735S4LHP.
Port P0 register
Port P1 register
Port P0 direction register
Port P1 direction register
Port P2 register
Port P3 register
Port P2 direction register
Port P3 direction register
Port P4 register
Port P5 register
Port P4 direction register
Port P5 direction register
Port P6 register
Port P7 register
Port P6 direction register
Port P7 direction register
Port P8 register
Port P8 direction register
Pulse output data register 1
Pulse output data register 0
A-D control register 0
A-D control register 1
UART2 transmission buffer register
UART2 transmit/receive control register 0
UART2 transmit/receive control register 1
UART2 receive buffer register
Oscillation circuit control register 0
Port function control register
Serial transmit control register
Oscillation circuit control register 1
A-D/UART2 trans./rece. interrupt control register
UART 0 transmission interrupt control register
UART 0 receive interrupt control register
UART 1 transmission interrupt control register
UART 1 receive interrupt control register
Timer A0 interrupt control register
Timer A1 interrupt control register
Timer A2 interrupt control register
Timer A3 interrupt control register
Timer A4 interrupt control register
Timer B0 interrupt control register
Timer B1 interrupt control register
Timer B2 interrupt control register
INT
0
interrupt control register
INT
1
interrupt control register
INT
2
/Key input interrupt control register
Note. Writing to reserved area is disabled.
Fig. 2 Location of internal peripheral devices and interrupt control registers
6
MITSUBISHI MICROCOMPUTERS
M37735S4LHP
New product
Pulse output port mode
The pulse motor drive waveform can be output by using plural internal
timer A.
Figure 3 shows a block diagram for pulse output port mode. In the
pulse output port mode, two pairs of four-bit pulse output ports are
used. Whether using pulse output port or not can be selected by
waveform output selection bit (bit 0, bit 1) of waveform output mode
register (62
output selection bit is set to “1”, RTP1
are used as pulse output ports, and when bit 1 of waveform output
selection bit is set to “1”, RTP0
used as pulse output ports. When bits 1 and 0 of waveform output
selection bit are set to“1”, RTP1
RTP0
The ports not used as pulse output ports can be used as normal
parallel ports, timer input/output or key input interruput input.
In the pulse output port mode, set timers A0 and A2 to timer mode as
timers A0 and A2 are used. Figure 5 shows the bit configuration of
timer A0, A2 mode registers in pulse output port mode.
Data can be set in each bit of the pulse output data register
corresponding to four ports selected as pulse output ports. Figure 6
16 address) shown in Figure 4. When bit 0 of waveform
0, RTP11, RTP12, and RTP13
0, RTP01, RTP02, and RTP03 are
0, RTP11, RTP12, and RTP13, and
0, RTP01, RTP02, and RTP03 are used as pulse output ports.
16-BIT CMOS MICROCOMPUTER
shows the bit configuration of the pulse output data register. The
contents of the pulse output data register 1 (low-order four bits of
1C
16 address) corresponding to RTP10, RTP11, RTP12, and RTP13
is output to the ports each time the counter of timer A2 becomes
0000
16. The contents of the pulse output data register 0 (low-order
four bits of 1D
and RTP0
becomes 0000
Figure 7 shows example of waveforms in pulse output port mode.
When “0” is written to a specified bit of the pulse output data register,
“L” level is output to the corresponding pulse output port when the
counter of corresponding timer becomes 0000
written, “H” level is output to the pulse output port.
Pulse width modulation can be applied to each pulse output port.
Since pulse width modulation involves the use of timers A1 and A3,
activate these timers in pulse width modulation mode.
16 address) corresponding to RTP00, RTP01, RTP02,
3 is output to the ports each time the counter of timer A0
16.
16, and when “1” is
Pulse width modulation selection bit
(Bit 4, 5 of 62
16
address)
Pulse width modulation output
by timer A3
Pulse width modulation output
by timer A1
Timer A2
Pulse output data
register 1 (1C16 address)
Data bus (even)
Data bus (odd)
Pulse output data
register 0 (1D
Timer A0
3
D
D
2
D
1
D
0
D
11
D
10
D
9
D
8
16
address)
45
T
D
D
D
D
D
D
D
D
T
Q
Q
Q
Q
Q
Q
Q
Q
Polarity selection bit
(Bit 3 of 62
16
address)
3
(P57)
RTP1
RTP1
2
(P56)
RTP1
1
(P55)
RTP1
0
(P54)
RTP0
3
(P53)
RTP02 (P52)
RTP0
1
(P51)
RTP0
0
(P50)
Fig. 3 Block diagram for pulse output port mode
7
MITSUBISHI MICROCOMPUTERS
M37735S4LHP
New product
RTP10, RTP11, RTP12, and RTP13 are applied pulse width modulation
by timer A3 by setting the pulse width modulation selection bit by
timer A3 (bit 5) of the waveform output mode register to “1”.
RTP0
0, RTP01, RTP02, and RTP03 are applied pulse width modulation
by timer A1 by setting the pulse width modulation selection bit by
timer A1 (bit 4) of the waveform output mode register to “1”.
The contents of the pulse output data register 0 can be reversed and
output to pulse output ports RTP0
the polarity selection bit (bit 3) of the waveform output mode register.
When the polarity selection bit is “0”, the contents of the pulse output
data register 0 is output unchangeably, and when “1”, the contents of
the pulse output data register 0 is reversed and output. When pulse
width modulation is applied, likewise the polarity reverse to pulse
width modulation can be selected by the polarity selection bit.
765432 01
0
0, RTP01, RTP02, and RTP03 by
Address
Weveform output mode register 6216
Weveform output selection bit
0 0 : Parallel port
0 1 : RTP1 selected
1 0 : RTP0 selected
1 1 : RTP1 and RTP0 selected
Fig. 5 Timer A0, A2 mode register bit configuration in pulse output
port mode
765432 01
Pulse output data register 0 1D16
RTP00 output data
RTP01 output data
RTP02 output data
RTP03 output data
765432 01
Pulse output data register 1 1C16
Address
Address
Address
Fig. 4 Waveform output mode register bit configuration
8
0
output data
RTP1
RTP11 output data
RTP12 output data
RTP13 output data
Fig. 6 Pulse output data register bit configuration
MITSUBISHI MICROCOMPUTERS
M37735S4LHP
New product
Output signal at each time
when timer A2 becomes 0000
3 (P57)
RTP1
RTP1
2 (P56)
1 (P55)
RTP1
RTP10 (P54)
Output signal at each time
when timer A2 becomes 0000
16-BIT CMOS MICROCOMPUTER
Example of pulse output port (RTP10 – RTP13)
16
Example of pulse output port (RTP10 – RTP13) when pulse width modulation is applied by timer A3.
16
3 (P57)
RTP1
RTP1
2 (P56)
1 (P55)
RTP1
0 (P54)
RTP1
Output signal at each time
when timer A0 becomes 0000
RTP0
3 (P53)
RTP0
2 (P52)
1 (P51)
RTP0
Example of pulse output port (RTP00 – RTP03) when pulse width modulation is applied
by timer A1 with polarity selection bit = “1”.
16
0 (P50)
RTP0
Fig. 7 Example of waveforms in pulse output port mode
9
MITSUBISHI MICROCOMPUTERS
M37735S4LHP
New product
PROCESSOR MODE
Only the microprocessor mode can be selected.
Figure 9 shows the functions of pins P00/CS0 — P47 in the
microprocessor mode.
Figure 10 shows external memory area for the microprocessor mode.
Access to the external memory is affected by the BYTE pin, the wait
bit (bit 2 of the processor mode register 0 at address 5E
wait selection bit (bit 0 of the processor mode register 1 at address
5F
16) .
76543201
0
10
Processor mode register 0
Must be “10” (“10” after reset)
Wait bit
0 : Wait
1 : No wait
___
16), and the
Address
16
5E
16-BIT CMOS MICROCOMPUTER
• BYTE pin
When accessing the external memory, the level of the BYTE pin is
used to determine whether to use the data bus as 8-bit width or 16bit width.
The data bus has a width of 8 bits when level of the BYTE pin is “H”,
and pins P2
The data bus has a width of 16 bits when the level of the BYTE pin is
“L”, and pins P2
D
15 are the data I/O pins.
When accessing the internal memory, the data bus always has a
width of 16 bits regardless of the BYTE pin level.
765432 01
0/A0/D0 — P27/A7/D7 are the data I/O pins.
0/A0/D0 — P27/A7/D7 and pins P10/A8/D8 — P17/A15/
Address
Processor mode register 1
Wait selection bit
0 : Wait 0
1 : Wait 1
5F16
Software reset bit
Reset occurs when this bit is set to “1”
Interrupt priority detection time selection bit
0 0 : Internal clock ✕ 7 (cycle)
0 1 : Internal clock
1 0 : Internal clock ✕ 2 (cycle)
Must be “0”
Not used
Fig. 8 Processor mode register bit configuration
✕ 4 (cycle)
10
MITSUBISHI MICROCOMPUTERS
M37735S4LHP
New product
PM1
PM0
Mode
Pin
RDE
0 to CS4
CS
RSMP,
A16, A17
BYTE = “L”
P10/A8/D8
to
P17/A15/D15
BYTE = “H”
BYTE = “L”
P20/A0/D0
to
P27/A7/D7
BYTE = “H”
RDE
RDE, WEL, WEH
P00/CS0
to
P04/CS4
P05/RSMP
P06/A16
P07/A17
RDE, WEL, WEH
P10/A8/D8
to
7/A15 /D15
P1
RDE, WEL, WEH
P10/A8/D8
to
7/A15/D15
P1
RDE, WEL, WEH
P20/A0/D0
to
7/A7/D7
P2
RDE, WEL, WEH
P20/A0/D0
to
7/A7/D7
P2
1
0
Microprocessor mode
CS0 — CS4
RSMP
Address A16, A17
A8 to A15
Address
Data(odd)
Address A8 – A15
A0 to A7
Address
A0 to A7
Address
Data(even)
Data
(odd,even)
16-BIT CMOS MICROCOMPUTER
(Note)
0/WEL,
P3
P31/WEH,
P32/ALE,
P33/HLDA
HOLD,
,
RDY
P42/ 1,
Ports P43 to P47
P30/WEL
P31/WEH
P32/ALE
P33/HLDA
RDE, WEL, WEH
HOLD
RDY
P42/ 1
ALE
HLDA
HOLD
RDY
WEL
WEH
(Note)
(Note)
(Note)
P43
to
I/O Port
P47
Fig. 9 Functions of pins P00/CS0 to P47 in microprocessor mode
Note. The signal output disable selection bit (bit 6 of the oscillation circuit control register 0) can stop the 1 output in the microprocessor
mode. In this mode, signals RDE, WEL, WEH can also be fixed to “H” when the internal memory area is accessed.
___
___ ___ ___
11
Loading...
+ 25 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.