HP (Hewlett-Packard) B Network Router User Manual


 
5. Set the terminal (ending) address.
A. The terminal address is the ending address of the memory
segment. This address is computed as:
terminal address = (ending address - 4095) / 2048
Again, the procedure is for one segment of post-arm readings.
Therefore, the terminal address is:
terminal address = (524,287 - 4095) / 2048 = 254
B. Divide the starting address (see Step 4) by 4. If this value
is > 65,535 (FFFF
16
), add 1 to the terminal address value (254).
C. Write the terminal address to the terminal address register (base
+ 2B
16
).
6. Set the base (starting) address.
A. The base address is the (starting address / 4) of the memory
segment. Write the most significant byte of (starting address / 4) to
the base 0 address register (base + 2D
16
). Write the least significant
byte of starting address / 4 to the base 1 address register (base +
2F
16
).
For example, if the segment size is 10,000 readings, the terminal
and base addresses would be:
start address = 524,287 - 9,999 = 514,288
514,288 / 4 = 128,572 = 1F63C
16
terminal address = 254 + 1 (since 128,572 > 65,536)
base address = F63C (the ’1’ is part of the terminal address:
254 + 1)
MSB LSB
1 1 1 1 0 1 1 0 0 0 1 1 1 1 0 0
246
10
60
10
246
10
is written to register base + 2D
16
60
10
is written to register base + 2F
16
Appendix C Register Programming 387