1685 views|0 replies

3836

Posts

19

Resources
The OP
 

dsp28335 SCI Summary [Copy link]

1. Serial transmission 1) Simplex: One-way data transmission, can only send or receive (1 data line) 2) Half-duplex: Two-way data transmission, but at any time, can only send or receive (1 data line) 3) Full-duplex: Two-way data transmission, but at any time, can receive or send at the same time (2 data lines) 4) Full-duplex: Two-way data transmission, but at any time, can receive or send at the same time (2 data lines) 2. Communication rate Baud rate (the number of bits transmitted per second) BRR=LSPCLK/((BRR+1)*8) or BRR=LSPCLK/16 (BRR=0) 3. Parity check: It adds an extra bit to each character to make the number of "1" in the character odd or even. 1) Odd parity: If the number of "1" in the character is even, the check bit is "1", otherwise it is "0" 2) Even parity: If the number of "1" in the character is even, the check bit is "0", otherwise it is "1" 4. SCI can generally be regarded as UART (Universal Asynchronous Receiver/Transmitter) and is often connected to RS232 interface DSP (TTL level (high 2.4V, low 0.4V)) is converted into RS232 level (high -3~-15v, low 3~15v) through MAX232 5.SCI send and receive data format (NRZ) 1 start bit->1~8 bits of data->1 parity bit (optional)->1 or 2 stop bits->additional bits to distinguish address and data (only exists in address bit mode) The basic unit of data is called a character, and a data character with format information is called a frame. 6. Standard SCI mode and FIFO share an interrupt source 16-level FIFO 7. 1) TXRDY: SCITXBUF empty (shift not empty) (SCITXBUF->TXSHF) 2) TX EMPTY: send and shift empty 8. When both ABD and CDC bits are set, it means that the baud rate automatic detection starts working. In the interrupt service subroutine, the CDC bit must be cleared to 0 using software, otherwise no interrupt will be generated in the future. (Write 1 to ABD CLR to clear the ABD bit to 0 and respond to interrupt) 9. Multi-processor communication Receiving steps: 1) When receiving the address block, the SCI port wakes up and applies for an interrupt (RX/BK INT ENA bit applies for an interrupt), reads the first frame of the address block, which contains the address of the destination processor 2) Start the software process by detecting the received address through the interrupt, and then compare the device address stored in the memory with the address byte of the received data. 3) If the addresses match, the CPU clears the SLEEP bit and reads the remaining data in the block, otherwise exits the subroutine and keeps the SLEEP bit. 1) Address bit multi-processor mode There is an additional bit after the last data bit of the frame, called the address bit. 2) Idle line multi-processor mode Idle time after one frame (10 or more high levels) Note: Before sending the address data after setting TXWAKE, write an unrelated data to SCITXBUF to ensure that enough idle time can be sent. 10. WUT->TXWAKE TXSHF->SCIBUF forms a double buffer (when the SCIBUF value is moved into TXSHF, the TXWAKE value is moved into WUT).

This post is from DSP and ARM Processors
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list