2 of 3 added 6 characters in body

H-Bridge using atmega8 microcontroller

I want to use my atmega8 uC as a .

Can anybody give me the source code using C, so that the microcontroller acts as an H-Bridge.