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
AN13010 AN130REV2MOVLW 0x05 ; Command to write CSRsBCF PORTA, CS ; select the ADCCALL send_byte ; send command byte to ADC;*** Setup CSR #1 - Setups 1
AN130AN130REV2 11;* Routine - convert;* Input - none;* Output - 24-bit Conversion Results in memory locations HIGHBYTE, MIDBYTE;* and LOWBYTE
AN13012 AN130REV2;* Routine - write_register;* Input - COMMAND, HIGHBYTE, MIDBYTE, LOWBYTE;* Output - none;* This subroutine writes to the internal re
AN130AN130REV2 13;* Routine - send_byte;* Input - Byte stored in W register;* Output - none;* This subroutine sends a byte, one bit at a time, MSB fir
AN13014 AN130REV2;* Routine - delay;* Input - Count in W register;* Output - none;* This subroutine delays by using a count value stored in register W
• Notes •
AN1302 AN130REV23. SOFTWARE DESCRIPTIONThis note presents algorithms to initialize thePIC16C84 and the CS5521/22/23/24/28, performcalibrations, modif
AN130AN130REV2 3DP0 must always be logic 1 when reading and writ-ing the CSRs. To modify the Depth Pointer bits, theconfiguration register is read to
AN1304 AN130REV23.5 Acquire ConversionTo acquire a conversion the subroutine convert iscalled. For single conversions on one physicalchannel, the MC
AN130AN130REV2 5for a selectable clock polarity. However, many donot have the capability to select the clock’s phase.When using a microcontroller with
AN1306 AN130REV28. APPENDIX: PIC16C84 MICROCODE TO INTERFACE TO THE CS5521/22/23/24/28;**************************************************************
AN130AN130REV2 7;* Routine - main;* Input - none;* Output - none;* This is the entry point to the program, as well as the central loop. ;*************
AN1308 AN130REV2MOVLW 0xFF ; Load W for new delay countCALL delay ; Delay for Oscillator start-up 158msCALL delay ; Delay for Oscillator start-up 158m
AN130AN130REV2 9;* Input - none;* Output - none;* This subroutine writes to and reads from the gain register on physical;* channel 1.;****************
Comentarios a estos manuales