In the LPC55xxx parts, the SYSCON block has a DEVICE_ID0 register which, according to the header file, includes the fields:
PARTCONFIG
SRAM_SIZE
FLASH_SIZE
ROM_REV_MINOR
MODELNUM_EXTENTION
But what do these fields actually _mean_: the user manual (UM11126) shows no information.
(What I'd actually like to do is distinguish between an LPC55S28 and an LPC5528 at run time.)