Eshwar chand wrote:
what are the flags in the code?How can i use those flags?
By default on the EZ-Kit , the LED 1 is connected to DPI6 , LED 2 to DPI13, LED 3 to DPI14, LED 4 to DAI3, LED to DAI4, LED 6 to DAI15, LED 7 to DAI16, LED 8 to DAI17.
So if you want to toggle the LEDs individually, it is sufficient to use SRU(HIGH,DPI_PBx_I) and SRU(LOW,DPI_PBx_I) or SRU(HIGH,DAI_PBx_I) and SRU(LOW,DAI_PBx_I) .
But if you want more than one LED to toggle at the same instant, it is not possible using the above method. In this case you have to use the FLG bits of the FLAGS register. Basically, the FLAGs register makes it possible to set (or read) many DPI pins at once.
-Regards,
Jithul