datasheetbank_Logo
数据手册搜索引擎和 Datasheet免费下载 PDF

CS5503-BP 查看數據表(PDF) - Cirrus Logic

零件编号
产品描述 (功能)
生产厂家
CS5503-BP Datasheet PDF : 54 Pages
First Prev 31 32 33 34 35 36 37 38 39 40 Next Last
CS5501 CS5503
CS5501/CS5503
CS5501
CS5503
CS
MODE SCLK
SDATA
68HC11
PA6
+5V
SCK
SS
MISO
(68HC05)
Figure A3. 68HC11/CS5501 Serial Interface
Notes:
1. CS5501 in Synchronous External Clocking mode.
2. Using 68HC11’s SPI port. (Can use SCI and
CS5501’s Asynchronous mode.)
3. Maximum bit rate is 1.05 Mbps.
Assumptions:
1. PA6 used as CS.
2. 68HC11 in single-chip mode.
3. Receive data via polling.
4. Normal equates for peripheral registers.
5. Data returned in register D.
Initial Code:
SPINIT: PSHA
; Store temporary copy of A
LDAA #%x1xxxxxx ; Bit 6 = 1, all others are don’t cares
STAA PORTA
; CS = 1, inactive; deselect CS5501
LDAA #$10
;
STAA SPCR
; Disable serial port
LDAA #%xx0110xx ; SS-input, SCK-output,
; MOSI-output, MISO-input
STAA DDRD
; Data direction register for port D
LDAA #$50
; Enable serial port, CMOS outputs,
STAA SPCR
; master, highest clock rate (int. clk/2)
LDAA SPSR
;
LDAA SPDR
; Bogus read to clr port and SPIF flag
PULA
; Restore A
RTS
;
Code to get word of data:
SP_IN:
WAIT1:
WAIT2:
LDAA
STAA
STAA
LDAA
BPL
LDAA
STAA
LDAB
BPL
LDAB
STAB
LDAB
RTS
#%x0xxxxxx
PORTA
SPDR
SPSR
WAIT1
SPDR
SPDR
SPSR
WAIT2
#%x1xxxxxx
PORTA
SPDR
;
; CS = 0, active; select CS5501
; Put data in serial port to start clk
; Get port status
; If SPIF (MSB) 0, no data yet, wait
; Put most significant byte in A
; Start serial port for second byte
; Get port status
; If SPIF (MSB) 0, no data yet, wait
;
; CS = 1, inactive; deselect CS5501
; Put least significant byte in B
;
CS5501
CS5503 CS
MODE SCLK
SDATA
COPS 444
G0
SK
DI
(All COPS)
Figure A4. COPS/CS5501 Interface
Notes:
1. CS5501 in Synchronous External Clocking mode.
2. COPS 444 max baud = 62.5 kbps. (Others = 500 kbps)
3. See timing diagram for detailed timing.
Assumptions:
1. G0 used as CS.
2. Register 0 (upper four nibbles) used to store 16-bit word.
Initial Code:
SPINIT: OGI 15
RC
XAS
; CS = 1, inactive; deselect CS5501
; Reset carry, used in next
; instruction to turn SK off
Code to get word of data:
SP_IN: LBI 0,12
SC
OGI
LEI
XAS
NOP
NOP
GETNIB: NOP
XAS
XIS
JP
RC
14
0
GETNIB
XAS
OGI 15
RET
; Point to start of data
; storage location
; Set carry - enables SK in
; XAS instruction
; CS = 0, active; select CS5501
; Shift register mode, S0 = 0
; Start clocking serial port
;
; Wait for (first) M.S. nibble
;
; Get nibble of data from SIO
; Put nibble in memory, inc. pointer,
; if overflow, jump around this inst.
; Reset carry - disables SK in XAS
; instruction
; Bogus read - stops SK
; CS = 1, inactive; deselect CS5501
;
3366
DS31F54

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]