Sorry, can't provide code snippets. But, here are some hints.
Look into the NS7520 hardware reference document, under the PORTA Configuration register section. There is a register that controls everything for that port. On power up, configure the mode and direction for the two pins that you are going to use for the I2C protocol. Set the direction to outputs, and data as high. You bit-bang the clock and data going out. For the acknowledge bit, quickly change the direction of the SDA pin and read the value. Quickly change the direction back so you can continuing writing data. If you are doing a read, after sending the address, make sure the direction of the SDA pin has changed to input mode so you can read the data coming back.