[snip] > Remember also, if you want GP2 as an O/P, setup OPTION so it > isn't the > timer I/P as well as setting TRIS. > Yeah. That's a real trap for the unwary. Mchip's documentation, as always, mentions this but is so disorganised (when *will* they improve their data sheets [sigh!]) that you have to read the whole DS to find it. Another subtle one that had me scratching my head is the 'short device reset timeout'. Not mentioned in the preliminary data sheet, this causes the device to pause around 200uS after waking up from sleep after a reset - during this period all the lines are floating, which is worth bearing in mind.