It was insufficient bypass capacitance on the PIC. Evidently, there was additional capacitance inside the emulator. Power is supplied by a buy-out brick used by the client to meet CE regulations that is particularly noisy. The POR was randomly triggered shortly after normal operation began and the PIC restarted. I could tell it was timer, but thought it was an error in software. Tore everything down to the simplest code possible and it was still there ... Hmmmm -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Ed Browne Sent: Thursday, March 25, 2004 2:13 PM To: PICLIST@MITVMA.MIT.EDU Subject: [PIC:] emulator behavior I've got a program running on an 16F877 that uses PORTC as a UART, for SPI and as a digital output. With the emulator, all these coexist just fine, however, when I program the chip and run independently it looks like PORTC is misbehaving. I haven't sorted it all out yet, but it looks like the digital output is either tri-stating or switching to an input. Anyone experienced this before; i.e., the emulator running the code behaving significantly different than the programmed code? Thanks, Ed Browne Precision Electronic Solutions -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu