Help with ADC 0804 program

I am doing a project on blood glucose monitor. I am using ADC 0804 with 89c51. I need to display the peak voltage value received at the ADC input. Can somebody give me the code in C?