197
CHAPTER 13 16-BIT I/O TIMER
13.3.1
Data Register
The data register can read the count value of the 16-bit free-run timer. The counter value
is cleared to "0000
B
" upon a reset. The timer value can be set by writing a value to this
register. However, ensure that the value is written while the operation is stopped
(STOP=1).
The data register must be accessed by the word access instructions.
■
Data Register of Free-run Timer
Figure 13.3-2 Data Register of Free-run Timer (TCDT0/TCDT1)
The 16-bit free-run timer is initialized upon the following factors:
•
Reset
•
Clear bit (CLR) of control status register
•
Free-run timer 0: A match between compare register 0 and the timer counter value.
•
Free-run timer 1: A match between compare register 4 and the timer counter value.
7
6
5
4
3
2
1
0
Initial value
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
B
R/W R/W R/W R/W R/W
R/W R/W
TCDT0/TCDT1
lo
w
er bits
Tn0
Timer Data Reg. 0
Tn1
Timer Data Reg. 1
Tn2
Timer Data Reg. 2
Tn3
Timer Data Reg. 3
Tn4
Timer Data Reg. 4
Tn5
Timer Data Reg. 5
Tn6
Timer Data Reg. 6
Tn7
Timer Data Reg. 7
n = 0, 1
TCDT0/TCDT1
upper bits
Tn8
Timer Data Reg. 8
Tn9
Timer Data Reg. 9
Tn10
Timer Data Reg. 10
Tn11
Timer Data Reg. 11
Tn12
Timer Data Reg. 12
Tn13
Timer Data Reg. 13
Tn14
Timer Data Reg. 14
Tn15
Timer Data Reg. 15
n = 0, 1
R/W
:
Readable and
w
ritable
15
14
13
12
11
10
9
8
R/W R/W R/W R/W R/W
R/W R/W
R/W
R/W
Address:
bit
352C
H
TCDT0/TCDT1
352D
H
353C
H
353D
H
bit0 to bit7
bit8 to bit15
Tn0
Tn1
Tn2
Tn3
Tn4
Tn5
Tn6
Tn7
Tn8
Tn9
Tn10
Tn11
Tn12
Tn13
Tn14
Tn15
Содержание 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: ......