On Mon, Oct 15, 2018 at 3:01 PM Anton Nikiforov <[email protected]> wrote: > > Trying to load some examples for blinking LED i got 2 different types of code > for it: > 1. > > While (1) { > __R30 |= (1 << R30_out_bit ); > > delay(10000000); > > __R30 &= ~(1 << R30_out_bit ); > } > > > R30_out_bit = 0 (P8_45 pin) > > > 2. > > while(1) { > __R30 ^= 0x000F; > delay(10000000); > } > > > What the difference beetwen these two and why the first one dosen't working > properly (no blinking at all)?
In your mind, unroll your first while loop, you'll then see what's happening.. Put a 2nd delay after the 2nd out_bit statement.. Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYh9VjUCODAC18sPNC%2B9eO%2By71qj3pdSD3-e97f4cGNCPw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
