CS5501-BS Cirrus Logic Inc, CS5501-BS Datasheet - Page 38

no-image

CS5501-BS

Manufacturer Part Number
CS5501-BS
Description
A/D Converter (A-D) IC
Manufacturer
Cirrus Logic Inc
Datasheet

Specifications of CS5501-BS

Peak Reflow Compatible (260 C)
No
No. Of Bits
16 Bit
Leaded Process Compatible
No
Mounting Type
Surface Mount
Interface Type
Serial
Package / Case
20-SOIC
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
CS5501-BS
Manufacturer:
CIRRUS
Quantity:
20 000
Part Number:
CS5501-BSZ
Manufacturer:
CIRRUS
Quantity:
20 000
Notes:
Assumptions:
-5V
Notes:
Assumptions:
38
1. CS5501 in Synchronous External Clocking mode.
2. Interrupt driven I/O on 8051 (For polling, connect
1. INT1 external interrupt used.
2. Register bank 1, R6, R7 used to store data word,
3. EA enabled elsewhere.
1. CS5501 in Asynchronous (UART-like) mode.
2. 8051 in mode 2, with OSC = 12 MHz,
1. P1.2 (port 1, bit 2) used as CS.
2. Using serial port mode 2, Baud rate = OSC/32.
Figure A7. MCS51 (8051) /CS5501 UART Interface
Figure A6. MCS51 (8051) /CS5501 Serial Interface
DRDY to another port pin).
R7 MSbyte.
max baud = 375 kbps.
MODE
MODE
CS5501
CS5501
SDATA
SDATA
DRDY
SCLK
SCLK
CS
CS
32
OSC
P1.2
RXD
INT1
P1.1
P1.2
P1.3
8051
8051
Initial Code:
CS
SCLK
DATA
SPINIT: CLR
Code to get word of data:
GETWD: PUSH PSW
MSBYTE:SETB SCLK
LSBYTE: SETB SCLK
(Assumptions cont.)
Initial Code:
SPINIT: SETB SMOD
Code to get word of data:
SP_IN:
3. Word received put in A (ACC) and B registers,
4. No error checking done.
5. Equates used for peripheral names.
A = MSbyte.
EQU
EQU
EQU
SETB IT1
SETB DATA
SETB CS
CLR
SETB EX1
ORG 0003H
LJMP GETWD
PUSH A
MOV
MOV
CLR
MOV
CLR
RLC
DJNZ R6,MSBYTE ; Dec. R6, if not 0, get another bit
MOV
MOV
MOV
CLR
RLC
DJNZ R6,LSBYTE ; Dec. R6, if not 0, get another bit
MOV
SETB CS
POP
POP
RETI
SETB P1.2
MOV
CLR
RET
CLR
JNB
CLR
MOV
JNB
CLR
MOV
SETB P1.2
RET
P1.1
P1.2
P1.3
EX1
SCLK
PSW,#08
R6,#8
CS
C,DATA
SCLK
A
R7,A
R6,#8
C,DATA
SCLK
A
R6,A
A
PSW
SCON,#1001000B
ES
P1.2
RI,$
RI
A,SBUF
RI,$
RI
B,SBUF
; Disable INT1
; Set INT1 for falling edge triggered
; Set DATA to be input pin
; CS = 1; deselect CS5501
; SCLK low
; Enable INT1 interrupt
; Interrupt vector
; Save temp. copy
; Save temp. copy
; Set register bank 1 active
; number of bits in a byte
; CS = 0; select CS5501
; Toggle SCLK high
; Put bit of data into carry bit
; Toggle SCLK low; next data bit
; Shift DATA bit into A register
; Put MSbyte into R7
; Reset R6 to number of bits in byte
; Toggle SCLK high
; Put bit of data into carry bit
; Toggle SCLK low; next data bit
; Shift DATA bit into A register
; Put LSbyte into R6
; CS = 1; deselect CS5501
; Restore original value
; Restore original value
; Set SMOD = 1, baud = OSC/32
; CS = 1, inactive
; receiver enabled, transmitter disabled
; Disable serial port interrupts (polling)
;
; CS = 0, active; select CS5501
; Wait for first byte
;
; Put most significant byte in A
; wait for second byte
;
; Put least significant byte in B
; CS = 1, inactive; deselect CS5501
;
CS5501/CS5503
; Enable serial port mode 2,
DS31F2

Related parts for CS5501-BS