CHAPTER 16:Stepper Motor Controller
376
S6J3200 Series Hardware Manual Document Number: 002-04852 Rev. *G
3.
Operation of the Stepper Motor Controller
This section describes the operation of the Stepper Motor Controller.
3.1
Operation of PWM Pulse Generator
3.2
Selection of Motor Drive Signals
3.3
Synchronization System of Stepper Motor Controller
3.4
Operation of the SMC Trigger Delay Function
3.1.
Operation of PWM Pulse Generator
The PWM period is determined by the selected division ratio from a Peripheral clock (CLKP) and the
operation mode (8-bit/10-bit) of the PWM Pulse Generator:
−
During configuration, software can select the PWM operating clock by specifying the division ratio
for the Peripheral clock (CLKP). The division ratio for the Peripheral clock is defined by setting the
PWM operating clock prescaler bits (PWC.P[3:0]).
−
Software can also configure the operation mode for the counter that controls the PWM period.
When the Operation Mode Switching bit (PWC.SC) is set to "0", 8-bit operation mode is selected
(PWM period = 256 counts). If this bit is set to "1", 10-bit operation mode is selected (PWM period =
1024 counts).
Examples of operating clock values for different configurations are given in Table 3 1.
Table 3-1 Relation between PWM Operating Clock and PWM Period for Different Operation Modes
PWC
P[3:0]
PWM
Operating
Clock
(CLK)
PWM Period [µs]
(CLKP = 16 MHz)
PWM Period [µs]
(CLKP = 60 MHz)
PWC
SC = "0"
PWC
SC = "1"
PWC
SC = "0"
PWC
SC = "1"
0000
CLKP
16
64
4.267
17.067
0001
CLKP/4
64
256
17.067
68.267
0010
CLKP/5
80
320
21.333
85.333
0011
CLKP/6
96
384
25.6
102.4
0100
CLKP/8
128
512
34.133
136.533
0101
CLKP/10
160
640
42.667
170.667
0110
CLKP/12
192
768
51.2
204.8
0111
CLKP/16
256
1024
68.267
273.067
1000
CLKP/2
32
128
8.533
34.133
1001
CLKP/8
128
512
34.133
136.533
1010
CLKP/10
160
640
42.667
170.667
1011
CLKP/12
192
768
51.2
204.8
1100
CLKP/16
256
1024
68.267
273.067
1101
CLKP/20
320
1280
85.333
341.333
1110
CLKP/24
384
1536
102.4
409.6
1111
CLKP/32
512
2048
136.533
546.133
CLKP: Peripheral clock
Summary of Contents for S6J3200 Series
Page 1041: ...CHAPTER 28 LCD Controller 1040 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Page 1044: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1043...
Page 1047: ...CHAPTER 28 LCD Controller 1046 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Page 1050: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1049...
Page 1084: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1083...
Page 1086: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1085...
Page 1088: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1087...