1Copyright Cirrus Logic, Inc. 1997(All Rights Reserved)Cirrus Logic, Inc.Crystal Semiconductor Products DivisionP.O. Box 17847, Austin, Texas 78760(
AN7410 AN74Rev2;****************************************************************;* Routine - RECEIVE_BYTE;* Input - none;* Output - Byte received is
AN74AN74Rev2 11;****************************************************************;* Routine - TRANSFER_BYTE;* Input - byte to be transferred;* Output -
AN7412 AN74Rev2;****************************************************************;* Routine - TOGGLE_SDO;* Input - none;* Output - none;* Description
• Notes •
AN742 AN74Rev2diagram. While reading this application note,please refer to the Appendix for the code listing.InitializeInitialize is a subroutine that
AN74AN74Rev2 3data-state where it waits until data is read from itsserial port. Read_register then calls receive_bytethree times and transfers three b
AN744 AN74Rev2An alternative method can be used to acquire a con-version. By clearing the Port Flag bit, the serialport’s function isn’t modified. The
AN74AN74Rev2 5CONCLUSIONThis application note presents an example of howto interface the CS5525/6/9 to the 80C51. It is di-vided into two main section
AN746 AN74Rev2APPENDIX80C51 Microcode to Interface to the CS5525/6/9/***************************************************************************** Fil
AN74AN74Rev2 7/*************************************************************************************** Program Code*****************************
AN748 AN74Rev2/*Reset Serial Port on CS5525/6/9*/SDI = 0x01; /*Assert SDI*/for(counter=0;counter<255;counter++) {SCLK = 0x01; /*Assert SCLK*/SCLK =
AN74AN74Rev2 9/*************************************************************************************** Routine - read_register* Input - command* O
Comentarios a estos manuales