Pular para o conteúdo principal
Knowledgebase
Home
Renesas Brasil - Knowledgebase

Must even-numbered addresses be use when using the MOVW to access RAM?

Latest Updated:04/01/2006

Question:

When using the MOVW instruction to access RAM, must even-numbered addresses be used?

Answer:

Although it has not been stipulated that word data in RAM must be aligned to even-numbered addresses, when they are so aligned they can be accessed in one operation, while two operations are required when they are aligned to odd-numbered addresses, which creates the potential problem of slower processing speed.
Therefore, aligning word data to even-numbered addresses is recommended.
This even-numbered address alignment of word data is also to be recommended because it is more compatible with C language.
Suitable Products
UPD784xxx