03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 4<br />

PERIPHERAL CONTROL BLOCK<br />

All integrated peripherals in the 80C186 Modular Core family are controlled by sets of registers<br />

within an integrated Peripheral Control Block (PCB). The peripheral control registers are physically<br />

located in the peripheral devices they control, but they are addressed as a single block of<br />

registers. The Peripheral Control Block encompasses 256 contiguous bytes and can be located on<br />

any 256-byte boundary of memory or I/O space. The PCB Relocation Register, which is also located<br />

within the Peripheral Control Block, controls the location of the PCB.<br />

4.1 PERIPHERAL CONTROL REGISTERS<br />

Each of the integrated peripherals’ control and status registers is located at a fixed offset above<br />

the programmed base location of the Peripheral Control Block (see Table 4-1). These registers<br />

are described in the chapters that cover the associated peripheral. “Accessing the Peripheral Control<br />

Block” on page 4-4 discusses how the registers are accessed and outlines considerations for<br />

reading and writing them.<br />

4.2 PCB RELOCATION REGISTER<br />

In addition to control registers for the integrated peripherals, the Peripheral Control Block contains<br />

the PCB Relocation Register (Figure 4-1). The Relocation Register is located at a fixed offset<br />

within the Peripheral Control Block (Table 4-1). If the Peripheral Control Block is moved, the<br />

Relocation Register also moves.<br />

The PCB Relocation Register allows the Peripheral Control Block to be relocated to any 256-byte<br />

boundary within memory or I/O space. The Memory I/O bit (MEM) selects either memory space<br />

or I/O space, and the R19:8 bits specify the starting (base) address of the PCB. The remaining bit,<br />

Escape Trap (ET), controls access to the math coprocessor interface.<br />

“Setting the PCB Base Location” on page 4-6 describes how to set the base location and outlines<br />

some restrictions on the Peripheral Control Block location.<br />

4-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!