Well I guess I used an stronger way :) what I do is to reset every 18ms (using WDT); code needs less than 1ms to be completed, so it runs 18 times and then everything starts againg but with a reset between... could this damage or cause any problem to the PIC? (I mean make a reset (by WDT) every 18 ms)... Gonzalo ----- Original Message ----- From: "George Tyler" To: Sent: Thursday, November 30, 2000 5:45 PM Subject: Re: [PIC]: can't read an input after a while... | I Had the same problem with a 16c54 used to drive fets in a switchmode psu | delivering 3kw, ended up setting the tris registers every time round the | loop. (every 40us). | | George Tyler, | Tyler Electronics, | S. Africa | ----- Original Message ----- | From: Gonzalo Jiminez Yamasaki | To: | Sent: Thursday, November 30, 2000 7:06 PM | Subject: Fw: [PIC]: can't read an input after a while... | | | > Sorry if see this twice but I had some troubles with my e-mail... | > | > ----- Original Message ----- | > From: "Gonzalo Jiminez Yamasaki" | > To: "pic microcontroller discussion list" | > Sent: Thursday, November 30, 2000 11:14 AM | > Subject: [PIC]: can't read an input after a while... | > | > | > | Hi all: | > | | > | I'm doing a simple program that acording to some combination of | imputs | > | gives some combination of outputs... I'm using a PIC16C73B and something | > | really strange happened... two pin ports (RB6 and RB7) works well (as | > | imputs) but suddenly they don't work anymore (seems like they are not | > imputs | > | at that moment) while the rest of imputs works well... I have all | > | interruptions disable, I also try four diferents PICs and same problem, | I | > | guess is not a code problem because it happens any time, sometimes takes | > | longer than other to happen but happens... | > | | > | It is possible that those pins change their configuration? (because | of | > | noise or something) if some body has some expirience with it and can | help | > me | > | I'll be very thankful... | > | | > | Regards, | > | | > | Gonzalo | > | | > | > -- | > http://www.piclist.com hint: The PICList is archived three different | > ways. See http://www.piclist.com/#archives for details. | > | > | | -- | 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#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body