Pwm Control Register - Fujitsu MB90420/5 (A) Series Hardware Manual

F2mc-16lx family 16-bit microcontrollers
Table of Contents

Advertisement

15.2.1 PWM Control Register

The PWM control register starts and stops the stepping motor controller, controls interrupts, and sets the
external output pins.
n PWM control register
PWM control register
[bit 7] OE2: Output enable bit
When this bit is set to "1", the external pins are assigned as PWM2P0 and PWM2M0 outputs. Otherwise
they can be used as general purpose IO.
[bit 6] OE1: Output enable bit
When this bit is set to "1", the external pins are assigned as PWM1P0 and PWM1M0 outputs. Otherwise
they can be used as general purpose IO.
[bits 5 to 4] P1 to P0: Operation clock select bits
These bits specify the clock input signal for the PWM pulse generators.
[bit 3] CE: Count enable bit
This bit enables the operation of the PWM pulse generators. When it is set to "1", the PWM pulse
generators start their operation. Note that the PWM2 pulse generator starts the operation one machine
clock cycle after the PWM1 pulse generators is started. This is to help reduce the switching noise from
the output drivers.
[bit 2] SC: 8-/10-bit switching bit
When this bit is set to 1, PWM operates at 10 bits. When this bit is set to 0, PWM operates at 8 bits.
[bit 0] TST: Test bit
This bit is for the device test. In user applications, it should always be set to "0".
STEPPING MOTOR CONTROLLER
7
6
5
OE2
OE1
P1
R/W
R/W
R/W
0
0
0
P1
P0
0
0
0
1
1
0
1
1
4
3
2
P0
CE
SC
R/W
R/W
R/W
0
0
0
Clock Input
Machine clock
1/2 machine clock
1/4 machine clock
1/8 machine clock
15-5
1
0
TST
R/W
0

Advertisement

Table of Contents
loading

Table of Contents