![Toshiba TMPM3V4 Manual Download Page 512](http://html.mh-extra.com/html/toshiba/tmpm3v4/tmpm3v4_manual_428626512.webp)
23.4 Pin Functions
The debug interface pins can also be used as general-purpose ports.
The PB3 and PB4 pins are shared between the JTAG debug port function and the Serial Wire Debug Port func-
tion. The PB5 pin is shared between the JTAG debug port function and the SWV trace output function.
Table 23-1 SWJ-DP,ETM Debug Functions
SWJ-DP
Pin Name
General-
purpose
Port Name
JTAG Debug Function
SW Debug Function
I / O
Explanation
I / O
Explanation
TMS / SWDIO
PB3
Input
JTAG Test Mode Selection
I / O
Serial Wire Data Input/Output
TCK / SWCLK
PB4
Input
JTAG Test Check
Input
Serial Wire Clock
TDO / SWV
PB5
Output
JTAG Test Data Output
(Output)(Note)
(Serial Wire Viewer Output)
TDI
PB6
Input
JTAG Test Data Input
-
-
TRST
PB7
Input
JTAG Test RESET
-
-
TRACECLK
PB0
Output
TRACE Clock Output
TRACEDATA0
PB1
Output
TRACE DATA Output0
TRACEDATA1
PB2
Output
TRACE DATA Output1
Note:
When SWV function is enabled.
After reset, PB3, PB4, PB5, PB6 and PB7 pins are configured as debug port function pins. The functions of oth-
er debug interface pins need to be programmed as required.
When using a low power consumption mode, take note of the following points.
Note 1: If PB3 and PB5 are configured as TMS/SWDIO and TDO/SWV, output continues to be enabled even in STOP mode re-
gardless of the setting of the CGSTBYCR<DRVE> bit.
Note 2: If PB4 is configured as a debug function pin, it prevents a low power consumption mode from being fully effective. Con-
figure PB4 to function as a general-purpose port if the debug function is not used.
Table 23-2 summarizes the debug interface pin and related port settings after reset.
Table 23-2 Debug Interface Pins and Related Port Settings after Reset
Port Name
(Bit Name)
Debug Function
Value of Related port settings after reset
Function
(PxFR)
Input
(PxIE)
Output
(PxCR)
Pull-up
(PxPUP)
Pull-down
(PxPDN)
PB3
TMS/SWDIO
1
1
1
1
0
PB4
TCK/SWCLK
1
1
0
0
1
PB5
TDO/SWV
1
0
1
0
0
PB6
TDI
1
1
0
1
0
PB7
TRST
1
1
0
1
0
PB0
TRACECLK
0
0
0
0
0
PB1
TRACEDATA0
0
0
0
0
0
PB2
TRACEDATA1
0
0
0
0
0
− : Don’t care
TMPM3V6/M3V4
23. Debug Interface
23.4 Pin Functions
Page 490
2019-02-06
Summary of Contents for TMPM3V4
Page 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Page 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Page 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Page 8: ......
Page 22: ...xiv ...
Page 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Page 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Page 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Page 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Page 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Page 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Page 544: ......