CHAPTER 16:Stepper Motor Controller
394
S6J3200 Series Hardware Manual Document Number: 002-04852 Rev. *G
1.
Set the PWM Compare Register.Compare Data Value(PWC1.D[9:0], PWC2.D[9:0])
2.
Set the PWM Selection Register.Output Selection bits(BS="1", PWS.P2[2:0], PWS.M2[2:0],
PWS.P1[2:0], PWS.M1[2:0])
3.
Set the PWM Control Register:Count Enable bit(PWC.CE="1")
−
If the BS bit is "1" , don't change the PWM Compare Register.Compare Data Value(PWC1.D[9:0],
PWC2.D[9:0]) and the PWM Selection Register.Output Selection bits (PWS.P2[2:0], PWS.M2[2:0],
PWS.P1[2:0], PWS.M1[2:0]).
[bit13:11] P2[2:0]: Plus Output 2 Selection bits
The P2[2:0] bits select the output signal for PWM2P.
Bits
Description
000
"L": PWM2P output is fixed to low level
001
"H": PWM2P output is fixed to high level
01X
PWM pulse is driven on the PWM2P output
1XX
"Hi-Z": PWM2P output is set to high impedance
X: don't care
Note:
− If the PWS.BS bit is "1" , don't change the PWM Compare Register.Compare Data Value(PWC1.D[9:0],
PWC2.D[9:0]) and the PWM Selection Register.Output Selection bits (P2[2:0], PWS.M2[2:0],
PWS.P1[2:0], PWS.M1[2:0]).
[bit10:8] M2[2:0]: Minus Output 2 Selection bits
The M2[2:0] bits selects the output signal for PWM2M.
Bits
Description
000
"L": PWM2M output is fixed to low level
001
"H": PWM2M output is fixed to high level
01X
PWM pulse is driven on the PWM2M output
1XX
"Hi-Z": PWM2M output is set to high impedance
X: don't care
Note:
−
If the PWS.BS bit is "1" , don't change the PWM Compare Register.Compare Data
Value(PWC1.D[9:0], PWC2.D[9:0]) and the PWM Selection Register.Output Selection bits
(PWS.P2[2:0], M2[2:0], PWS.P1[2:0], PWS.M1[2:0]).
[bit7:6] Reserved: Reserved bit
When writing, always write "0".
When reading, "0" is always read.
[bit5:3] P1[2:0]: Plus Output 1 Selection bits
The P1[2:0] bits select the output signal for PWM1P.
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...