Robert, > I suppose that for the purpose of this application note, the > people with microchip decided to oversimplify the routines > for better pedagogy. I think that this is definitely the case and that too much is being read i= nto the WDT thing. The writer of the Ap-note is caught between a rock and hard place - either he provides a complete application and obscures the information he is trying to explain, or he cuts it down to the bare minimum and gets complaints that the solution is too simple. There are obvious symptoms of this in the code itself. For example, the foreground code is - Main clrwdt ; Clear the WDT goto Main ; Loop forever. Clearly it is not a complete application. In regards to the comment ; If we aren=92t in State5, then something is wrong. Look at the way you get to that point in the program flow Is it status 1 ? No, try the next one. Is it status 2 ? No, try the next one Is it status 3 ? No, try the next one Is it status 4 ? No, try the next one Is it status 5 ? There are no more situations that are valid, so it's an error. If it was valid (at status 5), the function returns, ready for the next transaction. That seems reasonable as a NACK is a valid thing and there is nothing that needs to be done in response to getting one. Steve. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Baldwin Electronic Product Design TLA Microsystems Ltd Microcontroller Specialists PO Box 15-680, New Lynn http://www.tla.co.nz Auckland, New Zealand ph +64 9 820-2221 email: steve@tla.co.nz fax +64 9 820-1929 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads