| 数据搜索系统,热门电子元器件搜索 |
|
CS5501-SD 数据表(PDF) 36 Page - Cirrus Logic |
|
|
|||||||||||||||||||||||||||||
CS5501-SD 数据表(HTML) 36 Page - Cirrus Logic |
|
36 / 54 page ![]() 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 ; CS = 1, inactive; deselect CS5501 RC ; Reset carry, used in next XAS ; instruction to turn SK off Code to get word of data: SP_IN: LBI 0,12 ; Point to start of data ; storage location SC ; Set carry - enables SK in ; XAS instruction OGI 14 ; CS = 0, active; select CS5501 LEI 0 ; Shift register mode, S0 = 0 XAS ; Start clocking serial port NOP ; NOP ; Wait for (first) M.S. nibble GETNIB: NOP ; XAS ; Get nibble of data from SIO XIS ; Put nibble in memory, inc. pointer, JP GETNIB ; if overflow, jump around this inst. RC ; Reset carry - disables SK in XAS ; instruction XAS ; Bogus read - stops SK OGI 15 ; CS = 1, inactive; deselect CS5501 RET ; Figure A4. COPS/CS5501 Interface CS5501 COPS 444 (All COPS) DI G0 SK SDATA CS SCLK MODE CS5503 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: LDAA #%x0xxxxxx ; STAA PORTA ; CS = 0, active; select CS5501 STAA SPDR ; Put data in serial port to start clk WAIT1: LDAA SPSR ; Get port status BPL WAIT1 ; If SPIF (MSB) 0, no data yet, wait LDAA SPDR ; Put most significant byte in A STAA SPDR ; Start serial port for second byte WAIT2: LDAB SPSR ; Get port status BPL WAIT2 ; If SPIF (MSB) 0, no data yet, wait LDAB #%x1xxxxxx ; STAB PORTA ; CS = 1, inactive; deselect CS5501 LDAB SPDR ; Put least significant byte in B RTS ; Figure A3. 68HC11/CS5501 Serial Interface CS5501 68HC11 (68HC05) MISO MODE SS +5V PA6 SCK SDATA CS SCLK CS5503 CS5501/CS5503 36 DS31F2 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |