Page Range Setting; Page Offset Setting; Table 20: Setting Of Various Page Sizes; Table 21: Setting Of Various Offset Areas - Siemens ERTEC200 Manual

Enhanced real-time ethernet controller
Table of Contents

Advertisement

7.1

Page Range Setting

The page size of each page is set in the PAGEx_RANGE_HIGH and PAGEx_RANGE_LOW range registers (x = 0 to 3).
Together, the two page range registers yield a 32-bit address register. The size of the page varies between 256 bytes
and 2 MBytes. Therefore, Bits 0 to 7 and Bits 22 to 31 of the PAGEx_RANGE register remain unchanged at a value of 0
even if a value of 1 is entered. If no bit at all is set in one of the PAGE RANGE registers, the range of this page is set to
256 bytes, by default. If several bits are set to 1 in one of the PAGE RANGE registers, the range is always calculated
based on the most significant bit (see Example 2 in the table below).
PAGEx_RANGE_HIGH
31
2423
00000000 00010000
00000000 00000110
00000000 00000010
00000000 00000000

Table 20: Setting of Various Page Sizes

The largest page determines the number of addresses that have to be connected to the LBU. In the page range table
above, the largest page is 1 Mbyte (i = Bit 20). The maximum addresses are calculated from Amax = 20 – 1. In this case,
address cables A [19:0] are required.
This addressing mechanism results in a mirroring of the specified page size in the total segment.
7.2

Page Offset Setting

The page offset of each page is set in the PAGEx_OFFSET_HIGH and PAGEx_OFFSET_LOW range registers (x = 0 to
3). Together, the two page offset registers yield a 32-bit address register. The register is evaluated in such a way that
the offset is evaluated only up to the highest set bit of the associated page range register. These bits are then switched
to the AHB bus as the highest address. The following table shows some examples for an offset calculation.
PAGEx_ OFFSET _HIGH
31
2423
01000000 00000000
00010000 00000000
00000000 00000001
00000000 00000000

Table 21: Setting of Various Offset Areas

Because the host computer can always access the page registers, the pages can be reassigned at any time This is
useful, for example, if a page is to be used to initialize the I/O. If access to this address area is no longer required after
the initialization, the page can then be reassigned in order to access other address areas of the ERTEC 200.
Copyright © Siemens AG 2007. All rights reserved.
Technical data subject to change
PAGEx_RANGE_LOW
16
15
8 7
01000000 00000000
00000000 00000000
00000000 00000000
00000001 00000000
PAGEx_ OFFSET _LOW
16
15
8 7
00000000 00000000
00000000 00000000
00000000 00000000
00000001 00000000
76
Size of Page x
0
1 Mbyte
256 Kbytes
128 Kbytes
256 bytes
Offset for Page x
0
1 Gbyte
256 Mbytes
64 Kbytes
256 bytes
ERTEC 200 Manual
Version 1.1.0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents