Thank's a lot, now it's working properly. понедельник, 15 октября 2018 г., 23:06:00 UTC+3 пользователь RobertCNelson написал: > > On Mon, Oct 15, 2018 at 3:01 PM Anton Nikiforov <[email protected] > <javascript:>> 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/4c17c89c-30cb-4acb-aab5-abc466592a98%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
