We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi i use the code below to store a value in memory address 0xfffff400,but when i debug ,it sotored reverse in memory address 0xfffff408
AREA CODE,CODE,READonly
ENTRY
LDR R1,=0XAA0AA0FF LDR R5,=0xfffff400 STR R1,[R5]
END
It's time to read the user manual of AT91SAM7X256.
The address 0xFFFFF400 belongs to PIOA PIO_PER which is a write only register (PIO Enable Register) and directly affects the PIO_PSR (PIO Status Register) at address 0xFFFFF408.
So writing to location at 0xFFFFF400 (PIO_PER) can change the values at 0xFFFFF408 (PIO_PSR) and reading back 0xFFFFF400 (PIO_PER) is unpredictable.
tnanx for ur assisst