TIMER A
7751 Group User’s Manual
5–27
5.4 Event counter mode
(2) Two-phase pulse signal processing function (Timers A2 to A4)
For timers A2 to A4, the two-phase pulse signal processing function is selected by setting the two-
phase pulse signal processing select bits (bits 5 to 7 at address 44
16
) to “1.” (Refer to Figure 5.4.5.)
Figure 5.4.6 shows the timer A2, A3, and A4 mode registers when the two-phase pulse signal
processing function is selected.
With timers selecting the two-phase pulse signal processing function, the timer counts two kinds of
pulses of which phases differ by 90 degrees. There are two types of the two-phase pulse signal
processing: normal processing and quadruple processing. In timers A2 and A3, normal processing
is performed; in timer A4, quadruple processing is performed.
For some bits of the port P5 and P6 direction registers correspond to pins used for two-phase pulse
input, set these bits for the input mode.
●
Normal processing
The timer up-counts the rising edges to the TAk
IN
pin when the phase has the relationship that the
TAk
IN
pin’s input signal level goes from “L” to “H” while the TAk
OUT
(k = 2 and 3) pin’s input signal
is “H” level.
The timer down-counts the falling edges to the TAk
IN
pin when the phase has the relationship that
the TAk
IN
pin’s input signal level goes from “H” to “L” while the TAk
OUT
pin’s input signal is “H” level.
(Refer to Figure 5.4.7.)
Fig. 5.4.6 Timer A2, A3, and A4 mode registers when two-phase pulse signal processing function is
selected
1
0
0
0
0
1
Timer A2 mode register (Address 58
16
)
Timer A3 mode register (Address 59
16
)
Timer A4 mode register (Address 5A
16
)
b7
b6
b5
b4
b3
b2
b1
b0
✕
: It may be either “0” or “1.”
✕ ✕
Fig. 5.4.7 Normal processing
TAk
OUT
TAk
IN
(k=2, 3)
“H”
“H”
“L”
Up
count
+1
+1
+1
–1
–1
–1
Down-
count
“L”
Up-
count
Up-
count
Up-
count
Down-
count
Down-
count
Содержание 7700 FAMILY
Страница 2: ...MITSUBISHI 16 BIT SINGLE CHIP MICROCOMPUTER 7700 FAMILY 7751 SERIES 7751 Group User s Manual...
Страница 11: ...Table of Contents viii 7751 Group User s Manual MEMORANDUM...
Страница 12: ...CHAPTER 1 DESCRIPTION 1 1 Performance overview 1 2 Pin configuration 1 3 Pin description 1 4 Block diagram...
Страница 48: ...CHAPTER 3 INPUT OUTPUT PINS 3 1 Programmable I O ports 3 2 I O pins of internal peripheral devices...
Страница 157: ...TIMER B 6 28 7751 Group User s Manual 6 5 Pulse period pulse width measurement mode MEMORANDUM...
Страница 245: ...7751 Group User s Manual 8 36 A D CONVERTER Precautions when using A D converter MEMORANDUM...
Страница 246: ...CHAPTER 9 WATCHDOG TIMER 9 1 Block description 9 2 Operation description 9 3 Precautions when using watchdog timer...
Страница 254: ...CHAPTER 10 STOP MODE 10 1 Clock generating circuit 10 2 Operation description 10 3 Precautions for Stop mode...
Страница 260: ...CHAPTER 11 WAIT MODE 11 1 Clock generating circuit 11 2 Operation description 11 3 Precautions for Wait mode...
Страница 265: ...7751 Group User s Manual WAIT MODE 11 6 11 3 Precautions for Wait mode MEMORANDUM...
Страница 289: ...CONNECTION WITH EXTERNAL DEVICES 12 4 Hold function 7751 Group User s Manual 12 24 MEMORANDUM...
Страница 290: ...CHAPTER 13 RESET 13 1 Hardware reset 13 2 Software reset...
Страница 302: ...CHAPTER 14 CLOCK GENERATING CIRCUIT 14 1 Oscillation circuit example 14 2 Clock...
Страница 307: ...CLOCK GENERATING CIRCUIT 7751 Group User s Manual 14 6 14 2 Clock MEMORANDUM...
Страница 359: ...ELECTRICAL CHARACTERISTICS 7751 Group User s Manual 15 52 MEMORANDUM 15 15 Testing circuit for ports P0 to P8 1 and E...
Страница 360: ...CHAPTER 16 STANDARD CHARACTERISTICS 16 1 Standard characteristics...
Страница 365: ...STANDARD CHARACTERISTICS 16 1 Standard characteristics 7751 Group User s Manual 16 6 MEMORANDUM...
Страница 366: ...CHAPTER 17 APPLICATIONS 17 1 Memory expansion...
Страница 405: ...APPLICATIONS 7751 Group User s Manual 17 40 17 1 Memory expansion MEMORANDUM...
Страница 406: ...CHAPTER 18 PROM VERSION 18 1 EPROM mode 18 2 Usage precaution...
Страница 417: ...7751 Group User s Manual PROM VERSION 18 12 18 2 Usage precaution MEMORANDUM...
Страница 418: ...CHAPTER 19 FLASH MEMORY VERSION 19 1 Parallel input output mode 19 2 Serial input output mode...
Страница 451: ...FLASH MEMORY VERSION 7751 Group User s Manual 19 34 19 2 Serial input output mode MEMORANDUM...
Страница 483: ...APPENDIX 7751 Group User s Manual 20 32 Appendix 4 Package outlines Appendix 4 Package outlines 80P6N A...
Страница 484: ...APPENDIX 7751 Group User s Manual 20 33 Appendix 4 Package outlines 80D0...
Страница 489: ...APPENDIX 7751 Group User s Manual 20 38 Appendix 6 Hexadecimal instruction code table...
Страница 490: ...APPENDIX 7751 Group User s Manual 20 39 Appendix 6 Hexadecimal instruction code table...
Страница 491: ...APPENDIX 7751 Group User s Manual 20 40 Appendix 7 Machine instructions Appendix 7 Machine instructions...
Страница 492: ...APPENDIX 7751 Group User s Manual 20 41 Appendix 7 Machine instructions...
Страница 493: ...APPENDIX 7751 Group User s Manual 20 42 Appendix 7 Machine instructions...
Страница 494: ...APPENDIX 7751 Group User s Manual 20 43 Appendix 7 Machine instructions...
Страница 495: ...APPENDIX 7751 Group User s Manual 20 44 Appendix 7 Machine instructions...
Страница 496: ...APPENDIX 7751 Group User s Manual 20 45 Appendix 7 Machine instructions...
Страница 497: ...APPENDIX 7751 Group User s Manual 20 46 Appendix 7 Machine instructions...
Страница 498: ...APPENDIX 7751 Group User s Manual 20 47 Appendix 7 Machine instructions...
Страница 499: ...APPENDIX 7751 Group User s Manual 20 48 Appendix 7 Machine instructions...
Страница 500: ...APPENDIX 7751 Group User s Manual 20 49 Appendix 7 Machine instructions...
Страница 501: ...APPENDIX 7751 Group User s Manual 20 50 Appendix 7 Machine instructions...
Страница 502: ...APPENDIX 7751 Group User s Manual 20 51 Appendix 7 Machine instructions...
Страница 503: ...APPENDIX 7751 Group User s Manual 20 52 Appendix 7 Machine instructions...
Страница 504: ...APPENDIX 7751 Group User s Manual 20 53 Appendix 7 Machine instructions...
Страница 505: ...APPENDIX 7751 Group User s Manual 20 54 Appendix 7 Machine instructions...
Страница 506: ...APPENDIX 7751 Group User s Manual 20 55 Appendix 7 Machine instructions...
Страница 507: ...APPENDIX 7751 Group User s Manual 20 56 Appendix 7 Machine instructions...
Страница 508: ...APPENDIX 7751 Group User s Manual 20 57 Appendix 7 Machine instructions...
Страница 509: ...APPENDIX 7751 Group User s Manual 20 58 Appendix 7 Machine instructions...
Страница 510: ...APPENDIX 7751 Group User s Manual 20 59 Appendix 7 Machine instructions...
Страница 511: ...APPENDIX 7751 Group User s Manual 20 60 Appendix 7 Machine instructions...
Страница 535: ...APPENDIX Appendix 9 Q A 7751 Group User s Manual 20 84 MEMORANDUM...
Страница 536: ...GLOSSARY...
Страница 539: ...GLOSSARY 7751 Group User s Manual 4 MEMORANDUM...