First start with basic task of your project.Learn configuration of 8051 and refer the data sheet of DS1682.DS 1682 has 2-wire serial communication(I2C protocol) which is need to communicate with 8051. So next learn about I2C protocol and how to implement in 8051.It is helpful to develop code of your application.