beautypg.com

An74 – Cirrus Logic AN74 User Manual

Page 5

background image

AN74

AN74Rev2

5

CONCLUSION

This application note presents an example of how
to interface the CS5525/6/9 to the 80C51. It is di-
vided into two main sections: hardware and soft-
ware. The hardware interface illustrates both a
three-wire and a four-wire interface. The three-
wire is SPI

TM

and MICROWIRE

TM

compatible.

The software, developed with development tools
from Franklin Software, Inc., illustrates how to
write to the ADC’s internal register, read from the
ADC’s internal registers, and acquire a conversion.
The software is modularized and illustrates the im-

portant subroutines, e.g. write_byte, read_byte, and
toggle_sdo, each of which were written in assem-
bly language. This allows both assembly and C
programmers access to these modules.

The software described in the note is included in
the Appendix at the end of this document.

SPI

TM

is a trademark of Motorola.

MICROWIRE

TM

is a trademark of National Semi-

conductor.