|
SH7211 Datasheet, PDF (320/1228 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family | |||
|
◁ |
Section 8 Bus State Controller (BSC)
and then executes a SLEEP instruction. The code must, however, perform a dummy read of the
STBCR register before executing the SLEEP instruction. If the dummy read is not performed, the
CPU will execute the SLEEP instruction before the STBY bit is set to 1, and the system will not
switch to the intended software standby mode, but rather will switch to sleep mode. The dummy
read of the STBCR register is required to wait for the write to the STBY bit to complete.
In other cases as well, application code should perform a dummy read of the same register after a
register write instruction and only then execute the following instructions for the intended purpose
to assure that the changes due to internal register writes are reflected when the following
instructions are executed as in this example.
The table below lists the number of access cycles required for CPU accesses to the on-chip
peripheral module registers.
Table 8.20 On-Chip Peripheral Module Register Access Cycle Counts
Access Cycles
Write
(2+n) Ã IÏ + (1+m) Ã BÏ + 2 Ã PÏ
Read
(2+n) Ã IÏ + (1+m) Ã BÏ + 2 Ã PÏ + (2+I) Ã IÏ
Note:
These are the numbers of cycles when the instruction is executed from internal ROM or
internal RAM.
When IÏ:BÏ is 1:1; n = 0, I = 0
When IÏ:BÏ is 2:1; n = 0 or 1, I = 1
When IÏ:BÏ is 4:1; n = 0 to 3, I = 2
When IÏ:BÏ is 8:1; n = 0 to 7, I = 2
When BÏ:PÏ is 1:1; m = 0
When BÏ:PÏ is 2:1; m = 0 or 1
When BÏ:PÏ is 4:1; m = 0 to 3
Note that n and m depend on the internal execution state.
This product adopts synchronized logic and has a hierarchical bus structure. Data input and output
for each of the busses is synchronized with the rising edge of the IÏ clock for the C bus, the BÏ
clock for the I bus, and the PÏ clock for the peripheral bus.
Figure 8.41 shows an example of the write timing to the peripheral bus when the relationship
between the clocks is IÏ:BÏ:PÏ = 4:4:1. Data is output in synchronization with IÏ to the C bus, to
which the CPU is connected. When IÏ:BÏ is 1:1, 2 Ã IÏ + BÏ periods are required for data
transfers from the C bus to the I bus. For transfers from the I bus to the peripheral bus when BÏ:PÏ
is 4:1, since there are four clock cycles during a single PÏ clock period, the timing with which the
data is placed on the peripheral bus is as follows: there are four timings for PÏ Ã 1, and up to 4 BÏ
periods are required for the PÏ rising edge, which is the timing for transfers from the I bus to the
Rev. 2.00 May. 08, 2008 Page 296 of 1200
REJ09B0344-0200
|
▷ |