Way to Determine if A Part is 64KB or 128KB Flash? - MC9SE128

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Way to Determine if A Part is 64KB or 128KB Flash? - MC9SE128

1,213 Views
GFSmith
Contributor II
Hello,
I'm working with the MC9SE64 and MC9SE128.  I'd like to be able to distinguish between the different devices in my application.  Can I do this by reading the PARTIDH and PARTIDL registers?  I read the databook, but the PARTID register description isn't clear.
Is there a data book or app note that would spell out the Major and Minor family numbers?  Should I be using the MEMSIZ registers for this effort?
Thanks,
Greg
 
 
Added p/n to subject.


Message Edited by NLFSJ on 2008-10-30 07:17 PM
Labels (1)
0 Kudos
Reply
1 Reply

431 Views
kef
Specialist I
MEMSIZ won't tell you how much flash is available. It only tells how much flash is visible in nonpaged 64k CPU address space. For most parts it's fixed at 48k. If 64k flash parts come say with 4k of RAM, and 128k with 8k, then you may try to use this information to determine the amopunt of flash.
 
Of course PARTID uniquely points to specific maskset, which can be only 64k, or only128k etc. The problem is you software may not know anything about new masksets.
 
Also for all non-X S12 parts (except weird new S12P): If you read from page 3D the same data like from page 3F, then it's 32k part. Else, if pages 3B and 3F are the same, then it's 64k part. Else if pages 37 and 3F are the same, then it's 128k part etc.
 
But... all these mathods can't tell you what's printed on your chip. Frescale sometimes sells bigger parts (like E128) as smaller parts (like E64).
0 Kudos
Reply