English
Language : 

M38203M4 Datasheet, PDF (166/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.3 Timer X and timer Y
(3) Real time port function : Stepping motor drive
Outline : A stepping motor is driven by applying a timer X interrupt and the real time port (referred
as “RTP”) function.
Specifications : • The RTP output time is controlled by changing a timer X setting value in a timer
X interrupt processing.
• The RTP output pattern to the motor driver by changing data for RTP.
Figure 2.3.41 shows an application connection example when the RTP is used. Figure 2.3.42 shows
an RTP output example. Table 2.3.4 and Table 2.3.5 show table examples for it. Figure 2.3.40 shows
a timer X interrupt processing procedure example when the RTP is used.
3820 group
RTP setting
value table
TXM
Data RTP0 (P60)
for RTP
RTP1 (P61)
Timer X setting
value table
Timer X
Motor
driver
Stepping motor
Fig. 2.3.41 Application connection example when RTP is used
RTP output
time
Timer X
setting value
(T1)
Timer X
setting value
(T2)
Timer X
Timer X
setting value setting value
(T3)
(T4)
(T5) (T6)
RTP0 output
RTP1 output
RTP output pattern Œ
RTP output pattern  RTP output
pattern Ž
RTP output Œ
pattern 
Fig. 2.3.42 RTP output example
2–80
3820 GROUP USER’S MANUAL