Sorry, I forgot to mention, that I use internal oscillator, and I have set that when programming the chip. I use Epic to program the chip, and internal oscillator is selected there. I tested everything with simple led blink program and it worked ok. And as I mentioned, also the attached program starts fine. Led at GPIO.0 comes up for one second but the program never comes out from sensor routine (Temp_1). I have tested that by adding simple led on/off routine to before Goto Temp_1. So, my guess is, that I cannot configure the data pin (GPIO.1) right. I have used PortC.6 or PortC.0 when using 16F876A and those pins do not require any special configuration.
Bookmarks