Pular para o conteúdo principal
Renesas Brasil - Knowledgebase

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

Latest Updated:04/01/2006


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


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