NEC V850 ZigBee Pro User Manual page 43

32-bit v850 gateway development platform
Table of Contents

Advertisement

IAR Sample Session
Table 7-1
Table 7-2
Figure 7-6
Resources used by the debugging monitor
UART for
Device
debugging
V850ES/SG2
UARTD0
(μPD70F3281Y)
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.
Monitor interupt vectors
Interrupt Vector
Device
Adress
0x0060-0x0063
V850ES/SG2
0x02C0-0x02C3
(μPD70F3281Y)
0x02B0-0x02B3
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:
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.
User's Manual U19026EE3V0UM00
Interrupt control
Terminals used
flags
UD0RMK
P30/TxDD0
UD0SMK
P31/RxDD0
Function
DBTRAP debug interrupt vector
UARTD0 receive interrupt vector
UARTD0 status interrupt vector
Chapter 7
43

Advertisement

Table of Contents
loading

Table of Contents