An88, Conclusion – Cirrus Logic AN88 User Manual
Page 5

AN88
AN88Rev2
5
CONCLUSION
This application note presents an example of how
to interface the CS5525/6/9 to the PIC16F84. It is
divided into two main sections: hardware and soft-
ware. The hardware section illustrates both a three-
wire and a four-wire interface. The three-wire is
SPI
TM
and MICROWIRE
TM
compatible. The soft-
ware, developed with development tools from Mi-
crochip, Inc., illustrates how to initialize the
converter and microcontroller, calibrate the con-
verters offset, write to and read from the ADC’s in-
ternal register, and acquire a conversion. The
software is modularized and illustrates important
subroutines, e.g. write_register and read_register.
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 Semiconductor.
MPLAB
TM
is a trademark of Microchip.