Neil Devlin

How do I calculate page Number ?

Discussion created by Neil Devlin on May 6, 2011
Latest reply on Dec 21, 2011 by bigmac


  I am writing an application where I write to Flash, I am using the MC9S08GT60, and have a routine to Erase a page. But how do I calculate the page number ?


I want to erase any memory  location from $182c to $f7ff, and also from $1080 to $17ff  (I have an application at address $f800 ->), I understand a page is 512 bytes long do I simply divide by 512 to get the page? So $1080 would be in page 8?