526
CHAPTER 24 STEPPING MOTOR CONTROLLER
24.2.2
PWM1 and PWM2 Compare Registers
The contents of the two 8-bit compare registers determine the widths of PWM pulses.
The stored value of "00
H
" represents the PWM duty of 0% and "FF
H
" represents the
duty of 99.6%.
■
PWM1 and PWM2 Compare Registers
PWM1 and PWM2 compare registers are accessible at any time, however the modified values are reflected
to the pulse width at the end of the current PWM cycle after the BS bit of the PWM2 Select register is set to
"1".
Figure 24.2-3 PWM1 and PWM2 Compare Registers
Figure 24.2-4 Examples for Duty Cycle Settings
7
bit
bit
6
5
4
3
2
1
0
Initial value
X X X X X X X X
B
PWC1n (lo
w
er)
R/W R/W R/W R/W
R/W
R/W
R/W
R/W
H
SMC0: 003550
SMC1: 003554
SMC2: 003558
SMC3: 00355C
SMC4: 003560
H
H
H
H
SMC5: 003564
H
15
14
13
12
11
10
9
8
Initial value
X X X X X X X X
B
R/W R/W R/W R/W
R/W
R/W
R/W
R/W
H
SMC0: 003551
SMC1: 003555
SMC2: 003559
SMC3: 00355D
SMC4: 003561
H
H
H
H
PWC2n (upper)
SMC5: 003565
H
D7 D6 D5 D4 D3 D2
D1
D0
D7 D6 D5 D4 D3 D2
D1
D0
Address:
One PWM Cycle
00
H
Register value
80
H
256 input clock cycles
128 input clock cycles
255 input clock cycles
FF
H
Содержание MB90390 Series
Страница 2: ......
Страница 4: ......
Страница 17: ...xiii APPENDIX D List of Interrupt Vectors 690 INDEX 695 ...
Страница 18: ...xiv ...
Страница 132: ...104 CHAPTER 5 CLOCKS ...
Страница 152: ...124 CHAPTER 6 CLOCK MODULATOR ...
Страница 210: ...182 CHAPTER 11 TIME BASE TIMER ...
Страница 218: ...190 CHAPTER 12 WATCHDOG TIMER ...
Страница 264: ...236 CHAPTER 14 16 BIT RELOAD TIMER WITH EVENT COUNT FUNCTION ...
Страница 274: ...246 CHAPTER 15 WATCH TIMER ...
Страница 306: ...278 CHAPTER 17 DTP EXTERNAL INTERRUPTS ...
Страница 338: ...310 CHAPTER 18 8 10 BIT A D CONVERTER ...
Страница 364: ...336 CHAPTER 19 UART0 UART1 ...
Страница 398: ...370 CHAPTER 20 UART2 UART3 Figure 20 5 2 ORE Set Timing Receive data RDRF ORE ...
Страница 432: ...404 CHAPTER 20 UART2 UART3 ...
Страница 482: ...454 CHAPTER 22 SERIAL I O ...
Страница 560: ...532 CHAPTER 24 STEPPING MOTOR CONTROLLER ...
Страница 582: ...554 CHAPTER 27 ROM MIRRORING MODULE ...
Страница 632: ...604 CHAPTER 29 EXAMPLES OF SERIAL PROGRAMMING CONNECTION ...
Страница 722: ...694 APPENDIX ...
Страница 723: ...695 INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 740: ......