![NEC V850 ZigBee Pro Скачать руководство пользователя страница 43](http://html.mh-extra.com/html/nec/v850-zigbee-pro/v850-zigbee-pro_user-manual_251470043.webp)
Table 7-1 Resources used by the debugging monitor
Device
UART for
debugging
Interrupt control
flags
Terminals used
V850ES/SG2
(μPD70F3281Y)
UARTD0
UD0RMK
UD0SMK
P30/TxDD0
P31/RxDD0
Additionally, please note the following points:
-
Do not change the control registers of UARTD0.
-
Do not change or disable the interrupt control / mask flags of
UARTD0.
-
Do not change the port mode or port mode control registers for port
bits P30 and P31.
-
Debugging functions like forcible break (debugger stop command)
do not operate normally in the following states where the clock
supply to UARTD0 is disabled:
•
IDLE mode
•
STOP mode
•
Main oscillation (fx) is stopped.
Monitor Interrupt Vectors
The following interrupt vectors are used by the monitor program and cannot be
used by the user program.
Table 7-2 Monitor interupt vectors
Device
Interrupt Vector
Adress
Function
V850ES/SG2
(μPD70F3281Y)
0x0060-0x0063
DBTRAP debug interrupt vector
0x02C0-0x02C3
UARTD0 receive interrupt vector
0x02B0-0x02B3
UARTD0 status interrupt vector
Monitor Reset Vector
When a user program is downloaded by using the IAR C-SPY debugger, the reset
vector (address 0x0000) of the user program is replaced by the one of monitor
program. The debugger moves the reset vector of the user program automatically
to address 0x0004. The correction of the relative jump address is also done
automatically by the debugger.
Example:
Figure 7-6 Monitor Reset
Memory Area reserved for monitor
The monitor program is located in the highest FLASH block of the V850ES/SG2
device. Only 2 kB of memory are allocated by the monitor program.
IAR Sample Session
Chapter 7
User's Manual U19026EE3V0UM00
43