The followings show the settings in the case that 2 ms width one-shot pulse is output after 3ms by trigger-
ing TBxIN input at the rising edge. (φT1 is selected for counting.)
7
6
5
4
3
2
1
0
[Main processing] Capture setting by TBxIN0
Set PORT registers.
TBxEN
← 1
X
X
X
X
X
X
X
TBxRUN
← X
X
X
X
X
0
X
0
TBxMOD
← X
1
0
1
0
0
0
1
TBxFFCR
← X
X
0
0
0
0
1
0
Set PORT registers.
Allocates corresponding port to TBxIN.
Enables TMRBx operation.
Stops count operation.
Changes source clock to φT1. Fetches a count value into
the TBxCP0 at the rising edge of TBxIN.
Clears TBxFF0 reverse trigger and disables.
Allocates corresponding port to TBxOUT.
Interrupt Set-Enable
Register
← *
*
*
*
*
*
*
*
Permits to generate interrupts specified by INTCAPx0 inter-
rupt corresponding bit by setting to "1".
TBxRUN
← *
*
*
*
*
1
X
1
Starts the TMRBx module.
[Processing of INTCAPx0 interrupt service routine] Pulse output setting
TBxRG0
← *
*
*
*
*
*
*
*
Sets count value. ( 3ms/φT1)
← *
*
*
*
*
*
*
*
TBxRG1
← *
*
*
*
*
*
← *
*
*
*
*
*
Sets count value.( (3+2)ms/φT1)
TBxFFCR
← X X − − 1 1 − −
Reverses TBxFF0 if UC consistent with TBxRG0 and
TBxRG1.
TBxIM
← X
X
X
X
X
1
0
1
Masks except TBxRG1 correspondence interrupt.
Interrupt Set-Enable
Register
← *
*
*
*
*
*
*
*
Permits to generate interrupt specified by INTTBx interrupt
corresponding bit setting to "1".
[Processing of INTTBx interrupt service routine] Output disable
TBxFFCR
← X
X
−
−
0
0
−
−
Clears TBxFF0 reverse trigger setting.
Interrupt enable clear
register
← *
*
*
*
*
*
*
*
Prohibits interrupts specified by INTTBx interrupt correspond-
ing bit by setting to "1".
Note 1: m ; corresponding bit of port
Note 2: X; Don’t care
−; No change
If a delay is not required, TBxFF0 is reversed when data is taken into TBxCP0, and TBxRG1 is set to the
sum of the TBxCP0 value (c) and the one-shot pulse width (p), (c + p), by generating the INTCAPx0 inter-
rupt. TBxRG1 change must be completed before the next match.
TBxFF0 is enabled to reverse when UC matches with TBxRG1, and is disabled by generating the INTTBx
interrupt.
Count clock
(Internal clock)
Timer out
p
ut
TBxOUT pin
TBxIN pin input
(External trigger pulse)
Match with TBxRG1
c
(p)
c + p
Enable reverse
INTTBx1
generation
Enable reverse when data
is taken into TBxCP0.
Taking data into the capture register TBxCP0
INTCAPx0
generation
Taking data into the capture
register TBxCP1.
Disable reverse when data
is taken into TBxCP1.
Pulse width
Figure 10-7 One-shot Pulse Output Triggered by an External Pulse (Without Delay)
TMPM3V6/M3V4
Page 181
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: ......