This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MCF8316AEVM: Query regarding MEM_SEC, MEM_PAGE, MEM_ADDR

Part Number: MCF8316AEVM
Other Parts Discussed in Thread: MCF8316A

Hi,

I’m working on formatting the I2C commands that are sent to the MCF8316a. The data sheet has:

 

MEM_SEC – Memory Section: Each memory location in MCF8316A is addressed using three separate entities

in the control word – Memory Section, Memory Page, Memory Address. Memory Section is a 4-bit field which

denotes the memory section to which the memory location belongs like RAM, ROM etc.

MEM_PAGE – Memory Page: Memory page is a 4-bit field which denotes the memory page to which the

memory location belongs.

MEM_ADDR – Memory Address: Memory address is the last 12-bits of the address. The complete 22-bit

address is constructed internally by MCF8316A using all three fields – Memory Section, Memory Page, Memory

Address. For memory locations 0x000000-0x000400, memory section is 0x0, memory page is 0x0 and memory

address is the lowest 12 bits(0x000 for 0x000000, 0x080 for 0x000080 and 0x400 for 0x000400)

 

But what about memory locations above 0x400? But its not at all clear from the above text what is the memory page for the speed_fdbk register (address 0x734). That would still fit in a 12-bit address. So maybe the page is still 0. Or am I supposed to use a memory page of 1 and subtract 0x400 from the register’s address, i.e. the speed_fdbk register is on page 1 at address 0x334?

Any help will be appreciated.

Thanks!

Kamesh