10.5.2 Up-counter (UC)
UC is a 16-bit binary counter.
・
Source clock
UC source clock, specified by TBxMOD<TBCLK[2:0]>, can be selected from either three types
- φT1, φT4 and φT16 - of prescaler output clock or the external clock of the TBxIN pin.
・
Counter start / stop
Counter operation is specified by TBxRUN<TBRUN>. UC starts counting if <TBRUN> = "1",
and stops counting and clears counter value if <TBRUN> = "0".
・
Timing to clear UC
1. When a match is detected.
By setting TBxMOD<TBCLE> = "1", UC is cleared if when the comparator detects a
match between counter value and the value set in TBxRG1. UC operates as a free-running coun-
ter if TBxMOD<TBCLE> = "0".
2. When UC stops
UC stops counting and clears counter value if TBxRUN<TBRUN> = "0".
・
UC overflow
If UC overflow occurs, the INTTBx overflow interrupt is generated.
10.5.3 Timer registers (TBxRG0, TBxRG1)
TBxRG0 and TBxRG1 are registers for setting values to compare with up-counter values and two registers
are built into each channel. If the comparator detects a match between a value set in this timer register and
that in a UC up-counter, it outputs the match detection signal.
TBxRG0 and TBxRG1 are consisted of the double-buffered configuration which are paired with register buf-
fers. The double buffering is disabled in the initial state.
Controlling double buffering disable or enable is specified by TBxCR<TBWBF> bit. If <TBWBF> = "0",
the double buffering becomes disable. If <TBWBF> = "1", it becomes enable. When the double buffering is en-
abled, a data transfer from the register buffer to the timer register (TBxRG0/1) is done in the case that UC is
matched with TBxRG1.When the counter is stopped even if double buffering is enabled, the double buffer-
ing operates as a single buffer, and an immediate data can be written to the TBxRG0 and TBxRG1.
TMPM3V6/M3V4
Page 173
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: ......