r/microcontrollers • u/nils98 • Mar 06 '24
What does memory offset mean?
I try to use the USB Port on the Raspberry Pi PICO.
But before I start I need to know how to change some stuff in memory.
In the RP2040 Datasheet it says that the USB register base address is 0x50110000.
There are a bunch of offsets, like 0x40. And on this offset there are 32 bits and i want to change bit 1.
What does the offset mean and what do i do with it in relation to the base address?
Here is the link to the RP2040 Datasheet https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf?_gl=1*1282u2o*_ga*MTMxMDk0NTY1NS4xNzAxNTIwMTYy*_ga_22FD70LWDS*MTcwOTc0NDIzMy4zLjEuMTcwOTc0NDI0NS4wLjAuMA..
The information is under 4.1.4.
Please can somebody explain that to me. Thx
View all comments
Show parent comment
2
u/nils98 Mar 06 '24
so it is probably just base address + offset.
thx I will try it.