Open-Loop Control For A Stepper Motor By The Real-Time Output Port - NEC PD78212 User Manual

8-bit single-chip microcomputer sub-series
Table of Contents

Advertisement

µ PD78214 Sub-Series
(3) Example of using the type C macro service
The following example shows a pattern output to the real-time output port and how the output interval is
controlled directly.
Update data is transferred from two data areas previously set in the 64K-byte space to the buffer registers
(P0H and P0L) and compare registers (CR10 and CR11) for the real-time output port.
Fig. 12-27 Open-Loop Control for a Stepper Motor by the Real-Time Output Port
Output data area
Output timing
data area
Compare register
8-bit timer/counter 1
336
64K memory space
D1
0B000H
D2
D3
0B003H
D4
0B004H
T1
T2
T3
T4
0B007H
CR10
Coincidence
TM1
Macro service control word
MSC
MPDL (low)
MPDH (high)
MPTL (low)
0FECFH
MPTH (high)
Mode register
Channel pointer
Buffer register
INTC10
Real-time output
trigger/macro
service start
(internal RAM)
04
–1
00
+1
B0
04
+1
B0
E8
Type C:
Increment
CF
Internal bus
Real-time output port
(P0L)
P0
Stepper motor
P00
P01
P02
P03

Advertisement

Table of Contents
loading

Table of Contents