Dear pbouf,
According to the data sheets the SDID can be used to identify:
0x01C => MC9S08QE8, MC9S08QE4
0x01F => MC9S08QE32, MC9S08QE16
0x015 => MC9S08QE128, MC9S08QE96, MC9S08QE64
You can probe the RAM boundaries to determine which chip within the group, AFAIK there is no register to indicate the RAM or flash size as in some other chips.
Of course there is nothing to stop Freescale bringing out a new mask version with a new SDID value.
Why do you need this?
bye