> >The easiest way is to read the revision number directly from the chip. > > How? > > For example (grabbing one close at hand), PIC18F452-I/P 0207GSP > > Is that a B3 or a B5? You read it electronically. The revision is the low 5 bits of the device ID, which on these parts is located at 3FFFFEh - 3FFFFFFh. I can plug a chip into my programmer and it determines what it is, then reports the model and revision. I assume other programmers can do the same thing. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics