
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
Summary of Contents for MB90390 Series
Page 2: ......
Page 4: ......
Page 17: ...xiii APPENDIX D List of Interrupt Vectors 690 INDEX 695 ...
Page 18: ...xiv ...
Page 132: ...104 CHAPTER 5 CLOCKS ...
Page 152: ...124 CHAPTER 6 CLOCK MODULATOR ...
Page 210: ...182 CHAPTER 11 TIME BASE TIMER ...
Page 218: ...190 CHAPTER 12 WATCHDOG TIMER ...
Page 264: ...236 CHAPTER 14 16 BIT RELOAD TIMER WITH EVENT COUNT FUNCTION ...
Page 274: ...246 CHAPTER 15 WATCH TIMER ...
Page 306: ...278 CHAPTER 17 DTP EXTERNAL INTERRUPTS ...
Page 338: ...310 CHAPTER 18 8 10 BIT A D CONVERTER ...
Page 364: ...336 CHAPTER 19 UART0 UART1 ...
Page 398: ...370 CHAPTER 20 UART2 UART3 Figure 20 5 2 ORE Set Timing Receive data RDRF ORE ...
Page 432: ...404 CHAPTER 20 UART2 UART3 ...
Page 482: ...454 CHAPTER 22 SERIAL I O ...
Page 560: ...532 CHAPTER 24 STEPPING MOTOR CONTROLLER ...
Page 582: ...554 CHAPTER 27 ROM MIRRORING MODULE ...
Page 632: ...604 CHAPTER 29 EXAMPLES OF SERIAL PROGRAMMING CONNECTION ...
Page 722: ...694 APPENDIX ...
Page 723: ...695 INDEX The index follows on the next page This is listed in alphabetic order ...
Page 740: ......