TIMER A
7751 Group User’s Manual
5–40
5.6 Pulse width modulation (PWM) mode
Fig. 5.6.1 Structures of timer Ai mode registers and timer Ai registers in PWM mode
b7
b0
b7
b0
Timer A0 register (Addresses 47
16
, 46
16
)
Timer A1 register (Addresses 49
16
, 48
16
)
Timer A2 register (Addresses 4B
16
, 4A
16
)
Timer A3 register (Addresses 4D
16
, 4C
16
)
Timer A4 register (Addresses 4F
16
, 4E
16
)
Functions
Bit
At reset
RW
15 to 0 These bits can be set to “0000
16
” to “FFFE
16
.”
Assuming that the set value = n, the “H” level
width of the PWM pulse output from the
TAi
OUT
pin is expressed as follows:
Undefined
<When operating as a 16-bit pulse width modulator>
(b15)
(b8)
WO
n
f
i
f
i
: Frequency of count source (f
2
/f
4
, f
16
/f
32
, f
64
/f
128
, or f
512
/f
1024
)
<When operating as an 8-bit pulse width modulator>
(b15)
b7
b0
b7
b0
(b8)
Timer A0 register (Addresses 47
16
, 46
16
)
Timer A1 register (Addresses 49
16
, 48
16
)
Timer A2 register (Addresses 4B
16
, 4A
16
)
Timer A3 register (Addresses 4D
16
, 4C
16
)
Timer A4 register (Addresses 4F
16
, 4E
16
)
Functions
Bit
At reset
RW
7 to 0
15 to 8
Undefined
Undefined
These bits can be set to “00
16
” to “FF
16
.”
Assuming that the set value = m, PWM
pulse’s period output from the TAi
OUT
pin is
expressed as follows:
(m + 1)(2
8
– 1)
f
i
WO
These bits can be set to “00
16
” to “FE
16
.”
Assuming that the set value = n, the “H” level
width of the PWM pulse output from the
TAi
OUT
pin is expressed as follows:
n(m + 1)
f
i
WO
f
i
: Frequency of count source (f
2
/f
4
, f
16
/f
32
, f
64
/f
128
, or f
512
/f
1024
)
b7
b6
b5
b4
b3
b2
b1
b0
Timer Ai mode register (i = 0 to 4) (Addresses 56
16
to 5A
16
)
7
0 0 : f
2
/f
4
0 1 : f
16
/f
32
1 0 : f
64
/f
128
1 1 : f
512
/f
1024
b7 b6
Count source select bits
1
1
1
At reset
0
RW
Trigger select bits
Fix this bit to “1” in PWM mode.
1
Operating mode select bits
Bit name
Functions
1 1 : PWM mode
b1 b0
b4 b3
16/8-bit PWM mode select bit
0 0 :
Writing “1” to count start bit
0 1 :
(TAi
IN
pin functions as a pro-
grammable I/O port.)
1 0 : Falling edge of TAi
IN
pin’s input signal
1 1 : Rising edge of TAi
IN
pin’s input signal
Bit
0 : As a 16-bit pulse width modulator
1 : As an 8-bit pulse width modulator
4
0
2
3
5
6
0
0
0
0
0
0
0
RW
RW
RW
RW
RW
RW
RW
RW
Summary of Contents for 7700 FAMILY
Page 2: ...MITSUBISHI 16 BIT SINGLE CHIP MICROCOMPUTER 7700 FAMILY 7751 SERIES 7751 Group User s Manual...
Page 11: ...Table of Contents viii 7751 Group User s Manual MEMORANDUM...
Page 157: ...TIMER B 6 28 7751 Group User s Manual 6 5 Pulse period pulse width measurement mode MEMORANDUM...
Page 245: ...7751 Group User s Manual 8 36 A D CONVERTER Precautions when using A D converter MEMORANDUM...
Page 265: ...7751 Group User s Manual WAIT MODE 11 6 11 3 Precautions for Wait mode MEMORANDUM...
Page 289: ...CONNECTION WITH EXTERNAL DEVICES 12 4 Hold function 7751 Group User s Manual 12 24 MEMORANDUM...
Page 290: ...CHAPTER 13 RESET 13 1 Hardware reset 13 2 Software reset...
Page 302: ...CHAPTER 14 CLOCK GENERATING CIRCUIT 14 1 Oscillation circuit example 14 2 Clock...
Page 307: ...CLOCK GENERATING CIRCUIT 7751 Group User s Manual 14 6 14 2 Clock MEMORANDUM...
Page 360: ...CHAPTER 16 STANDARD CHARACTERISTICS 16 1 Standard characteristics...
Page 366: ...CHAPTER 17 APPLICATIONS 17 1 Memory expansion...
Page 405: ...APPLICATIONS 7751 Group User s Manual 17 40 17 1 Memory expansion MEMORANDUM...
Page 406: ...CHAPTER 18 PROM VERSION 18 1 EPROM mode 18 2 Usage precaution...
Page 417: ...7751 Group User s Manual PROM VERSION 18 12 18 2 Usage precaution MEMORANDUM...
Page 418: ...CHAPTER 19 FLASH MEMORY VERSION 19 1 Parallel input output mode 19 2 Serial input output mode...
Page 451: ...FLASH MEMORY VERSION 7751 Group User s Manual 19 34 19 2 Serial input output mode MEMORANDUM...
Page 484: ...APPENDIX 7751 Group User s Manual 20 33 Appendix 4 Package outlines 80D0...
Page 489: ...APPENDIX 7751 Group User s Manual 20 38 Appendix 6 Hexadecimal instruction code table...
Page 490: ...APPENDIX 7751 Group User s Manual 20 39 Appendix 6 Hexadecimal instruction code table...
Page 492: ...APPENDIX 7751 Group User s Manual 20 41 Appendix 7 Machine instructions...
Page 493: ...APPENDIX 7751 Group User s Manual 20 42 Appendix 7 Machine instructions...
Page 494: ...APPENDIX 7751 Group User s Manual 20 43 Appendix 7 Machine instructions...
Page 495: ...APPENDIX 7751 Group User s Manual 20 44 Appendix 7 Machine instructions...
Page 496: ...APPENDIX 7751 Group User s Manual 20 45 Appendix 7 Machine instructions...
Page 497: ...APPENDIX 7751 Group User s Manual 20 46 Appendix 7 Machine instructions...
Page 498: ...APPENDIX 7751 Group User s Manual 20 47 Appendix 7 Machine instructions...
Page 499: ...APPENDIX 7751 Group User s Manual 20 48 Appendix 7 Machine instructions...
Page 500: ...APPENDIX 7751 Group User s Manual 20 49 Appendix 7 Machine instructions...
Page 501: ...APPENDIX 7751 Group User s Manual 20 50 Appendix 7 Machine instructions...
Page 502: ...APPENDIX 7751 Group User s Manual 20 51 Appendix 7 Machine instructions...
Page 503: ...APPENDIX 7751 Group User s Manual 20 52 Appendix 7 Machine instructions...
Page 504: ...APPENDIX 7751 Group User s Manual 20 53 Appendix 7 Machine instructions...
Page 505: ...APPENDIX 7751 Group User s Manual 20 54 Appendix 7 Machine instructions...
Page 506: ...APPENDIX 7751 Group User s Manual 20 55 Appendix 7 Machine instructions...
Page 507: ...APPENDIX 7751 Group User s Manual 20 56 Appendix 7 Machine instructions...
Page 508: ...APPENDIX 7751 Group User s Manual 20 57 Appendix 7 Machine instructions...
Page 509: ...APPENDIX 7751 Group User s Manual 20 58 Appendix 7 Machine instructions...
Page 510: ...APPENDIX 7751 Group User s Manual 20 59 Appendix 7 Machine instructions...
Page 511: ...APPENDIX 7751 Group User s Manual 20 60 Appendix 7 Machine instructions...
Page 535: ...APPENDIX Appendix 9 Q A 7751 Group User s Manual 20 84 MEMORANDUM...
Page 536: ...GLOSSARY...
Page 539: ...GLOSSARY 7751 Group User s Manual 4 MEMORANDUM...