Hello everyone, I need your help. I'm using the EUSART of the PIC18F2550 to get data (4 bytes) sent from Hyperterminal. The 4 bytes serve to drive 32 LEDs connected to 4 shift-registers. I'm programming in Assembly. The 4 received bytes are saved in register Byte1, Byte2, Byte3 and Byte4. The Assembly routine for data reception and saving and driving the LEDs are working perfectly. Now I'm trying to write an Assembly code that would reset all the LEDs (after they have been switched on ) wait 5 seconds and then switch on and off the very LEDs one after another with a delay of 5 also. Means, if Byte=1000 0001, the LEDs "corresponding" to the "1" in Byte1 should first lit (right after the command), then both reset, then the LED corresponding to the first "1" is switched on for 5 seconds then it's switched off. Finally the second LED is also switched on and off with a 5 seconds delay. Could somebody give some tips how to write the code in Assembly? Thank you for your help Kabanga In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! Nur 3,99 EUR/Monat! *http://www.maildomain.web.de/?mc=021114* [http://www.maildomain.web.de/?mc=021114] -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist