initialization code for interfacing 89C51 with CS5532 over SPI bus

Jan 14, 2010 1 Replies

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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required