----- Original Message ----- = From: "William Bross" To: "Microcontroller discussion list - Public." Sent: Thursday, August 24, 2006 9:09 PM Subject: Re: [PIC]: 12F629 William Bross wrote: One other thing is to make sure you disable the comparator if you are not using it ---- load CMCON with 0x07 . Bill Hello! Yes, I changed from tris GPIO to movwf TRISIO and now my alarmcircuit works very good! Thanks to all of YOU who has wasted YOUR time at my problem! Regards =C5keN William Bross wrote: >Ake, > >1. change the tris GPIO line to movwf TRISIO. Tris isn't valid anymore. >2. TRISIO is in bank 1, not bank 0. Either make sure that the banksel >bit is set in the STATUS reg or get to it indirectly using the FSR >register. > >That should help fix your problems. > >Bill > >=C5ke Neehr wrote: > > > >>----- Original Message ----- = >>From: "Mike Hagen" >>To: "'Microcontroller discussion list - Public.'" >>Sent: Tuesday, August 22, 2006 10:06 PM >>Subject: RE: [PIC]: 12F629 >> >> >>Hello! >> >>After two days of hard work it doesn=B4t runs ok! >>I have maked a shadowreg to GPIO and get the mask of TRISIO to shadowreg >>then the bsf and bcf instru and at last tris GPIO. >> >>#define maskdef 0x1C >> >> movlw maskdef >> movwf shadow >> bsf shadow, 0 >> movf shadow, W >> tris GPIO ; load TRISIO with 0x1D in >>MPSIM >> ; but output not high on >>pin 7 >>wait btfsc GPIO, 2 >> goto wait >> bsf shadow, 1 >> movf shadow, W >> tris GPIO >> >>PLEASE HELP ME WITH THIS PROBLEM! >> >>Regards >>=C5keN >> >> >> >> >> > > > -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist