10.5.4 Capture
This is a circuit that controls the timing of latching values from the UC up-counter into the TBxCP0 and
TBxCP1 capture registers. The timing with which to latch data is specified by TBxMOD<TBCPM[1:0]>.
Software can also be used to import values from the UC up-counter into the capture register; specifically,
UC values are taken into the TBxCP0 capture register each time "0" is written to TBxMOD<TBCP>.
10.5.5 Capture registers (TBxCP0, TBxCP1)
This register captures an up-counter (UC) value.
10.5.6 Up-counter capture register (TBxUC)
Other than the capturing functions shown above, the current count value of the UC can be captured by read-
ing the TBxUC registers.
10.5.7 Comparators (CP0, CP1)
This register compares with the up-counter (UC) and the value setting of the Timer Register (TBxRG0
and TBxRG1) to detect whether there is a match or not. If a match is detected,
INTTBx0 and INTTBx1
are generated.
10.5.8 Timer Flip-flop (TBxFF0)
The timer flip-flop (TBxFF0) is reversed by a match signal from the comparator and a latch signal to the cap-
ture registers. It can be enabled or disabled to reverse by setting the TBxFFCR<TBC1T1, TBC0T1,
TBE1T1, TBE0T1>.
The value of TBxFF0 becomes undefined after a reset. The flip-flop can be reversed by writing "00" to
TBxFFCR<TBFF0C[1:0]>. It can be set to "1" by writing "01," and can be cleared to "0" by writing "10."
The value of TBxFF0 can be output to the Timer output pin (TBxOUT). If the timer output is performed,
the corresponding port settings must be programmed beforehand.
10.5.9 Capture interrupt (INTCAPx0, INTCAPx1)
Interrupts INTCAPx0 and INTCAPx1 can be generated at the timing of latching values from the UC up-coun-
ter into the TBxCP0 and TBxCP1 capture registers. The interrupt timing is specified by the CPU.
TMPM3V6/M3V4
10. 16-bit Timer / Event Counters (TMRB)
10.5 Description of Operations for Each Circuit
Page 174
2019-02-06
Содержание TMPM3V4
Страница 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Страница 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Страница 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Страница 8: ......
Страница 22: ...xiv ...
Страница 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Страница 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Страница 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Страница 206: ...TMPM3V6 M3V4 10 16 bit Timer Event Counters TMRB 10 7 Applications using the Capture Function Page 184 2019 02 06 ...
Страница 232: ...TMPM3V6 M3V4 11 Universal Asynchronous Receiver Transmitter Circuit UART 11 4 Operation Description Page 210 2019 02 06 ...
Страница 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Страница 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Страница 420: ...TMPM3V6 M3V4 16 Analog Digital Converter ADC 16 6 Timing chart of AD conversion Page 398 2019 02 06 ...
Страница 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Страница 510: ...TMPM3V6 M3V4 22 Flash Memory Operation 22 4 Programming in the User Boot Mode Page 488 2019 02 06 ...
Страница 538: ...TMPM3V6 M3V4 25 Electrical Characteristics 25 7 Recommended Oscillation Circuit Page 516 2019 02 06 ...
Страница 541: ...26 3 TMPM3V4FWUG TMPM3V4FSUG Type LQFP64 P 1010 0 50E LPHQVLRQV TMPM3V6 M3V4 Page 519 2019 02 06 ...
Страница 544: ......