David LECOMTE

Read Flash MC9S08QE8

Discussion created by David LECOMTE on Nov 14, 2008
Latest reply on Nov 15, 2008 by bigmac
I found a sample code to read flash octet. Here under the sample code
 
// Read the content of a memory address
char flash_read(unsigned int address)
{
  unsigned char *pointer;
  pointer = (char*) address;
  return (*pointer);
}
 
I don't understand why there is no action, no register modification to read a contain of specific adress.
For me, the second line of the previous function do: pointer receiver adress of adress parameter (for example E000 = first octet of flash. That all!!! But there is not flash register has been modified before!!!?
 
Somebody have any explanation about this sample
 
Thanks
 
David

Outcomes