![](http://datasheet.mmic.net.cn/370000/UPD70F3214HGC-8EU_datasheet_16743828/UPD70F3214HGC-8EU_89.png)
CHAPTER 3 CPU FUNCTIONS
User’s Manual U16890EJ1V0UD
89
3.4.8 Cautions
(1) Wait when accessing register
Be sure to set the following register before using the V850ES/KG1.
System wait control register (VSWC)
After setting the VSWC register, set the other registers as required.
When using an external bus, set the VSWC register and then set the various pins to the control mode by
setting the port-related registers.
(a) System wait control register (VSWC)
The VSWC register controls the bus access wait time for the on-chip peripheral I/O registers.
Access to the on-chip peripheral I/O register lasts 3 clocks (during no wait), but in the V850ES/KG1, waits
are required according to the internal system clock frequency. Set the values shown below to the VSWC
register according to the internal system clock frequency that is used.
This register can be read or written in 8-bit units (address: FFFFF06EH; after reset: 77H).
Operation Conditions
Internal System Clock
Frequency (f
CLK
)
VSWC Register
Setting
32 kHz
≤
f
CLK
< 16.6 MHz
00H
REGC = V
DD
= 5 V
±
10%,
in PLL mode (f
X
= 2 to 5 MHz)
16.6 MHz
≤
f
CLK
≤
20 MHz
01H
REGC = V
DD
= 4.0 to 5.5 V
32 kHz
≤
f
CPU
≤
16 MHz
00H
REGC = Capacity, V
DD
= 4.0 to 5.5 V
32 kHz
≤
f
CLK
< 8 MHz
00H
REGC = V
DD
= 2.7 to 4.0 V
32 kHz
≤
f
CLK
≤
8 MHz
00H
Remark
f
X
: Main clock oscillation frequency
(b) Access to special on-chip peripheral I/O register
This product has two types of internal system buses.
One type is for the CPU bus and the other is for the peripheral bus to interface with low-speed peripheral
hardware.
Since the CPU bus clock and peripheral bus clock are asynchronous, if a conflict occurs during access
between the CPU and peripheral hardware, illegal data may be passed unexpectedly. Therefore, when
accessing peripheral hardware that may cause a conflict, the number of access cycles is changed so that
the data is received/passed correctly in the CPU. As a result, the CPU does not shift to the next
instruction processing and enters the wait status. When this wait status occurs, the number of execution
clocks of the instruction is increased by the number of wait clocks.
Note this with caution when performing real-time processing.
When accessing a special on-chip peripheral I/O register, additional waits may be required further to the
waits set by the VSWC register.
The access conditions at that time and the method to calculate the number of waits to be inserted
(number of CPU clocks) are shown below.