Firstly I would like to thank everyone who answered my question, the answers taught me some interesting tricks. However I didn't make myself clear enough (being sick/lack of sleep and generally dumb muddles the brain. :-() in my first message so I'll try to explain what I'm doing and hopefully it will become clear. What I'm trying to do is scroll one alphanumeric character across a 5x7 LED matrix. The bytes returned from the lookup table are structured as follows. The bottom 5 bits of portB (16F84) are connected to columns 1 to 5 of the display. The upper 3 bits drive a 74138, 3 to 8 line decode which drives rows 1 to 7 of the display. To display a character all I do is just keep on looping and sending out the 7 bytes needed. As you can see, the top 3 bits can not be touched as they control wich row to light. Now to make a character scroll across the display I need to shift the 5 bit value in starting at bit0 through to bit5 and out. Hopefully this explanation is a little easier to understand. :-) Regards Jean-Michel. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu