CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
User’s Manual U18371EJ1V0UM
35
(c) Securement of communication serial interface
UART or CSI-H/S is used for communication between MINICUBE2 and the target system. The settings
related to the serial interface modes are performed by the debug monitor program, but if the setting is changed
by the user program, a communication error may occur.
To prevent such a problem from occurring, communication serial interface must be secured in the user
program.
[How to secure communication serial interface]
Create the user program observing the following points.
• Serial interface registers
Do not set the registers related to UART and CSI-H/S in the user program.
• Interrupt mask register
When UART is used, do not mask receive end interrupts
Note
. When CSI-H/S is used, do not mask transmit
end interrupts. The following shows an example.
Example
Setting other than below is prohibited when the target device is the V850ES/KJ2 and CSI00 is
used.
7 6 5 4 3 2 1 0
CSI0IC0 x 0 x x x x x x
x: Any
Note
When the target device is the V850ES/IE2, do not mask receive error interrupts.
• Port registers
When UART is used, do not set port registers to make the TxD and RxD pins invalid. When CSI-H/S is
used, do not set port registers to make the SI, SO, SCK and H/S pins invalid. The H/S pin is used as the
port output for debugging. The following shows two examples.
Example 1
Setting other than below is prohibited when the target device is the V850ES/KJ2 and UART0 is
used.
7 6 5 4 3 2 1 0
PFC3
x x x x x x 0 0
7 6 5 4 3 2 1 0
PMC3L
x x x x x x 1 1
x: Any