gnupic: PIC18F47J53
Subject:
Re: PIC18F47J53
From:
Bob Jacobsen ####@####.####
Date:
12 Aug 2013 17:28:26 -0000
Message-Id: <7E2B8EE6-4A2F-4374-B013-C2D58F67AFEA@lbl.gov>
On Aug 12, 2013, at 9:58 AM, Luis de Arquer ####@####.#### wrote:
>
> I have tried a simple program blinking an LED. It does work, if I use
> the instructions
>
> PORTB &= 0x08
> PORTB |= 0x08
>
> for toggling the LED (see asm translation below).
> However if I use
>
> PORTB ^= 0x08
>
> which translates to a BTG (bit toggle) instruction, it won't blink at
> all -it will light the LED up though, but no blinking can be seen even
> with the oscilloscope.
Perhaps some hints here:
http://www.xargs.com/pic/c-faq.html#rmw
but that doesn't seem to fit your timing.
Bob
--
Bob Jacobsen, LBNL Physics Division
####@####.#### +1-510-486-7355 AIM, Skype JacobsenRG