M58LT256JST, M58LT256JSB
Block address tables
Appendix A
Block address tables
The following set of equations can be used to calculate a complete set of block addresses
using the information contained in Tables 29 to 34.
To calculate the block base address from the block number:
First it is necessary to calculate the bank number and the block number offset. This can be
achieved using the following formulas:
Bank_Number = (Block_Number −3) / 16
Block_Number_Offset = Block_Number −3 −(Bank_Number x 16)
If Bank_Number = 0, the block base address can be directly read from Tables 29 and 32
(parameter bank block addresses) in the block number offset row. Otherwise:
Block_Base_Address = Bank_Base_Address + Block_Base_Address_Offset
To calculate the bank number and the block number from the block base address:
If the address is in the range of the parameter bank, the bank number is 0 and the block
number can be directly read from tables 29 and 32 (parameter bank block addresses), in the
row that corresponds to the address given. Otherwise, the block number can be calculated
using the formulas below:
For the top configuration (M58LT256JST):
16
Block_Number = ((NOT address) / 2 ) + 3
For the bottom configuration (M58LT256JSB):
16
Block_Number = (address / 2 ) + 3
For both configurations the bank number and the block number offset can be calculated
using the following formulas:
Bank_Number = (Block_Number −3) / 16
Block_Number_Offset = Block_Number −3 −(Bank_Number x 16)
73/108