199
CHAPTER 13 16-BIT I/O TIMER
Table 13.3-1 Control Status Register of Free-run Timer (Lower)
Bit name
Function
bit7
IVF:
Interrupt request flag
bit and clear bit
•
This bit is the interrupt request flag bit and clear bit
•
Writing "0": A possible interrupt is cleared.
•
Writing "1": No effect.
•
"1" is always read during a read-modify-write (RMW) instructions cycle.
bit6
IVFE:
•
This bit enables the interrupt request
•
Writing "0": Interrupt disabled.
•
Writing "1": Interrupt enabled.
bit5
STOP:
STOP bit
•
The STOP bit is used to stop the timer.
•
Writing "0": Counter enabled (operation).
•
Writing "1": Counter disabled (stop).
bit4
MODE:
MODE bit
•
"0": Initialization by reset or clear bit
•
"1": Free-run timer 0: Initialization by reset, clear bit, or compare register 0
Free-run timer 1: Initialization by reset, clear bit, or compare register 4
bit3
CLR:
CLR bit
•
The CLR bit initializes the operating free-run timer to the value "0000
B
"
•
Writing "0": no effect.
•
Writing "1": Counter is initialized.
Note:
To initialize the counter value while the timer is stopped, write "0000
B
" to the data
register.
bit2 to
bit0
CLK2, CLK1,
CLK0:
These bits are used to select the count clock for the 16-bit-free-run timer. The clock is
updated immediately after a value is written to these bits. Therefore, ensure that the
input capture operations are stopped before a value is written to these bits.
CLK2
CLK1
CLK0
Count
clock
φ
=
20 MHz
φ
=
16 MHz
φ
=
8 MHz
φ
=
4 MHz
φ
=
1 MHz
0
0
0
φ
50 ns
62.5 ns
125 ns
0.25
μ
s
1
μ
s
0
0
1
φ
/ 2
100 ns
125 ns
0.25
μ
s
0.5
μ
s
2
μ
s
0
1
0
φ
/ 4
0.2
μ
s
0.25
μ
s
0.5
μ
s
1
μ
s
4
μ
s
0
1
1
φ
/ 8
0.4
μ
s
0.5
μ
s
1
μ
s
2
μ
s
8
μ
s
1
0
0
φ
/ 16
0.8
μ
s
1
μ
s
2
μ
s
4
μ
s
16
μ
s
1
0
1
φ
/ 32
1.6
μ
s
2
μ
s
4
μ
s
8
μ
s
32
μ
s
1
1
0
φ
/ 64
3.2
μ
s
4
μ
s
8
μ
s
16
μ
s
64
μ
s
1
1
1
φ
/ 128
6.4
μ
s
8
μ
s
16
μ
s
32
μ
s
128
μ
s
Содержание 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: ......