CHAPTER 16:Stepper Motor Controller
378
S6J3200 Series Hardware Manual Document Number: 002-04852 Rev. *G
2.
Set the PWM Selection Register.Output Selection bits(PWS.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 PWM Pulse Generator is stopped when the Output Update bit (PWS.BS) is "1", the PWS.BS
bit will retain the value "1"until the PWM Pulse Generator is started and the beginning of the new
PWM cycle is detected. As a result, the setting of the PWM pulse width (duty cycle) and the output
pin selection settings are reflected on the Stepper Motor Controller outputs. To avoid this scenario,
clear PWC.CE only after PWS.BS is automatically cleared by the SMC.
−
If the PWS.BS bit is "1", keep the following registers value because the setting of the PWM pulse
width (duty cycle) and the output pin selection settings are not reflected at the same time.
−
PWM1 Compare Register.Compare Data Value(PWC1.D[9:0])
−
PWM2 Compare Register.Compare Data Value(PWC2.D[9:0])
−
PWM Selection Register.Output Selection bits(PWS.P2[2:0], PWS.M2[2:0], PWS.P1[2:0],
PWS.M1[2:0])
An example for the Stepper Motor Controller setting procedure is given on the Figure 3 2 .
Содержание S6J3200 Series
Страница 1041: ...CHAPTER 28 LCD Controller 1040 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Страница 1044: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1043...
Страница 1047: ...CHAPTER 28 LCD Controller 1046 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Страница 1050: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1049...
Страница 1084: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1083...
Страница 1086: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1085...
Страница 1088: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1087...