I am having difficulty understanding a short snippet of code from
the PRU_memAcc_DDR_sharedRAM.p example. The code is:
// Configure the programmable pointer register for PRU0 by setting
c31_pointer[15:0]
// field to 0x0010. This will make C31 point to 0x80001000 (DDR
memory).
MOV r0, 0x00100000
MOV r1, CTPPR_1
ST32 r0, r1
The comment states the field is being set to 0x0010 yet the immediate value
being programmed into
r0 is 0x00100000 not 0x0010. I can not understand why this sets the pointer
to 0x80001000 rather than
0x8010000. Are there any pruss programmers that could shed some light on my
misunderstanding here?
The example does work and does give an offset 0x1000 bytes in the DDR
memory, so there is something I'm
missing. Thanks in advance.
Bit_Pusher
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.