Hi,

This should help.

http://www.melabs.com/resources/samp...p/7segment.pbp