On Dec 21, 2008, at 6:43 AM, Olin Lathrop wrote: >> Although my impression was that PORTx would end up containing values >> written to it even if the analog peripheral settings prevented those >> values from reaching the actual pins. > > The PORT registers reflect the live pin values. You would be right > for LAT > registers (on those PICs that have LAT registers). Ah, of course. That should have been obvious, given the RMW issues and so on. I got confused in comparison with other architectures, that effectively default to the LAT-style behavior. Not enough actual PIC programming in my recent history, alas. This is why *I* have been putting up with SolarWind's rather sophomoric behavior. His questions are forcing me to expand my understanding of the internals of the PICs and simulators and so on. It's almost a parody of why I prefer piclist to other forums; most places you ask a question and you either get an answer or you get silence. PIClist evolves educational discussions (often with and along tangents.) The recent discussions have been much TOO chatty and "immediate" - more thought (and "cool down" time) should be expended on all sides. But it's still been a pretty educational exchange, once the chaff is removed. I suspect I'm not alone. (that, and "allowances for youth.") BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist