Pwm1 And Pwm2 Selection Registers (Pws1N, Pws2N) - Fujitsu MB96300 series Hardware Manual

F2mc-16fx 16-bit
Hide thumbs Also See for MB96300 series:
Table of Contents

Advertisement

MB96300 Super Series Hardware Manual
27.6

PWM1 and PWM2 Selection registers (PWS1n, PWS2n)

The PWM1 and PWM2 Selection registers (PWS1n, PWS2n) determine whether to set the
output of the external pin of the Stepper Motor Controller to "0", "1", PWM pulse or high
impedance.
■ PWM1 and PWM2 Selection registers (PWS1n, PWS2n)
Figure 27.6-1 PWM1 and PWM2 selection registers (PWS1n, PWS2n)
■ PWM1 Selection register (PWS1n)
[bit 7 to 6] Reserved bits
Always set the reserved bit to "0".
[bit 5 to 3] P2 to P0: Output select bits
These bits are used to select the output signal for SMCmPn.
[bit 2 to 0] M2 to M0: Output select bits
These bits are used to select the output signal for SMCmMn.
The table below shows the relationship between the output levels and the select bits.
P2
0
0
0
1
m = 1 to 2 (motor coils).
n = 0 to 5 (stepper motor channels).
■ PWM2 Selection register (PWS2n)
[bit 7] Reserved bit:
Always set the reserved bit to "0".
PWM1 Selection register (PWS1x)
7
6
5
-
-
P2
-
-
R/W R/W R/W
PWM2 Selection register (PWS2x)
7
6
5
-
BS
P2
-
R/W R/W R/W R/W
P1
P0
PWMmPn
0
0
L
0
1
H
1
X
PWM Pulse
X
X
High impedance
CHAPTER 27 STEPPER MOTOR CONTROLLER
4
3
2
1
0
Initial value:
P1
P0
M2
M1
M0
0 0 0 0 0 0 0 0
R/W R/W R/W
4
3
2
1
0
Initial value:
P1
P0
M2
M1
M0
x x 0 0 0 0 0 0
R/W R/W R/W
M2
M1
0
0
0
0
0
1
1
X
B
B
M0
PWMmMn
0
L
1
H
X
PWM Pulse
X
High impedance
701

Advertisement

Table of Contents
loading

Table of Contents