
System Address Mapping
Élan™SC520 Microcontroller User’s Manual
4-17
The Configuration Base Address (CBAR) register (Port FFFCh) can be used to alias the
internal memory-mapped registers and peripherals to a convenient location. For example,
they could be mapped between 640 Kbytes and 1 Mbyte for real mode operation. The
memory-mapped configuration region is always available in the upper CPU space
(4 Gbytes), but the aliased location is only accessible when the CBAR is programmed and
the ENABLE bit has been set.
4.3.5.4.3
DMA Channel and Interrupt Request Steering
The ÉlanSC520 microcontroller provides a method to route interrupt request sources and
DMA request pins to the appropriate channels on the programmable interrupt controller
(PIC) and the GP-DMA controller, respectively.
See Chapter 15, “Programmable Interrupt Controller”, for further information on interrupt
request routing.
See Chapter 14, “GP Bus DMA Controller”, for further information on DMA request routing.
4.3.5.5
Configuring PCI Bus Devices
PCI bus device configuration is accomplished in the ÉlanSC520 microcontroller with the
standard PCI Configuration Mechanism #1, as defined in the
PCI Local Bus Specification,
Revision 2.1. This configuration requires an indirect mapped I/O scheme in which the
address of the device is written to the PCI Configuration Address (PCICFGADR) register
(Port 0CF8h), and the data is accessed via the PCI Configuration Data (PCICFGDATA)
register (Port 0CFCh). See“Configuration Information” on page 9-9 for more information.
See also the
PCI Local Bus Specification, Revision 2.2.
4.3.6
Interrupts
The ÉlanSC520 microcontroller can be programmed to generate an interrupt request when
a write protection violation occurs, providing software with a debugging mechanism to
determine which task illegally attempted to write to the memory region marked with this
attribute. In this case, an interrupt request is generated to the programmable interrupt
controller (PIC) block, where the request is routed to the appropriate type of interrupt
(maskable or non-maskable) and level, based on the programming of the configuration
registers. The PAR window that contains the address region where the write protect violation
occurred is latched into a register, as well as which bus owner caused the violation (CPU,
GP-DMA controller, or PCI bus master).
See Chapter 15, “Programmable Interrupt Controller”, for details of PIC programming.
4.3.7
Software Considerations
Since the ÉlanSC520 microcontroller provides some flexibility in defining the system
memory and I/O map, there are a number of software considerations that must be analyzed.
The list below describes some of the issues that must be considered when programming
the configuration registers to define the memory and I/O space in an ÉlanSC520
microcontroller system.
■
The Configuration Base Address (CBAR) register must be accessed as a 32-bit I/O
register to guarantee that all bits are written at the same time. The MATCH field of the
CBAR must be written with the correct pattern to enable
or disable the MMCR alias.
■
MMCR register space has higher priority than the Programmable Address Region (PAR)
registers.
■
The PAR registers are organized such that the lowest register (PAR 0) is the highest
priority and the last PAR register (PAR15) is lowest priority. Therefore, if two PAR
registers are overlaid due to programming, the lowest numbered PAR takes priority.
Содержание Elan SC520
Страница 1: ...lan SC520 Microcontroller User s Manual Order 22004A...
Страница 4: ...iv lan SC520 Microcontroller User s Manual...
Страница 28: ...Introduction xxviii lan SC520 Microcontroller User s Manual...
Страница 42: ...Architectural Overview 1 14 lan SC520 Microcontroller User s Manual...
Страница 78: ...System Initialization 3 22 lan SC520 Microcontroller User s Manual...
Страница 108: ...Clock Generation and Control 5 10 lan SC520 Microcontroller User s Manual...
Страница 118: ...Reset Generation 6 10 lan SC520 Microcontroller User s Manual...
Страница 148: ...System Arbitration 8 24 lan SC520 Microcontroller User s Manual...
Страница 214: ...SDRAM Controller 10 36 lan SC520 Microcontroller User s Manual...
Страница 230: ...Write Buffer and Read Buffer 11 16 lan SC520 Microcontroller User s Manual...
Страница 288: ...GP Bus DMA Controller 14 22 lan SC520 Microcontroller User s Manual...
Страница 316: ...Programmable Interval Timer 16 8 lan SC520 Microcontroller User s Manual...
Страница 328: ...Software Timer 18 4 lan SC520 Microcontroller User s Manual...
Страница 346: ...Real Time Clock 20 12 lan SC520 Microcontroller User s Manual...
Страница 360: ...UART Serial Ports 21 14 lan SC520 Microcontroller User s Manual...
Страница 414: ...AMDebug Technology 26 8 lan SC520 Microcontroller User s Manual...