I think that the following question is simple, but it is important for me to know.
I am working on microcontrollers. I have seen some code to access the data from the flash memory.
For example in order to read the contents of the 0xA010 address of the flash there is the following code:
#define ADDRESS_TO_READ 0xA010 uint8 *Read_Ptr = NULL; Read_Ptr = (uint8 *) ADDRESS_TO_READ; value = *Read_Ptr;
This is working fine. My question here is, since
Read_Ptr is uint8, how is it storing the value 0xA010, which is a short value (16-bit Address)? How the read and write functions will occur in this memory, when the pointer is uint8?