1Copyright Cirrus Logic, Inc. 1999(All Rights Reserved)P.O. Box 17847, Austin, Texas 78760(512) 445 7222 FAX: (512) 445 7581http://www.cirrus.comA
AN13110 AN131REV2;*****************************************************************************;* Routine - convert ;* Input - none;* Output - convers
AN131AN131REV2 11JSR send_spi ;Transfer low byteRTS ;Return;*****************************************************************************;* Routine -
AN13112 AN131REV2;* Routine - delay;* Input - count in ACCA;* Output - none;* This routine delays by using the count specified in ACCA. The 68HC05;*
• Notes •
AN1312 AN131REV23. SOFTWARE DESCRIPTIONThis note presents algorithms to initialize the68HC05 and the CS5521/22/23/24/28, modify theCS5521/22/23/24/28
AN131AN131REV2 3ing the number of Setups to be accessed and sub-tracting 1. Because each CSR holds two Setups,this number must always be an odd value,
AN1314 AN131REV23.5 Acquiring ConversionsTo acquire a conversion the subroutine convert iscalled. For single conversions on one physicalchannel, the
AN131AN131REV2 55. CONCLUSIONThis application note presents an example of howto interface the CS5521/22/23/24/28 to the68HC05. It is divided into two
AN1316 AN131REV26. APPENDIX: 68HC05 MICROCODE TO INTERFACE TO THE CS5521/22/23/24/28;****************************************************************
AN131AN131REV2 7MAIN EQU * ;Start from reset vector;*** Initialize and Calibrate the system ***JSR initialize ;Initialize the SystemJSR write_csrs ;Mo
AN1318 AN131REV2BNE sloop ;Repeat loop if counter isn’t zeroLDA #%11111110 ;Load ACCA with last byteJSR send_spi ;Send final byte to ADCRTS ;Exit rout
AN131AN131REV2 9; Setup 4 Settings - (A1-A0 = 00, Physical Channel = 3, OWR = 15Hz,; input V-range = 25mV, Unipolar)LDA #$4C ;Load ACCA with first byt
Kommentare zu diesen Handbüchern