On Thu, May 07, 1998 at 10:44:44PM +0400, Stefan Rousseau wrote: > > This did not solve my GPIO problem. Does anybody else have any advice? Yes, try setting ADCON1 to a value (e.g. 7) that makes GPIO bit 2 a digital pin. Although it will work as an output when programmed as an analog pin, you cannot read digital values from it, and reading the port always reads the pins, not the output latches. So your code would toggle the pin, but you will not read the 1 value back, and the simulator is accurately reflecting that behaviour. Regards, Clyde -- Clyde Smith-Stubbs | HI-TECH Software Email: clyde@htsoft.com | Phone Fax WWW: http://www.htsoft.com/ | USA: (408) 490 2885 (408) 490 2885 PGP: finger clyde@htsoft.com | AUS: +61 7 3354 2411 +61 7 3354 2422 --------------------------------------------------------------------------- HI-TECH C: compiling the real world.