Hello all
I am quite new to Keil STR9 Series. I was just learning the whole thing by going through and trying some small examples with it. I want to know how to control just one LED ( say 7.0) to blink at a time.
while (1) { for (n = 0x01; n <= 0xFF; n <<= 1) { GPIO7->DR[0x3FC] = n; } }
This piece of code turns on the all 8 LEDS at the same time. How can i blink just one LED (7.0) every 1 second?
Thanks
I was referring to a general concept of uC vs the STR9 - I probably should have worded it carefully. But you are right, the NXP's have also the port mask reg.