Generally, when a CPU is operated at a high speed, problems related to power or noise can occur even in devices
that are designed to support such high-speed operations, including even on-chip peripheral I/O operations.
Consequently, the parts that must be operated at high speed and the parts that can be operated at low speed should be set apart by
separating the bus.
Ordinarily, the on-chip peripheral I/O are connected to a bus that operates at low speed.
Also, since the various on-chip peripheral I/O are shared among different devices, the need to support CPUs operating at different speeds
must also be considered.
Therefore, it becomes necessary to insert several waits to ensure stable operation with the target high-speed CPU and
to ensure sufficient access time. With a slower CPU, a number of waits still need to be set to ensure sufficient access time.
In view of these considerations, the V850 includes a VSWC register that is used to set the number of waits during access as
the optimum value for the target CPU and its operating frequency. The VSWC register consists of four upper bits and four lower bits,
via which the waits used for access setup and the waits related to actual access can be specified independently.
The VSWC register's initial value is 77H, which means that waits equivalent to (7 + 7 =) 14 clock cycles are inserted when accessing
an on-chip peripheral I/O.
Accordingly, the total access time is 17 clock cycles when three clock cycles are added as the "no wait" setting.