From: Tauno Voipio on
amit wrote:
> initialization code for interfacing 89C51 with CS5532 over SPI bus
> Plse help me for wrting C code for handling this ADC

If you do not have the data sheet, get it. Just Google for
CS5532 and pick the data sheet.

Read the register descriptions, allocate 3 port bits for
MISO, MOSI and CS-. Write code to wiggle the port bits
according to the diagrams on data sheet page 22.

--

Tauno Voipio