Sep, -----Original Message----- From: sep To: PICLIST@MITVMA.MIT.EDU Date: Monday, February 07, 2000 1:37 AM Subject: Re: problem with code |1) |Yes this is true. |Except that I haven't pulled up my resistors. Pull up your input. As Paul said, this may not be the cause of your problem. |(BTW, what is the file name of the data sheet that would have documentation |on the internal pull-ups cause I don't see anything in the 16f84 data |sheet!) F84 Data Sheet section of portB details the internal hardware of the port. Also see the OPTION reg section. |2) |I have a test LED flasher that I use to test to see if my chip is still |working. Although I have fried one, this one I still use is still working. |(or it seems) Test it! |3) |Does, anybody know how reliable these ceramic resonators are? I have been |using them for two days and have killed two already. I haven't used ceramic resonators (Don't You need to set the oscillator in LP mode to use it? See the F84 Data sheet, I don't remember it) |My RC oscillator still |works though. |Another thing is that in using an RC oscillator, the led flasher only works |if it is on XT mode. This is very wierd... ??? If You set RC, use RC. What values of R and C are You using? | |Thanks For The help... | |Sep. S. Regards, S.- |Paul B. Webster VK2BZC wrote: | |> Tim Hamel wrote: |> |> > You should flip those instructions around. The BTFSS will SKIP the |> > next instruction if the bit tested comes out true. So, looking at your |> > code, when PORTB0 = 1 then it will turn off the LED. |> |> The switch goes to ground. That's what it is supposed to do. He |> hasn't enabled the PORT B pull-ups however (OPTION bit 7), but the lamps |> should default ON without a pull-up. |> |> The LEDs are connected with anodes to PB1 and PB2 via 330 ohm |> resistors, and cathodes to ground, are they not? |> -- |> Cheers, |> Paul B. |> |