English
Language : 

UPSD3422_06 Datasheet, PDF (80/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
MCU bus interface
uPSD34xx
It is not possible to specify in the BUSCON Register a different number of MCU_CLK
periods for various address ranges. For example, the user cannot specify 4 MCU_CLK
periods for RD read cycles to one address range on the PSD Module, and 5 MCU_CLK
periods for RD read cycles to a different address range on an external device. However, the
user can specify one number of clock periods for PSEN read cycles and a different number
of clock periods for RD or WR cycles (see Figure 22 on page 80).
18.5
Controlling the PFQ and BC
The BUSCON Register allows firmware to enable and disable the PFQ and BC at run-time.
Sometimes it may be desired to disable the PFQ and BC to ensure deterministic execution.
The dynamic action of the PFQ and BC may cause varying program execution times
depending on the events that happen prior to a particular section of code of interest. For this
reason, it is not recommended to implement timing loops in firmware, but instead use one of
the many hardware timers in the uPSD34xx. By default, the PFQ and BC are enabled after a
reset condition.
Important note: Disabling the PFQ or BC will seriously reduce MCU performance.
Figure 22. A RD or PSEN bus cycle set to 5 MCU_CLK
1
2
3
4
5
MCU Clock
ALE
AD0-AD15
A0-A15
D0-D15(1)
RD/PSEN(2,3)
5-Clock Bus Cycle
AI10436
Note: 1 The PSEN cycle is 16-bit, while the RD cycle is 8-bit only.
2 A PSEN bus cycle in progress may be aborted before completion if the PFQ and Branch
Cache (BC) determines the current code fetch cycle is not needed.
3 Whenever the same number of MCU_CLK periods is specified in BUSCON for both PSEN
and RD cycles, the bus cycle timing is typically identical for each of these types of bus
cycles. In this case, the only time PSEN read cycles are longer than RD read cycles is when
the PFQ issues a stall while reloading. PFQ stalls do not affect RD read cycles. By
comparison, in many traditional 8051 architectures, RD bus cycles are always longer than
PSEN bus cycles.
80/293