AnsweredAssumed Answered

ADUC7126 write wrong value to register

Question asked by drakesoft on Oct 1, 2012
Latest reply on Oct 9, 2012 by MMA

Hi, I have a problem with the ADUC7126 MCU. This writes wrong values in register. For example, If I want to store 0xD0 in SPIDIV the MCU writes 0x50 to SPIDIV. I think it could be a  "unalligned memory access" problem, because SPIDIV is a 1byte register and the carm compilier stores the value with the STR asm instruction.





ASM Code:

STR R0,[R1]