L297 stepper motor controller

Hi all
I'm so glad to find here,for there must be some professions to help me.
My teacher asked me to design a stepper motor driver using l297,l298 and 89c51, which can control the speed and direction.I asked him what should i do first and he answered to me,'do it from scratch'....
I collected some materials of l297.l298 and 89c51 such as datasheets but I could not understand clearly that which pin is useful and how to use.What can I do?I wonder if someone could give me the diagram or circuit of what I need.The schematic will be appreciated greatly and profoundly...
A helpless sophomore.