Larry Bradley ncf.ca> writes: >=20 > Or perhaps there is some way at compile time (given the various chip > definition fines) of determining the "family" of chip. > I can do this with the A/D converter, by seeing if ADCON2 is defined, > for example). The XC compiler include files define versions of, at least some, periferals= .. =20 The XC8 has include file which defines FLASH_V1_1 through FLASH_V1_6 with corresponding sizes of write and erase blocks. =20 Is this what you are looking for? =20 Sergey Dryga http://beaglerobotics.com --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .