
CHAPTER 3 CPU FUNCTIONS
User
’
s Manual U15862EJ3V0UD
134
3.4.8 Cautions
Be sure to set the following register before using the V850ES/KF1, V850ES/KG1 and V850ES/KJ1.
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.
(1) System wait control register (VSWC)
The system wait control register (VSWC) 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/KF1,
V850ES/KG1 and V850ES/KJ1, waits are required according to the operation frequency. Set the values shown
below to the VSWC register according to the operation frequency that is used.
This register can be read or written in 8-bit units (Address: FFFFF06EH, After reset: 77H).
Operation Conditions
Operation Frequency (f
CLK
)
VSWC Setting
8 MHz
≤
f
CLK
< 16.6 MHz
00H
REGC = V
DD
= 5 V±10%,
In PLL mode (OSC = 2 to 5 MHz)
16.6 MHz
≤
f
CLK
≤
20 MHz
01H
2 MHz
≤
f
CLK
< 8.3 MHz
00H
REGC = Capacity, V
DD
= 4.0 to 5.5 V
REGC = V
DD
= 2.7 to 4.0 V
8.3 MHz
≤
f
CLK
≤
16 MHz
01H
Other than above
(REGC = V
DD
= 4.0 to 5.5 V)
f
CLK
≤
16 MHz
00H
(2) 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.