Yes, it will work. But You wont see the blinking LED unless your uC clock is really slow, So add some delay between flashes. I use at least 100ms to see a fast blinking. see an example to blink a LED on RA5: pisca clrwdt ;if you enable your wdt ! call delay250 ;wait 250ms between flashes movlw 16 xorwf porta, f ;invert the LED state goto pisca ;do it for ever ! good luck Eduardo. >From: "Hartung, Greg" >Reply-To: pic microcontroller discussion list >To: PICLIST@MITVMA.MIT.EDU >Subject: [PIC]: toggle port bit >Date: Fri, 22 Jun 2001 10:28:00 -0600 > >Will an XORWF properly toggle the bits of an output pin? Such as blinking >an LED with > > >loop > movlw b'0001000' ;pin 3 > xorwf PORTD > goto loop > >-- >http://www.piclist.com hint: The list server can filter out subtopics >(like ads or off topics) for you. See http://www.piclist.com/#topics > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.