CHAPTER 16:Stepper Motor Controller
S6J3200 Series Hardware Manual Document Number: 002-04852 Rev. *G
393
4.3.
PWM Selection Register (PWS)
The PWM Selection Register (PWS) sets the output state of the Stepper Motor Controller pins ("L", "H",
PWM pulse or "Hi-Z") and allows the update of the PWM duty cycle or output pin states.
REGISTER_NAME
SMCi_PWS
OFFSET
0x00000006
ACCESS_SIZE
B, H
MULTIPLE
1
NUMERIC_TYPE
-
OTHER
-
BIT_OFFSET
15
14
13
12
11
10
9
8
BIT_NAME
Reserved
BS
P2[2:0]
M2[2:0]
ACCESS_TYPE
R0,W0
R/+W
R/W
R/W
PROT_TYPE
Rp/Wp
INITIAL_VALUE
0
0
0
0
BIT_OFFSET
7
6
5
4
3
2
1
0
BIT_NAME
Reserved
P1[2:0]
M1[2:0]
ACCESS_TYPE
R0/W0
R/W
R/W
PROT_TYPE
Rp/Wp
INITIAL_VALUE
0
0
0
[bit15] Reserved: Reserved bit
When writing, always write "0".
When reading, "0" is always read.
[bit14] BS: Output Update bit
The Output Update bit (BS) synchronously updates the Selector.Output Selection bits and PWM Pulse
Generator.Compare Data Value (See Figure3-3). To change the settings for the PWM duty cycle or output
pin states, the BS bit must be set to "1"after (or at the same time) a new configuration is written to the
PWM1 and PWM2 Compare Registers (PWC1, PWC2) and PWM Selection Register (PWS). If the BS bit
is set to "1"while PWM Pulse Generators are operating, the new settings are loaded at the end of the
current PWM cycle. The BS bit is cleared automatically at the beginning of the following PWM cycle. As
long as BS bit is "0", the PWM duty cycle and output pin states are not changed.
This bit can also be set by the PWSS.BSS bit.
Bit
Description
0
Disables the update of the setting for the PWM output
1
Enables the update of the setting for the PWM output
Notes:
−
If the PWM Pulse Generator is started(PWC.CE="1"), operate following steps because the PWM
Pulse Generator.Compare Data Value must be initialized.
Содержание 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...